(decimal_)float_mode_for_size in real.h
commit98ec37cffe214b7592c32d7efa3dcc575ec07e54
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Sep 2017 19:57:09 +0000 (5 19:57 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 5 Sep 2017 19:57:09 +0000 (5 19:57 +0000)
tree9279a37b868d19fa66cea7d4844d640febbd9883
parent517be012cd01f8215d79d1e1779e03f840a0ebf2
(decimal_)float_mode_for_size in real.h

This patch makes the binary float macros in real.h use
float_mode_for_size and adds a corresponding decimal_float_mode_for_size
for the decimal macros.

2017-09-05  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* machmode.h (decimal_float_mode_for_size): New function.
* real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use float_mode_for_size.
(REAL_VALUE_TO_TARGET_DOUBLE): Likewise.
(REAL_VALUE_TO_TARGET_SINGLE): Likewise.
(REAL_VALUE_TO_TARGET_DECIMAL128): Use decimal_float_mode_for_size.
(REAL_VALUE_TO_TARGET_DECIMAL64): Likewise.
(REAL_VALUE_TO_TARGET_DECIMAL32): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@251727 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/machmode.h
gcc/real.h