CVS commit: src/lib/libm/src

2015-09-07 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Tue Sep  8 05:23:31 UTC 2015

Modified Files:
src/lib/libm/src: k_standard.c

Log Message:
Apply patch in PR 45391 from Yui NARUSE: generate HUGE_VAL rather than
-HUGE_VAL for 0^negative. No objection after asking nearly two years
ago if I shouldn't just commit it.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/lib/libm/src/k_standard.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2016-01-24 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Sun Jan 24 20:34:30 UTC 2016

Modified Files:
src/lib/libm/src: e_hypotf.c

Log Message:
Fix incorrect magic numbers in scaling.  From FreeBSD commit 23397, by
way of Rin Okuyama.  Fixes PR lib/50698.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/src/e_hypotf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2010-09-01 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Wed Sep  1 10:44:29 UTC 2010

Modified Files:
src/lib/libm/src: k_standard.c

Log Message:
EDOM should not be set on atan2(0,0) in POSIX mode, found by
Stathis Kamperis' testsuite


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libm/src/k_standard.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2010-09-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Sep 15 16:12:05 UTC 2010

Added Files:
src/lib/libm/src: s_copysignl.c s_fabsl.c s_nextafterl.c s_nexttoward.c

Log Message:
commit long double SoC code from Stathis Kamperis


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/src/s_copysignl.c \
src/lib/libm/src/s_fabsl.c src/lib/libm/src/s_nextafterl.c \
src/lib/libm/src/s_nexttoward.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2010-09-16 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Thu Sep 16 20:39:51 UTC 2010

Modified Files:
src/lib/libm/src: math_private.h

Log Message:
fix an obvious botch which made eg conjl(3) a no-op


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libm/src/math_private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2010-11-29 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon Nov 29 15:10:06 UTC 2010

Modified Files:
src/lib/libm/src: e_jn.c e_jnf.c

Log Message:
fix accuracy problems in argument ranges where j0(x) is small, closes
PR lib/44170 by Henning Petersen
(originally from Steven G. Kargl per FreeBSD PR bin/144306)


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libm/src/e_jn.c
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/src/e_jnf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2011-02-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Feb  6 01:53:38 UTC 2011

Added Files:
src/lib/libm/src: s_remquo.c s_remquof.c

Log Message:
Add the actual function files. From FreeBSD via Stathis Kamperis


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/src/s_remquo.c \
src/lib/libm/src/s_remquof.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2011-04-11 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon Apr 11 15:17:34 UTC 2011

Modified Files:
src/lib/libm/src: k_standard.c

Log Message:
let log(<0) return NaN rather than -inf in POSIX/XOPEN modes, as
requested in PR lib/41931 by Havard Eidnes (the PR refers to POSIX,
the OSF/1 manpage suggests that XOPEN should behave that way too)
being here, do the same to log10 and log2


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libm/src/k_standard.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2011-04-18 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Mon Apr 18 15:59:09 UTC 2011

Modified Files:
src/lib/libm/src: s_nextafter.c s_nextafterf.c

Log Message:
according to C99/POSIX, nextafter(x,y) should return y if x==y, from
Henning Petersen per PR lib/44875


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/src/s_nextafter.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/src/s_nextafterf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2012-08-08 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed Aug  8 16:57:24 UTC 2012

Added Files:
src/lib/libm/src: s_truncl.c

Log Message:
Add a long double version of trunc.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/src/s_truncl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2012-08-08 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed Aug  8 16:58:28 UTC 2012

Modified Files:
src/lib/libm/src: s_truncl.c

Log Message:
Fix copyright.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/s_truncl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-01-27 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Mon Jan 28 06:26:20 UTC 2013

Modified Files:
src/lib/libm/src: namespace.h

Log Message:
Add long double aliases


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/src/namespace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-01-27 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Mon Jan 28 06:34:09 UTC 2013

