[llvm-commits] [llvm] r119994 - /llvm/trunk/include/llvm/System/SwapByteOrder.h
Chris Lattner
sabre at nondot.org
Mon Nov 22 20:26:12 PST 2010
Author: lattner
Date: Mon Nov 22 22:26:12 2010
New Revision: 119994
URL: http://llvm.org/viewvc/llvm-project?rev=119994&view=rev
Log:
fix this harder.
Modified:
llvm/trunk/include/llvm/System/SwapByteOrder.h
Modified: llvm/trunk/include/llvm/System/SwapByteOrder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/System/SwapByteOrder.h?rev=119994&r1=119993&r2=119994&view=diff
==============================================================================
--- llvm/trunk/include/llvm/System/SwapByteOrder.h (original)
+++ llvm/trunk/include/llvm/System/SwapByteOrder.h Mon Nov 22 22:26:12 2010
@@ -62,8 +62,8 @@
#elif defined(_MSC_VER) && !defined(_DEBUG)
return _byteswap_uint64(value);
#else
- uint64_t Hi = SwapByteOrder(uint32_t(value));
- uint32_t Lo = SwapByteOrder(uint32_t(value >> 32));
+ uint64_t Hi = SwapByteOrder_32(uint32_t(value));
+ uint32_t Lo = SwapByteOrder_32(uint32_t(value >> 32));
return (Hi << 32) | Lo;
#endif
}
More information about the llvm-commits
mailing list