This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void CalcMultShift(uint64_t *mult, uint64_t *shift, uint64_t F2, uint64_t F1) | |
{ | |
uint64_t m = 1, s; | |
uint64_t maxsft = __lzcnt64(F2); | |
printf("\nF1:%llu, F2:%llu\n\n", F1,F2); | |
for (s = 0; s < maxsft; ++s) { | |
uint64_t dividend = F2 << s; | |
uint64_t rem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <memory.h> | |
#include <inttypes.h> | |
#include <time.h> | |
#include <x86intrin.h> | |
#ifdef WIN32 | |
#include <windows.h> |