Modified Files:
src/lib/libm/src: s_scalbn.c s_scalbnf.c s_scalbnl.c

Log Message:
Deal with _LP64 properly.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libm/src/s_scalbn.c
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/src/s_scalbnf.c
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/s_scalbnl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-01-28 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Mon Jan 28 14:09:43 UTC 2013

Modified Files:
src/lib/libm/src: s_scalbnl.c

Log Message:
Add missing ';' to fix the build.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_scalbnl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-02-09 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Feb  9 19:37:48 UTC 2013

Added Files:
src/lib/libm/src: s_nan.c s_nearbyint.c

Log Message:
add FreeBSD implementations.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/src/s_nan.c \
src/lib/libm/src/s_nearbyint.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-02-09 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Feb  9 19:39:01 UTC 2013

Added Files:
src/lib/libm/src: s_nexttowardf.c

Log Message:
one more


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/src/s_nexttowardf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-02-09 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Feb  9 22:32:47 UTC 2013

Added Files:
src/lib/libm/src: s_rintl.c

Log Message:
FreeBSD version


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/src/s_rintl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-02-09 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Sat Feb  9 22:56:00 UTC 2013

Modified Files:
src/lib/libm/src: s_ilogb.c s_ilogbf.c s_ilogbl.c

Log Message:
Use FP_ILOGB0 and FP_ILOGBNAN


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libm/src/s_ilogb.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/src/s_ilogbf.c
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/s_ilogbl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-02-09 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Feb  9 23:14:44 UTC 2013

Modified Files:
src/lib/libm/src: s_nearbyint.c s_nexttowardf.c s_rintl.c

Log Message:
make these only work for things that have EXT_ foo definitions.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/s_nearbyint.c
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_nexttowardf.c \
src/lib/libm/src/s_rintl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-02-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Feb 11 00:49:23 UTC 2013

Added Files:
src/lib/libm/src: s_fma.c s_fmaf.c s_fmal.c

Log Message:
bring in fma from FreeBSD


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/src/s_fma.c src/lib/libm/src/s_fmaf.c \
src/lib/libm/src/s_fmal.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-02-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Feb 11 01:38:10 UTC 2013

Added Files:
src/lib/libm/src: s_frexpl.c s_scalbln.c

Log Message:
more stuff from FreeBSD


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/src/s_frexpl.c \
src/lib/libm/src/s_scalbln.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-02-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Feb 11 02:45:27 UTC 2013

Modified Files:
src/lib/libm/src: s_fma.c s_nearbyint.c s_rintl.c

Log Message:
use __HAVE_LONG_DOUBLE


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_fma.c \
src/lib/libm/src/s_nearbyint.c
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/src/s_rintl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-02-12 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Feb 12 08:21:49 UTC 2013

Modified Files:
src/lib/libm/src: s_fma.c

Log Message:
Use __weak_alias instead of __weak_reference (obvious pasto)


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/src/s_fma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-02-14 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Feb 14 08:56:56 UTC 2013

Modified Files:
src/lib/libm/src: s_nextafterl.c

Log Message:
Deal with an implicit NBIT


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_nextafterl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-02-14 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Feb 14 09:23:40 UTC 2013

Modified Files:
src/lib/libm/src: s_fma.c

Log Message:
Define a strong alias, not a weak one


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/src/s_fma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-02-14 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Feb 14 09:24:50 UTC 2013

Modified Files:
src/lib/libm/src: s_fma.c

Log Message:
Use right macro for __strong_alias


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libm/src/s_fma.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-04-27 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Apr 27 16:43:13 UTC 2013

Modified Files:
src/lib/libm/src: s_scalbln.c

Log Message:
Use namespace.h. Don't redefine scalblnl on 64bit platforms.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_scalbln.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-04-27 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Apr 27 17:19:47 UTC 2013

Modified Files:
src/lib/libm/src: s_scalbln.c

