summaryrefslogtreecommitdiff
path: root/src/pal
diff options
context:
space:
mode:
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_