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

Michael Spencer bigcheesegs at gmail.com
Tue Sep 14 14:31:02 PDT 2010


On Tue, Sep 14, 2010 at 5:18 PM, Michael Spencer <bigcheesegs at gmail.com> wrote:
> 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
>

It had to happen eventually :(. Now the patch it attached.

- Michael Spencer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-System-Add-SwapByteOrder-and-update-Support-MathExtr.patch
Type: application/octet-stream
Size: 5013 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100914/159ac754/attachment.obj>


More information about the llvm-commits mailing list