Bug 1480577 - add AArch64-specific cases for MathUtils.h bitscan functionality; r=Waldo

This commit is contained in:
Nathan Froyd 2018-08-03 18:07:34 -04:00
Родитель 7074ffc753
Коммит c0949fc4e1
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -147,13 +147,13 @@ Abs<long double>(const long double aLongDouble)
} // namespace mozilla
#if defined(_MSC_VER) && \
(defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64))
(defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64) || defined(_M_ARM64))
# define MOZ_BITSCAN_WINDOWS
# include <intrin.h>
# pragma intrinsic(_BitScanForward, _BitScanReverse)
# if defined(_M_AMD64) || defined(_M_X64)
# if defined(_M_AMD64) || defined(_M_X64) || defined(_M_ARM64)
# define MOZ_BITSCAN_WINDOWS64
# pragma intrinsic(_BitScanForward64, _BitScanReverse64)
# endif