Log Message:
Casting is a not a valid way to check for overflow, so be explicit and
use the limit macros.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/src/s_scalbln.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-04-27 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Apr 27 17:20:36 UTC 2013

Modified Files:
src/lib/libm/src: s_scalbln.c s_scalbnl.c

Log Message:
Move scalbnl back to s_scalbln.c to match the assembler implementations.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/src/s_scalbln.c \
src/lib/libm/src/s_scalbnl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-04-27 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Sat Apr 27 18:43:25 UTC 2013

Modified Files:
src/lib/libm/src: s_scalbn.c s_scalbnf.c s_scalbnl.c

Log Message:
Add aliases to scalbn* as ldexp*, they are identical for FLT_RADIX=2.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libm/src/s_scalbn.c
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/src/s_scalbnf.c
cvs rdiff -u -r1.5 -r1.6 src/lib/libm/src/s_scalbnl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-05-19 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun May 19 20:50:02 UTC 2013

Modified Files:
src/lib/libm/src: s_scalbnl.c

Log Message:
Try to fix bogus underflow test (obvious copy & pasto) - someone please
review to make sure I got it right.
This fixes PR 47834.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/src/s_scalbnl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-07-18 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jul 18 22:31:13 UTC 2013

Modified Files:
src/lib/libm/src: s_nextafterl.c

Log Message:
Only compile is __HAVE_LONG_DOUBLE is defined


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/src/s_nextafterl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-07-18 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Thu Jul 18 22:32:53 UTC 2013

Modified Files:
src/lib/libm/src: s_nextafter.c

Log Message:
If __HAVE_LONG_DOUBLE is not defined,
add a strong alias for nextafterl to nextafter


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/src/s_nextafter.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-08-21 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Aug 21 13:04:44 UTC 2013

Modified Files:
src/lib/libm/src: s_rintl.c

Log Message:
Add support for the long double format used on sparc64


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/src/s_rintl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-08-21 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Aug 21 13:03:56 UTC 2013

Modified Files:
src/lib/libm/src: s_nexttoward.c

Log Message:
Add support for archs with LDBL_IMPLICIT_NBIT


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/s_nexttoward.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2014-11-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Nov 13 21:43:27 UTC 2014

Modified Files:
src/lib/libm/src: ldbl_dummy.c

Log Message:
add a couple more dummies (erf, erfc)


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/ldbl_dummy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2014-11-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Nov 14 03:31:41 UTC 2014

Modified Files:
src/lib/libm/src: namespace.h

Log Message:
add erfl erfcl


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/src/namespace.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2015-03-26 Thread Justin Cormack
Module Name:src
Committed By:   justin
Date:   Thu Mar 26 11:59:38 UTC 2015

Modified Files:
src/lib/libm/src: math_private.h

Log Message:
Fix prototypes to match definitions


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libm/src/math_private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2015-05-14 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu May 14 19:26:12 UTC 2015

Modified Files:
src/lib/libm/src: s_copysign.c s_copysignl.c

Log Message:
copysignl is also needed for PowerPC's double-double format, so special
case that. Functional support was added earlier, but not enabled.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/src/s_copysign.c
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/src/s_copysignl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2015-07-08 Thread Nathanial Sloss
Module Name:src
Committed By:   nat
Date:   Thu Jul  9 06:17:13 UTC 2015

Modified Files:
src/lib/libm/src: lrint.c lrintf.c

Log Message:
Return x for >= DBL_FRACBITS in lrint.c.
Return x for >= SNG_FRACBITS in lrintf.c

Addresses PR lib/49690

This commit was approved by christos@


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/src/lrint.c
cvs rdiff -u -r1.5 -r1.6 src/lib/libm/src/lrintf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2017-06-22 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Jun 22 12:43:43 UTC 2017

Modified Files:
src/lib/libm/src: k_rem_pio2.c k_rem_pio2f.c

Log Message:
Correct misleading indentation. NFC

