[llvm] r237673 - Fix getSwappedBytes for double.

David Blaikie dblaikie at gmail.com
Tue May 19 12:51:58 PDT 2015


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/20150519/4dc7159e/attachment.html>


More information about the llvm-commits mailing list