View Single Post
Old 28th July 2015, 19:06   #14
Major Dude
LoRd_MuldeR's Avatar
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Okay, here is another attempt

In previous version, the code was still using MulDiv(), which is signed. Unfortunately, there is no unsigned version of that function. So I had to implement my own UMulDiv() function. But then the linker failed with missing reference to __aulldiv(). Apparently a 64-Bit integer division in 32-Bit code requires CRT library calls - which isn't possible when the CRT is excluded from the binary, as in Inetc project. Bummer!

(In the end I had to add a custom __aulldiv() implementation to the Inetc project, as assembly code. Seems to work though)
Attached Files
File Type: zip (32.3 KB, 299 views)
File Type: zip (54.1 KB, 273 views)

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration:
LoRd_MuldeR is offline   Reply With Quote