>From GCC8


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/src/k_rem_pio2.c
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/src/k_rem_pio2f.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2017-08-16 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Wed Aug 16 09:15:49 UTC 2017

Modified Files:
src/lib/libm/src: s_nextafter.c

Log Message:
On systems without __HAVE_LONG_DOUBLE, also alias nexttoward() and
nexttowardl() to nextafter().


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libm/src/s_nextafter.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2017-08-16 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Wed Aug 16 11:22:52 UTC 2017

Modified Files:
src/lib/libm/src: s_nextafter.c

Log Message:
On second thought, don't introduce nexttowardl() since we don't have that
yet elsewhere.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libm/src/s_nextafter.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2018-03-10 Thread Eitan Adler
Module Name:src
Committed By:   eadler
Date:   Sat Mar 10 09:44:47 UTC 2018

Modified Files:
src/lib/libm/src: e_atan2.c

Log Message:
Fix signed overflow in atan2

As a component of atan2(y, x), the case of x == 1.0 is farmed out to
atan(y). The current implementation of this comparison is vulnerable
to signed integer underflow (that is, undefined behavior), and it's
performed in a somewhat more complicated way than it need be. Change
it to not be quite so cute, rather directly comparing the high/low
bits of x to the specific IEEE-754 bit pattern that encodes 1.0.

ok martin@ pgoyette@ maya@
obtained from FreeBSD


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/src/e_atan2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2018-03-27 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Tue Mar 27 11:59:49 UTC 2018

Modified Files:
src/lib/libm/src: s_scalbn.c

Log Message:
Add missing alias for ldexpl on ! __HAVE_LONG_DOUBLE architectures.
Pointed out by Hal Murray on port-arm.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libm/src/s_scalbn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2021-04-12 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Apr 12 09:15:52 UTC 2021

Modified Files:
src/lib/libm/src: k_standard.c

Log Message:
add a default: case to __kernel_standard(), failing with EDOM


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/lib/libm/src/k_standard.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-11-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Nov  6 16:49:21 UTC 2013

Modified Files:
src/lib/libm/src: s_exp2.c

Log Message:
simplify.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_exp2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-11-12 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Nov 12 17:37:43 UTC 2013

Modified Files:
src/lib/libm/src: s_finite.c s_finitef.c

Log Message:
Typo.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/src/s_finite.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/src/s_finitef.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-11-12 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Nov 13 01:03:08 UTC 2013

Modified Files:
src/lib/libm/src: w_fmodl.c

Log Message:
Add missing __HAVE_LONG_DOUBLE protection.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/w_fmodl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-11-14 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Nov 14 15:25:22 UTC 2013

Modified Files:
src/lib/libm/src: e_fmodl.c

Log Message:
Make it compile on archs with implicit NBIT


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/e_fmodl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-11-19 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Nov 19 14:02:59 UTC 2013

Modified Files:
src/lib/libm/src: e_fmod.c

Log Message:
Alias to fmod for platforms with double == long double


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/src/e_fmod.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-11-19 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Nov 19 14:04:24 UTC 2013

Modified Files:
src/lib/libm/src: k_standard.c w_fmodl.c

Log Message:
Report correct exception for fmodl.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libm/src/k_standard.c
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/w_fmodl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-11-20 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Nov 20 11:39:00 UTC 2013

Modified Files:
src/lib/libm/src: w_sqrtl.c

Log Message:
Long double conditional.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/w_sqrtl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-11-20 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Nov 20 12:29:13 UTC 2013

Modified Files:
src/lib/libm/src: s_cbrt.c

Log Message:
Fix operand order.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/src/s_cbrt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-11-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Wed Nov 20 21:12:30 UTC 2013

Modified Files:
src/lib/libm/src: e_sqrtl.c

Log Message:
Make it compile on archs with implicit NBIT


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/e_sqrtl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-11-21 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Nov 21 13:41:10 UTC 2013

