|
|
7c0489 |
From f6e3f49613f4a31bce8c5f52ae440f9c7b3646fb Mon Sep 17 00:00:00 2001
|
|
|
7c0489 |
From: Stefan Liebler <stli@linux.ibm.com>
|
|
|
7c0489 |
Date: Wed, 11 Dec 2019 15:09:28 +0100
|
|
|
7c0489 |
Subject: [PATCH 18/28] Adjust s_copysignl.c regarding code style.
|
|
|
7c0489 |
|
|
|
7c0489 |
This patch just adjusts the generic implementation regarding code style.
|
|
|
7c0489 |
No functional change.
|
|
|
7c0489 |
|
|
|
7c0489 |
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
|
|
|
7c0489 |
(cherry picked from commit 1902d5d5ff04771f16b67648789c75a18af06222)
|
|
|
7c0489 |
---
|
|
|
7c0489 |
sysdeps/ieee754/ldbl-128/s_copysignl.c | 17 +++++++++--------
|
|
|
7c0489 |
1 file changed, 9 insertions(+), 8 deletions(-)
|
|
|
7c0489 |
|
|
|
7c0489 |
diff --git a/sysdeps/ieee754/ldbl-128/s_copysignl.c b/sysdeps/ieee754/ldbl-128/s_copysignl.c
|
|
|
7c0489 |
index 4cae8612dc..9b0e44cf1d 100644
|
|
|
7c0489 |
--- a/sysdeps/ieee754/ldbl-128/s_copysignl.c
|
|
|
7c0489 |
+++ b/sysdeps/ieee754/ldbl-128/s_copysignl.c
|
|
|
7c0489 |
@@ -13,7 +13,7 @@
|
|
|
7c0489 |
* ====================================================
|
|
|
7c0489 |
*/
|
|
|
7c0489 |
|
|
|
7c0489 |
-#if defined(LIBM_SCCS) && !defined(lint)
|
|
|
7c0489 |
+#if defined (LIBM_SCCS) && ! defined (lint)
|
|
|
7c0489 |
static char rcsid[] = "$NetBSD: $";
|
|
|
7c0489 |
#endif
|
|
|
7c0489 |
|
|
|
7c0489 |
@@ -28,18 +28,19 @@ static char rcsid[] = "$NetBSD: $";
|
|
|
7c0489 |
#include <libm-alias-ldouble.h>
|
|
|
7c0489 |
#include <math-use-builtins.h>
|
|
|
7c0489 |
|
|
|
7c0489 |
-_Float128 __copysignl(_Float128 x, _Float128 y)
|
|
|
7c0489 |
+_Float128
|
|
|
7c0489 |
+__copysignl (_Float128 x, _Float128 y)
|
|
|
7c0489 |
{
|
|
|
7c0489 |
#if USE_COPYSIGNL_BUILTIN
|
|
|
7c0489 |
return __builtin_copysignl (x, y);
|
|
|
7c0489 |
#else
|
|
|
7c0489 |
/* Use generic implementation. */
|
|
|
7c0489 |
- uint64_t hx,hy;
|
|
|
7c0489 |
- GET_LDOUBLE_MSW64(hx,x);
|
|
|
7c0489 |
- GET_LDOUBLE_MSW64(hy,y);
|
|
|
7c0489 |
- SET_LDOUBLE_MSW64(x,(hx&0x7fffffffffffffffULL)
|
|
|
7c0489 |
- |(hy&0x8000000000000000ULL));
|
|
|
7c0489 |
- return x;
|
|
|
7c0489 |
+ uint64_t hx, hy;
|
|
|
7c0489 |
+ GET_LDOUBLE_MSW64 (hx, x);
|
|
|
7c0489 |
+ GET_LDOUBLE_MSW64 (hy, y);
|
|
|
7c0489 |
+ SET_LDOUBLE_MSW64 (x, (hx & 0x7fffffffffffffffULL)
|
|
|
7c0489 |
+ | (hy & 0x8000000000000000ULL));
|
|
|
7c0489 |
+ return x;
|
|
|
7c0489 |
#endif /* ! USE_COPYSIGNL_BUILTIN */
|
|
|
7c0489 |
}
|
|
|
7c0489 |
libm_alias_ldouble (__copysign, copysign)
|
|
|
7c0489 |
--
|
|
|
7c0489 |
2.18.2
|
|
|
7c0489 |
|