System: Add SwapByteOrder and update Support/MathExtras.h to use it.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Mon, 11 Oct 2010 21:56:16 +0000 (21:56 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Mon, 11 Oct 2010 21:56:16 +0000 (21:56 +0000)
commit4c099b8724abf993262366e2a871004a2777becb
tree5458bd9f9094984021879d98f596ac79b8cd40f2
parent31cc3ec3308c8fafd9865388214ae11662a71af4
System: Add SwapByteOrder and update Support/MathExtras.h to use it.

This time correctly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116247 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/MathExtras.h
include/llvm/System/SwapByteOrder.h [new file with mode: 0644]
unittests/CMakeLists.txt
unittests/Support/SwapByteOrderTest.cpp [new file with mode: 0644]