Modified Files:
src/lib/libm/src: w_fmodl.c

Log Message:
Fix copy & pasto (make temp variable long double).
Fixes fmodl() test failure on sparc64


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/src/w_fmodl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-11-22 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri Nov 22 20:15:06 UTC 2013

Modified Files:
src/lib/libm/src: e_sqrtl.c

Log Message:
For the non-fenv archs: just use double - punt


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/src/e_sqrtl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2013-11-29 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Fri Nov 29 22:16:10 UTC 2013

Modified Files:
src/lib/libm/src: s_fabs.c s_fabsl.c s_fmax.c s_fmaxl.c s_fmin.c
s_fminl.c

Log Message:
Use normal style for checking for long double support. Add missing
aliases for fminl and fmaxl, fabsl is here just for symmetry.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/src/s_fabs.c
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_fabsl.c src/lib/libm/src/s_fmax.c
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/src/s_fmaxl.c \
src/lib/libm/src/s_fminl.c
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/s_fmin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2014-01-31 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Fri Jan 31 19:38:47 UTC 2014

Modified Files:
src/lib/libm/src: s_nextafterl.c

Log Message:
Just use EXT_EXP_INFNAN instead of EXT_EXP_INF or EXT_EXP_NAN.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/src/s_nextafterl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2014-03-14 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Fri Mar 14 22:21:32 UTC 2014

Modified Files:
src/lib/libm/src: math_private.h

Log Message:
There is some very odd code in s_exp2.c that only works if 'double'
   values are rounded to 53 bit mantissa in teh x87 registers.
This hasn't been true since Nov 11 2013.
Forcing a store-load for 'double' in STRICT_ASSIGN() seems to fix things
  (at least enough for the few random test cases).
I suspect the code could be changed so that the number of mantissa bits
  didn't matter.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libm/src/math_private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2014-03-16 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sun Mar 16 22:30:44 UTC 2014

Modified Files:
src/lib/libm/src: s_exp2f.c

Log Message:
Fix overflow and underflow on i386.
The return value of a 'float' function is in the x87 %st(0) register.
This is an 80bit 'long double' register.
If you multiply 0x1p100f by 0x1p100f the caller sees 0x1p200 - not the
  expected infinity.
So use a 'double' value which goes through a store-load sequence to generate
  the required exception and value.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/s_exp2f.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2014-03-16 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Sun Mar 16 22:44:48 UTC 2014

Modified Files:
src/lib/libm/src: s_exp2.c

Log Message:
Simplify somewhat: this is C not FORTRAN-IV - we have structures!
Directly us 'ieee_double_shape_type' when ripping apart the fp number
  to avoid an extra store-load in 'STRICT_ASSIGN'.
Keep 'k' as the exponent, only do 'k << 20' when generating the fp number
  from it.
Fix infinity and underflow returns on i386 - because the value is returned
  in %st0 (x87 stack) we have to generate a long double error value.
The returned value for integers -1023 and below (which should be denormal
  fp valuesr) are 'just plain wrong' (tm).


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/src/s_exp2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2014-03-18 Thread David Laight
Module Name:src
Committed By:   dsl
Date:   Tue Mar 18 21:52:19 UTC 2014

Modified Files:
src/lib/libm/src: s_exp2.c

Log Message:
Change 'i0' to be signed so that the sign bit is preserved on 'k'
  and the code at the bottom splits the multiply.
Fixes denormal results.
This might have been introduced when I deferred shifting 'k' left.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/src/s_exp2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2020-01-30 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Thu Jan 30 20:31:50 UTC 2020

Modified Files:
src/lib/libm/src: s_frexp.c

Log Message:
Provide frexpl on non-long-double systems as alias to frexp.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libm/src/s_frexp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2016-08-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Aug 26 08:20:31 UTC 2016

