Refactor endian handling in DFP routines
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 16 Nov 2017 17:49:11 +0000 (18:49 +0100)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 16 Nov 2017 17:49:11 +0000 (18:49 +0100)
commitd723696126beb185dc1f8f3196be7cb29948148d
tree11066788de07d7bf7c5bfaac9eab744b942e7e25
parentd0f7791c6659081f3a62e220289417c010997baa
Refactor endian handling in DFP routines

This patch moves endian conversion into the decimal_from_number and
decimal_to_number routines, and removes it from all their callers,
making the code simpler overall.  No functional change.

gdb/ChangeLog:
2017-11-16  Ulrich Weigand  <uweigand@de.ibm.com>

* target-float.c (decimal_from_number): Add byte_order argument and
call match_endianness.  Error if unknown floating-point type.
(decimal_to_number): Add byte_order argument and call match_endianness.
(decimal_from_longest): Update call.  Do not call match_endianness.
(decimal_from_ulongest): Likewise.
(decimal_binop): Likewise.
(decimal_is_zero): Likewise.
(decimal_compare): Likewise.
(decimal_convert): Likewise.
gdb/ChangeLog
gdb/target-float.c
This page took 0.027458 seconds and 4 git commands to generate.