summaryrefslogtreecommitdiff
path: root/src/pal
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2018-09-17 15:15:43 -0700
committerTanner Gooding <tagoo@outlook.com>2018-09-20 13:12:46 -0700
commitcee8cc77e91f5a2c249da29b95f3ee0d10bbed7a (patch)
tree026981caaf5445c6e132f622907dbdc300d98e39 /src/pal
parent77daa1a1b3aab5dba05893b7e3c216ff266823e2 (diff)
downloadcoreclr-cee8cc77e91f5a2c249da29b95f3ee0d10bbed7a.tar.gz
coreclr-cee8cc77e91f5a2c249da29b95f3ee0d10bbed7a.tar.bz2
coreclr-cee8cc77e91f5a2c249da29b95f3ee0d10bbed7a.zip
Removing BitScanReverse from pal.h
Diffstat (limited to 'src/pal')
-rw-r--r--src/pal/inc/pal.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h
index 2d0c47177b..075f58a9eb 100644
--- a/src/pal/inc/pal.h
+++ b/src/pal/inc/pal.h
@@ -3303,52 +3303,6 @@ BitScanForward64(
return bRet;
}
-// Define BitScanReverse64 and BitScanReverse
-// Per MSDN, BitScanReverse64 or BitScanReverse will search the mask data from most significant bit (MSB)
-// to least significant bit (LSB) for a set bit (1).
-// If one is found, its bit position is returned in the out PDWORD argument and 1 is returned.
-// Otherwise, 0 is returned.
-//
-// On GCC, the equivalent function is __builtin_clzll or __builtin_clz. It returns 1+index of the most
-// significant set bit, or undefined result if mask is zero.
-EXTERN_C
-PALIMPORT
-inline
-unsigned char
-PALAPI
-BitScanReverse(
- IN OUT PDWORD Index,
- IN UINT qwMask)
-{
- unsigned char bRet = FALSE;
- if (qwMask != 0)
- {
- *Index = (UINT) (8 * sizeof (UINT) - __builtin_clz(qwMask) - 1);
- bRet = TRUE;
- }
-
- return bRet;
-}
-
-EXTERN_C
-PALIMPORT
-inline
-unsigned char
-PALAPI
-BitScanReverse64(
- IN OUT PDWORD Index,
- IN UINT64 qwMask)
-{
- unsigned char bRet = FALSE;
- if (qwMask != 0)
- {
- *Index = (UINT) (8 * sizeof (UINT64) - __builtin_clzll(qwMask) - 1);
- bRet = TRUE;
- }
-
- return bRet;
-}
-
FORCEINLINE void PAL_ArmInterlockedOperationBarrier()
{
#ifdef _ARM64_