diff options
Diffstat (limited to 'gcc/real.c')
-rw-r--r-- | gcc/real.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/real.c b/gcc/real.c index e702b2d675a..65d57c30a53 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -4587,3 +4587,11 @@ real_round (REAL_VALUE_TYPE *r, enum machine_mode mode, real_convert (r, mode, r); } +/* Set the sign of R to the sign of X. */ + +void +real_copysign (REAL_VALUE_TYPE *r, const REAL_VALUE_TYPE *x) +{ + r->sign = x->sign; +} + |