diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2022-10-13 17:51:29 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2022-10-14 18:43:02 +0200 |
commit | 8efc38347a7444dde3fb173f0f2c59a60b7db53d (patch) | |
tree | e86212f0412780f94d9206d52af30d02d481047e /gcc/cppdefault.h | |
parent | 3760dd553eed21ac5614cf0d0841ca984b4361e2 (diff) | |
download | gcc-8efc38347a7444dde3fb173f0f2c59a60b7db53d.zip gcc-8efc38347a7444dde3fb173f0f2c59a60b7db53d.tar.gz gcc-8efc38347a7444dde3fb173f0f2c59a60b7db53d.tar.bz2 |
Implement range-op entry for __builtin_copysign.
copysign(MAGNITUDE, SIGN) is implemented as the absolute of MAGNITUDE,
with SIGN applied. If the sign of "SIGN" cannot be determined, we
return a range of [-MAGNITUDE, +MAGNITUDE].
gcc/ChangeLog:
* gimple-range-op.cc (class cfn_copysign): New.
(gimple_range_op_handler::maybe_builtin_call): Add
CFN_BUILT_IN_COPYSIGN*.
Diffstat (limited to 'gcc/cppdefault.h')
0 files changed, 0 insertions, 0 deletions