System: Add SwapByteOrder and update Support/MathExtras.h to use it.
This time correctly. llvm-svn: 116247
Showing
- llvm/include/llvm/Support/MathExtras.h 4 additions, 31 deletionsllvm/include/llvm/Support/MathExtras.h
- llvm/include/llvm/System/SwapByteOrder.h 101 additions, 0 deletionsllvm/include/llvm/System/SwapByteOrder.h
- llvm/unittests/CMakeLists.txt 1 addition, 0 deletionsllvm/unittests/CMakeLists.txt
- llvm/unittests/Support/SwapByteOrderTest.cpp 128 additions, 0 deletionsllvm/unittests/Support/SwapByteOrderTest.cpp
Loading
Please register or sign in to comment