diff options
author | Joel Brobecker <brobecker@adacore.com> | 2016-01-10 07:02:25 +0100 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2016-01-17 09:33:49 +0400 |
commit | 3c8e93b7fab5b9d8ddb786772ab00d65ec127159 (patch) | |
tree | 774933bef8a8fac88f0144fca00e359a52ef6d51 /sim | |
parent | 5c14705fb3dfb359235314f22392e7a5ce6d4085 (diff) | |
download | gdb-3c8e93b7fab5b9d8ddb786772ab00d65ec127159.zip gdb-3c8e93b7fab5b9d8ddb786772ab00d65ec127159.tar.gz gdb-3c8e93b7fab5b9d8ddb786772ab00d65ec127159.tar.bz2 |
minor reformatting in sim/common/sim-fpu.c.
This patch just makes a copy of formatting changes to better conform
with the GNU Coding Style.
sim/common/ChangeLog:
* sim-fpu.c (print_bits): Minor reformatting (no code change).
(sim_fpu_map): Likewise.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/sim-fpu.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index b2912fe..334a2a7 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2016-01-17 Joel Brobecker <brobecker@adacore.com> + + * sim-fpu.c (print_bits): Minor reformatting (no code change). + (sim_fpu_map): Likewise. + 2016-01-11 Mike Frysinger <vapier@gentoo.org> * sim-config.c (print_sim_config): Drop extra whitespace before = 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; |