[llvm-commits] [PATCH][System] Add SwapByteOrder and move implementation from Support/MathExtras.h.

Michael Spencer bigcheesegs at gmail.com
Tue Sep 14 14:18:44 PDT 2010


The attached patch adds the SwapByteOrder function template to System.
This patch is a
prerequisite for the object file library I am writing.

I want to replace the functions in MathExtras.h with SwapByteOrder
because it is a generic implementation that makes it easier to write
generic byte order independent code. This patch has no functionality
changes.

The optimized versions are platform dependent, and thus belong in System anyway.

- Michael Spencer



More information about the llvm-commits mailing list