diff options
author | kavsrf <kavsrf@gmail.com> | 2017-01-04 01:19:02 +0300 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2017-06-05 17:36:52 +0200 |
commit | d37d6d681061fdefc2a909b5975b40b604a27c62 (patch) | |
tree | 7d6f54a21d7aa32be5db1ba5be10ca87dc62cf7c /Library | |
parent | f2e878683655b885f8ab2d365a40993ef942dea7 (diff) | |
download | VeraCrypt-DCS-d37d6d681061fdefc2a909b5975b40b604a27c62.tar.gz VeraCrypt-DCS-d37d6d681061fdefc2a909b5975b40b604a27c62.zip |
debug code cleanup
Diffstat (limited to 'Library')
-rw-r--r-- | Library/VeraCryptLib/llmath.c | 73 |
1 files changed, 0 insertions, 73 deletions
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
|