summaryrefslogtreecommitdiffstats
path: root/Utilities/cmliblzma/common/tuklib_integer.h
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2014-07-13 20:21:58 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-29 12:45:36 (GMT)
commitc20b45027e8288114fd6ee33f99218440b60da77 (patch)
tree782894335d0ba07d2ae489520da3f442c775e802 /Utilities/cmliblzma/common/tuklib_integer.h
parent7a92eddbcb2b2e6419062538e346908f0e502586 (diff)
downloadCMake-c20b45027e8288114fd6ee33f99218440b60da77.zip
CMake-c20b45027e8288114fd6ee33f99218440b60da77.tar.gz
CMake-c20b45027e8288114fd6ee33f99218440b60da77.tar.bz2
liblzma: Port to VS 6, 7.0
Also remove use of MSVC intrinsic.
Diffstat (limited to 'Utilities/cmliblzma/common/tuklib_integer.h')
-rw-r--r--Utilities/cmliblzma/common/tuklib_integer.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/Utilities/cmliblzma/common/tuklib_integer.h b/Utilities/cmliblzma/common/tuklib_integer.h
index 1897438..5e8262a 100644
--- a/Utilities/cmliblzma/common/tuklib_integer.h
+++ b/Utilities/cmliblzma/common/tuklib_integer.h
@@ -387,13 +387,6 @@ bsr32(uint32_t n)
__asm__("bsrl %1, %0" : "=r" (i) : "rm" (n));
return i;
-#elif defined(_MSC_VER) && _MSC_VER >= 1400
- // MSVC isn't supported by tuklib, but since this code exists,
- // it doesn't hurt to have it here anyway.
- uint32_t i;
- _BitScanReverse((DWORD *)&i, n);
- return i;
-
#else
uint32_t i = 31;
@@ -441,11 +434,6 @@ clz32(uint32_t n)
: "=r" (i) : "rm" (n));
return i;
-#elif defined(_MSC_VER) && _MSC_VER >= 1400
- uint32_t i;
- _BitScanReverse((DWORD *)&i, n);
- return i ^ 31U;
-
#else
uint32_t i = 0;
@@ -491,11 +479,6 @@ ctz32(uint32_t n)
__asm__("bsfl %1, %0" : "=r" (i) : "rm" (n));
return i;
-#elif defined(_MSC_VER) && _MSC_VER >= 1400
- uint32_t i;
- _BitScanForward((DWORD *)&i, n);
- return i;
-
#else
uint32_t i = 0;