diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-24 23:47:00 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-24 23:47:00 +0200 |
commit | fb848179c85dca388edd6d92ef5cd7cd0520b4c8 (patch) | |
tree | d3b042338b730ad28f9ce49d2cbe9242d896c381 /rts/StgPrimFloat.c | |
parent | 805ee118b823f271dfd8036d35b15eb3454a95ad (diff) | |
download | haskell-fb848179c85dca388edd6d92ef5cd7cd0520b4c8.tar.gz |
`M-x delete-trailing-whitespace` & `M-x untabify`
Diffstat (limited to 'rts/StgPrimFloat.c')
-rw-r--r-- | rts/StgPrimFloat.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/rts/StgPrimFloat.c b/rts/StgPrimFloat.c index 6e78546b3e..dad8ff8bc0 100644 --- a/rts/StgPrimFloat.c +++ b/rts/StgPrimFloat.c @@ -52,13 +52,13 @@ StgDouble __word_encodeDouble (W_ j, I_ e) { StgDouble r; - + r = (StgDouble)j; - + /* Now raise to the exponent */ if ( r != 0.0 ) /* Lennart suggests this avoids a bug in MIPS's ldexp */ r = ldexp(r, e); - + return r; } @@ -67,17 +67,17 @@ StgDouble __int_encodeDouble (I_ j, I_ e) { StgDouble r; - + r = (StgDouble)__abs(j); - + /* Now raise to the exponent */ if ( r != 0.0 ) /* Lennart suggests this avoids a bug in MIPS's ldexp */ r = ldexp(r, e); - + /* sign is encoded in the size */ if (j < 0) r = -r; - + return r; } @@ -86,17 +86,17 @@ StgFloat __int_encodeFloat (I_ j, I_ e) { StgFloat r; - + r = (StgFloat)__abs(j); - + /* Now raise to the exponent */ if ( r != 0.0 ) /* Lennart suggests this avoids a bug in MIPS's ldexp */ r = ldexp(r, e); - + /* sign is encoded in the size */ if (j < 0) r = -r; - + return r; } @@ -105,13 +105,13 @@ StgFloat __word_encodeFloat (W_ j, I_ e) { StgFloat r; - + r = (StgFloat)j; - + /* Now raise to the exponent */ if ( r != 0.0 ) /* Lennart suggests this avoids a bug in MIPS's ldexp */ r = ldexp(r, e); - + return r; } |