diff options
author | Howard Hinnant <hhinnant@apple.com> | 2011-12-02 19:36:40 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2011-12-02 19:36:40 +0000 |
commit | 75689c1018ffcacb3d4771297f439822882313c6 (patch) | |
tree | 23800a8cca037e23b8a49f0fa0778c6c983283a2 /libcxx/include/support/win32 | |
parent | 70f7213d2cf81b2dba91ec939e44f07c975e684e (diff) | |
download | bcm5719-llvm-75689c1018ffcacb3d4771297f439822882313c6.tar.gz bcm5719-llvm-75689c1018ffcacb3d4771297f439822882313c6.zip |
Fix http://llvm.org/bugs/show_bug.cgi?id=11428. Fix provided by Alberto Ganesh Barbati
llvm-svn: 145698
Diffstat (limited to 'libcxx/include/support/win32')
-rw-r--r-- | libcxx/include/support/win32/support.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/include/support/win32/support.h b/libcxx/include/support/win32/support.h index 38ea51e46b1..209f72047b7 100644 --- a/libcxx/include/support/win32/support.h +++ b/libcxx/include/support/win32/support.h @@ -31,7 +31,7 @@ size_t mbsnrtowcs( wchar_t *__restrict dst, const char **__restrict src, size_t nmc, size_t len, mbstate_t *__restrict ps ); size_t wcsnrtombs( char *__restrict dst, const wchar_t **__restrict src, size_t nwc, size_t len, mbstate_t *__restrict ps ); - + #if defined(_MSC_VER) #define snprintf _snprintf @@ -91,8 +91,8 @@ _LIBCPP_ALWAYS_INLINE int __builtin_ctzl( unsigned long x ) _LIBCPP_ALWAYS_INLINE int __builtin_ctzll( unsigned long long x ) { DWORD r = 0; - _BitScanReverse64(&r, x); - return static_cast<int>(r); + _BitScanReverse64(&r, x); + return static_cast<int>(r); } _LIBCPP_ALWAYS_INLINE int __builtin_clz( unsigned int x ) { @@ -106,8 +106,8 @@ _LIBCPP_ALWAYS_INLINE int __builtin_clzl( unsigned long x ) _LIBCPP_ALWAYS_INLINE int __builtin_clzll( unsigned long long x ) { DWORD r = 0; - _BitScanForward64(&r, x); - return static_cast<int>(r); + _BitScanForward64(&r, x); + return static_cast<int>(r); } #endif // !__clang__ #endif // _MSC_VER |