Modified Files:
src/lib/libm/src: s_ilogb.c s_ilogbf.c s_ilogbl.c

Log Message:
fix sun2 build; only IEEE math platform (and coldfire) without fenv


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libm/src/s_ilogb.c
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/src/s_ilogbf.c
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/src/s_ilogbl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2016-08-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 27 10:01:08 UTC 2016

Modified Files:
src/lib/libm/src: e_pow.c e_powf.c

Log Message:
sync with FreeBSD


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libm/src/e_pow.c
cvs rdiff -u -r1.15 -r1.16 src/lib/libm/src/e_powf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2016-08-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 27 10:00:38 UTC 2016

Modified Files:
src/lib/libm/src: k_standard.c

Log Message:
correct case 23 for -0.0


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libm/src/k_standard.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2016-08-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 27 10:03:16 UTC 2016

Modified Files:
src/lib/libm/src: k_standard.c

Log Message:
no need for stdio.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libm/src/k_standard.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2017-02-09 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Feb  9 21:23:11 UTC 2017

Modified Files:
src/lib/libm/src: e_j0.c e_j0f.c e_j1.c e_j1f.c

Log Message:
Appease static analyzers by making all code paths which assign
values into p,q sane. Get rid of redundant assignment. Indent
for legibility. NFC.

This doesn't create a functional difference, as all callers
test number >= 0x4000 anyway.

To see this, note the following:
- consistently, hx is the high bits of x, lx is the low bits,
  x is the float.
- & 0x7fff zeroes the sign bit, as does fabs.

A case where it isn't easy to see that there's no functional
change is y1, which does:

ix = hx & 0x7fff (zero signbit of high bits of x)
y = fabs(x) (this has a zeroed signbit but otherwise same as x)
ix >= 0x4000
  pone(y); qone(y)

qone(x) (also pone) do:
  ix = hx & 0x7fff

ix in qone and in the calling function are the same number,
and the comparison applies for both, and ix < 0x4000 isn't
possible.

(Also, no explosions seem to happen when I feed it random numbers)


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/src/e_j0.c src/lib/libm/src/e_j1.c
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/src/e_j0f.c
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/src/e_j1f.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2017-02-09 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Thu Feb  9 22:11:09 UTC 2017

Modified Files:
src/lib/libm/src: s_expm1.c s_expm1f.c

Log Message:
ifdef out some dead code. improves code readability.
all later users of y first assign another value.

using ifdefs to make potential future code syncs easier, as is done
elsewhere.

suggested by coverity, CID 1300929, 1300930.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/src/s_expm1.c
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/src/s_expm1f.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2017-02-26 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Mon Feb 27 06:49:02 UTC 2017

Modified Files:
src/lib/libm/src: lrint.c

Log Message:
the MI lrint() code assumes that rounding is done in at most double precision
but m68k (68881) uses extended precision by default, so put the FPU in
double-precision mode temporarily here.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libm/src/lrint.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2017-05-06 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat May  6 18:02:52 UTC 2017

Modified Files:
src/lib/libm/src: e_sqrtl.c s_fma.c s_fmaf.c s_fmal.c s_nearbyint.c

Log Message:
add missing namespace.h


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libm/src/e_sqrtl.c
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/src/s_fma.c
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_fmaf.c
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/src/s_fmal.c \
src/lib/libm/src/s_nearbyint.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2017-05-07 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun May  7 11:29:21 UTC 2017

Modified Files:
src/lib/libm/src: s_llrintl.c s_lrintl.c

Log Message:
Limit some rintl usage to #ifdef __HAVE_LONG_DOUBLE.
XXX should probably declare some aliases in the #else case


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/s_llrintl.c \
src/lib/libm/src/s_lrintl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libm/src

2017-05-08 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Tue May  9 02:04:38 UTC 2017

Modified Files:
src/lib/libm/src: e_asin.c e_asinf.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/src/e_asin.c
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/src/e_asinf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.