Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libm/src Correct misleading indentation. NFC
details: https://anonhg.NetBSD.org/src/rev/2790c67b42a6
branches: trunk
changeset: 353475:2790c67b42a6
user: maya <maya%NetBSD.org@localhost>
date: Tue May 09 02:04:38 2017 +0000
description:
Correct misleading indentation. NFC
This isn't a functional difference because huge + x > one is
always true for a small x, and is probably a magical incantation
to raise inexact if x != 0
Found by GCC 8.0
diffstat:
lib/libm/src/e_asin.c | 5 +++--
lib/libm/src/e_asinf.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (54 lines):
diff -r 65d5a3d24293 -r 2790c67b42a6 lib/libm/src/e_asin.c
--- a/lib/libm/src/e_asin.c Tue May 09 01:57:04 2017 +0000
+++ b/lib/libm/src/e_asin.c Tue May 09 02:04:38 2017 +0000
@@ -12,7 +12,7 @@
#include <sys/cdefs.h>
#if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: e_asin.c,v 1.12 2002/05/26 22:01:48 wiz Exp $");
+__RCSID("$NetBSD: e_asin.c,v 1.13 2017/05/09 02:04:38 maya Exp $");
#endif
/* __ieee754_asin(x)
@@ -86,12 +86,13 @@
} else if (ix<0x3fe00000) { /* |x|<0.5 */
if(ix<0x3e400000) { /* if |x| < 2**-27 */
if(huge+x>one) return x;/* return x with inexact if x!=0*/
- } else
+ } else {
t = x*x;
p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5)))));
q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4)));
w = p/q;
return x+x*w;
+ }
}
/* 1> |x|>= 0.5 */
w = one-fabs(x);
diff -r 65d5a3d24293 -r 2790c67b42a6 lib/libm/src/e_asinf.c
--- a/lib/libm/src/e_asinf.c Tue May 09 01:57:04 2017 +0000
+++ b/lib/libm/src/e_asinf.c Tue May 09 02:04:38 2017 +0000
@@ -15,7 +15,7 @@
#include <sys/cdefs.h>
#if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: e_asinf.c,v 1.8 2002/05/26 22:01:48 wiz Exp $");
+__RCSID("$NetBSD: e_asinf.c,v 1.9 2017/05/09 02:04:38 maya Exp $");
#endif
#include "math.h"
@@ -56,12 +56,13 @@
} else if (ix<0x3f000000) { /* |x|<0.5 */
if(ix<0x32000000) { /* if |x| < 2**-27 */
if(huge+x>one) return x;/* return x with inexact if x!=0*/
- } else
+ } else {
t = x*x;
p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5)))));
q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4)));
w = p/q;
return x+x*w;
+ }
}
/* 1> |x|>= 0.5 */
w = one-fabsf(x);
Home |
Main Index |
Thread Index |
Old Index