From 6009cf624a7ec6016e7ac27c6836be255e8aae56 Mon Sep 17 00:00:00 2001 From: pfg Date: Mon, 21 Jan 2019 14:54:01 +0000 Subject: [PATCH] MFC r343023: msun: reduce diff between src/e_j0.c and src/e_j0f.c PR: 229501 --- lib/msun/src/e_j0.c | 11 ++++++----- lib/msun/src/e_j0f.c | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/msun/src/e_j0.c b/lib/msun/src/e_j0.c index 5cdd87eb264..184586aa874 100644 --- a/lib/msun/src/e_j0.c +++ b/lib/msun/src/e_j0.c @@ -80,7 +80,7 @@ S02 = 1.16926784663337450260e-04, /* 0x3F1EA6D2, 0xDD57DBF4 */ S03 = 5.13546550207318111446e-07, /* 0x3EA13B54, 0xCE84D5A9 */ S04 = 1.16614003333790000205e-09; /* 0x3E1408BC, 0xF4745D8F */ -static const double zero = 0.0; +static const double zero = 0, qrtr = 0.25; double __ieee754_j0(double x) @@ -97,7 +97,7 @@ __ieee754_j0(double x) c = cos(x); ss = s-c; cc = s+c; - if(ix<0x7fe00000) { /* make sure x+x not overflow */ + if(ix<0x7fe00000) { /* Make sure x+x does not overflow. */ z = -cos(x+x); if ((s*c)