From d37d6d681061fdefc2a909b5975b40b604a27c62 Mon Sep 17 00:00:00 2001 From: kavsrf Date: Wed, 4 Jan 2017 01:19:02 +0300 Subject: debug code cleanup --- Library/VeraCryptLib/llmath.c | 73 ------------------------------------------- 1 file changed, 73 deletions(-) (limited to 'Library') diff --git a/Library/VeraCryptLib/llmath.c b/Library/VeraCryptLib/llmath.c index 7d79657..ad13758 100644 --- a/Library/VeraCryptLib/llmath.c +++ b/Library/VeraCryptLib/llmath.c @@ -224,79 +224,6 @@ __declspec(naked) void __cdecl _aulldiv() } } -////////////////////////////////////////////////////////////////////////// -// Shifts -////////////////////////////////////////////////////////////////////////// -__declspec(naked) void __cdecl _aullshr1() { - _asm { - ; - ; Checking: Only handle 64bit shifting or more - ; - cmp cl, 64 - jae _Exit - - ; - ; Handle shifting between 0 and 31 bits - ; - cmp cl, 32 - jae More32 - shrd eax, edx, cl - shr edx, cl - ret - - ; - ; Handle shifting of 32-63 bits - ; -More32: - mov eax, edx - xor edx, edx - and cl, 31 - shr eax, cl - ret - - ; - ; Invalid number (less then 32bits), return 0 - ; -_Exit: - xor eax, eax - xor edx, edx - ret - } -} - -__declspec(naked) void __cdecl _allshl1() { - _asm { - ; - ; Handle shifting of 64 or more bits (return 0) - ; - cmp cl, 64 - jae short ReturnZero - - ; - ; Handle shifting of between 0 and 31 bits - ; - cmp cl, 32 - jae short More32 - shld edx, eax, cl - shl eax, cl - ret - - ; - ; Handle shifting of between 32 and 63 bits - ; -More32: - mov edx, eax - xor eax, eax - and cl, 31 - shl edx, cl - ret - -ReturnZero: - xor eax,eax - xor edx,edx - ret - } -} UINT64 EFIAPI -- cgit v1.2.3