[llvm] r237673 - Fix getSwappedBytes for double.

Paweł Bylica chfast at gmail.com
Wed May 20 10:17:55 PDT 2015


Unit tests in r237795.

On Tue, May 19, 2015 at 9:51 PM David Blaikie <dblaikie at gmail.com> wrote:

> any test?
>
> On Tue, May 19, 2015 at 1:44 AM, Pawel Bylica <chfast at gmail.com> wrote:
>
>> Author: chfast
>> Date: Tue May 19 03:44:15 2015
>> New Revision: 237673
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=237673&view=rev
>> Log:
>> Fix getSwappedBytes for double.
>>
>> Modified:
>>     llvm/trunk/include/llvm/Support/SwapByteOrder.h
>>
>> Modified: llvm/trunk/include/llvm/Support/SwapByteOrder.h
>> URL:
>> http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/SwapByteOrder.h?rev=237673&r1=237672&r2=237673&view=diff
>>
>> ==============================================================================
>> --- llvm/trunk/include/llvm/Support/SwapByteOrder.h (original)
>> +++ llvm/trunk/include/llvm/Support/SwapByteOrder.h Tue May 19 03:44:15
>> 2015
>> @@ -104,7 +104,7 @@ inline float getSwappedBytes(float C) {
>>    return out.f;
>>  }
>>
>> -inline float getSwappedBytes(double C) {
>> +inline double getSwappedBytes(double C) {
>>    union {
>>      uint64_t i;
>>      double d;
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150520/133045c8/attachment.html>


More information about the llvm-commits mailing list