aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-fpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/sim-fpu.c')
-rw-r--r--sim/common/sim-fpu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sim/common/sim-fpu.c b/sim/common/sim-fpu.c
index 755977b..37383ec 100644
--- a/sim/common/sim-fpu.c
+++ b/sim/common/sim-fpu.c
@@ -65,7 +65,8 @@ print_bits (unsigned64 x,
print (arg, "0");
bit >>= 1;
- if (digits > 0) digits--;
+ if (digits > 0)
+ digits--;
i = (i + 1) % 4;
}
}
@@ -74,7 +75,8 @@ print_bits (unsigned64 x,
/* Quick and dirty conversion between a host double and host 64bit int */
-typedef union {
+typedef union
+{
double d;
unsigned64 i;
} sim_fpu_map;