summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-09-24 23:47:00 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2014-09-24 23:47:00 +0200
commitfb848179c85dca388edd6d92ef5cd7cd0520b4c8 (patch)
treed3b042338b730ad28f9ce49d2cbe9242d896c381 /rts
parent805ee118b823f271dfd8036d35b15eb3454a95ad (diff)
downloadhaskell-fb848179c85dca388edd6d92ef5cd7cd0520b4c8.tar.gz
`M-x delete-trailing-whitespace` & `M-x untabify`
Diffstat (limited to 'rts')
-rw-r--r--rts/Linker.c2
-rw-r--r--rts/PrimOps.cmm4
-rw-r--r--rts/StgPrimFloat.c28
3 files changed, 17 insertions, 17 deletions
diff --git a/rts/Linker.c b/rts/Linker.c
index 63cf981c58..5919d010f3 100644
--- a/rts/Linker.c
+++ b/rts/Linker.c
@@ -3606,7 +3606,7 @@ allocateImageAndTrampolines (
barf("getNumberOfSymbols: error whilst reading `%s' header in `%S'",
member_name, arch_name);
fseek( f, -sizeof_COFF_header, SEEK_CUR );
-
+
/* We get back 8-byte aligned memory (is that guaranteed?), but
the offsets to the sections within the file are all 4 mod 8
(is that guaranteed?). We therefore need to offset the image
diff --git a/rts/PrimOps.cmm b/rts/PrimOps.cmm
index cb4cd5e9fa..3e8612cea7 100644
--- a/rts/PrimOps.cmm
+++ b/rts/PrimOps.cmm
@@ -318,7 +318,7 @@ stg_casArrayzh ( gcptr arr, W_ ind, gcptr old, gcptr new )
p = arr + SIZEOF_StgMutArrPtrs + WDS(ind);
(h) = ccall cas(p, old, new);
-
+
if (h != old) {
// Failure, return what was there instead of 'old':
return (1,h);
@@ -791,7 +791,7 @@ stg_decodeDoublezu2Intzh ( D_ arg )
mp_tmp2 = tmp + WDS(2);
mp_result1 = tmp + WDS(1);
mp_result2 = tmp;
-
+
/* Perform the operation */
ccall __decodeDouble_2Int(mp_tmp1 "ptr", mp_tmp2 "ptr",
mp_result1 "ptr", mp_result2 "ptr",
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;
}