Reactos

[TIMEOUT] Use Int32x32To64 instead of __emul

+1 -10
+1 -10
base/applications/cmdutils/timeout/timeout.c
··· 155 155 timeElapsed = GetTickCount() - dwStartTime; 156 156 if (timeElapsed < 1000) 157 157 { 158 - /* 159 - * For whatever reason, x86 MSVC generates a ntdll!_allmul 160 - * call when using Int32x32To64(), instead of an imul 161 - * instruction. This leads the linker to error that _allmul 162 - * is missing, since we do not link against ntdll. 163 - * Everything is however OK with GCC... 164 - * We therefore use the __emul() intrinsic which does 165 - * the correct job. 166 - */ 167 - DueTime.QuadPart = __emul(1000 - timeElapsed, -10000); 158 + DueTime.QuadPart = Int32x32To64(1000 - timeElapsed, -10000); 168 159 SetWaitableTimer(hTimer, &DueTime, 0, NULL, NULL, FALSE); 169 160 dwWaitState = WaitForSingleObject(hTimer, INFINITE); 170 161