summaryrefslogtreecommitdiffstats
path: root/lib/msun/src
Commit message (Collapse)AuthorAgeFilesLines
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* Re-apply the previously backed-out commit that fixes the problem wherearchie2002-10-311-2/+5
| | | | | | | | HUGE_VAL is not properly aligned on some architectures. The previous fix now works because the two versions of 'math.h' (include/math.h and lib/msun/src/math.h) have since been merged into one. PR: bin/43544
* Remove duplicate declaration.markm2002-10-231-1/+0
|
* Fixed a last-minute editing error in previous commit. nfs and/or cvsbde2002-10-011-0/+0
| | | | | replaced a 14-byte change in the middle of the file with 14 NULs at EOF despite or because of aborting the initial commit to pick up the change.
* Merged all interesting difference between the old math.h and the currentbde2002-10-011-0/+0
| | | | | | | | | | | | | one into the latter and removed the former. This works around the bug that some broken Makefiles add -I.../src/include to CFLAGS, resulting in the old math.h being preferred and differences between the headers possibly being fatal. The merge mainly involves declaring some functions as __pure2 although they are not yet all strictly free of side effects. PR: 43544
* Revert previous commit to unbreak world until we figure out thearchie2002-09-201-5/+2
| | | | right way to do it.
* Fix a problem with the definition of HUGE_VAL causing the gcc warningarchie2002-09-191-2/+5
| | | | | | "cast increases required alignment of target type" on some platforms. Reviewed by: bde
* e_pow.c:bde2002-06-172-2/+2
| | | | | | | | | | | | | | | | Fixed pow(x, y) when x is very close to -1.0 and y is a very large odd integer. E.g., pow(-1.0 - pow(2.0, -52.0), 1.0 + pow(2.0, 52.0)) was 0.0 instead of being very close to -exp(1.0). PR: 39236 Submitted by: Stephen L Moshier <steve@moshier.net> e_powf.c: Apply the same patch although it is just cosmetic because odd integers large enough to cause the problem are too large to be precisely represented as floats. MFC after: 1 week
* Fix formatting, this is hard to explain, so I'll show one example.alfred2002-05-28129-141/+282
| | | | | | | | | | - float ynf(int n, float x) /* wrapper ynf */ +float +ynf(int n, float x) /* wrapper ynf */ This is because the __STDC__ stuff was indented. Reviewed by: md5
* Assume __STDC__, remove non-__STDC__ code.alfred2002-05-28141-1502/+5
| | | | Reviewed by: md5
* Assume __STDC__, remove non-__STDC__ code.alfred2002-05-2819-187/+38
| | | | Submitted by: keramida
* Spread the word of PowerPC.benno2002-05-211-1/+2
|
* Resurrect Lite1's gamma() as C99's tgamma(). Minimal changes.bde2002-03-261-0/+1
|
* Fixed some minor style bugs.bde2002-03-261-2/+2
|
* Remove __P() usage.obrien2002-03-213-182/+182
|
* Add ifdef sparc64.jake2002-01-021-1/+1
|
* Fix style bugs (mostly remove 'extern' from function prototypes)phantom2001-12-132-202/+206
| | | | Inspired by: conversation with bde
* Port to ia64. Actually, just do like the alpha.dfr2001-10-081-1/+1
|
* Added skeleton <complex.h> (aligned with the POSIX.1-200x), mostlyru2001-06-133-19/+20
| | | | | | | | to fix the "-nostdinc WARNS=X" breakage caused by broken prototypes for cabs() and cabsl() in <math.h>. Reimplemented cabs() and cabsl() using new complex numbers types and moved prototypes from <math.h> to <complex.h>.
* Fix #include orderbrian2000-10-151-1/+1
| | | | Spotted by: imura
* MFS: Add a "magic" comment to help fixincludes realize it doesn't need toobrien2000-03-271-0/+2
| | | | | | modify this file when building GCC 2.96 [by hand or via the port]. Submitted by: Zack Weinberg <zack@wolery.cumb.org>
* $Id$ -> $FreeBSD$peter1999-08-28163-163/+163
|
* There is no alpha asm code like on i386, so all the functions thatjb1998-05-101-1/+28
| | | | the i386 builds with a __generic prefix need to have that stripped.
* Back out last changepst1998-04-231-2/+2
|
* Fix cabs and cabsf definitions to be prototypes.pst1998-04-221-3/+3
|
* Hide the declaration of `struct exception' from C++, since it conflictsbde1997-08-311-1/+5
| | | | | with the standard C++ `class exception'. This makes matherr() difficult to use in C++. Small loss.
* Use __ieee754_sqrt() instead of sqrt() internally. Similarly for thebde1997-03-0912-33/+33
| | | | | | float versions. Using sqrt() was inefficient. Obtained from: NetBSD
* Fixed wrong magic numbers in scaling. hypotf() was very broken for largebde1997-03-051-8/+8
| | | | | | | | | | and small values: hypotf(2.3819765e+38, 2.0416943e+38) was NaN instead of 3.1372484e+38 hypotf(-3.4028235e+38, 3.3886450e+38) was NaN instead of Inf hypotf(-2.8025969e-45, -2.8025969e-45) was 0 instead of 4.2038954e-45 Found by: ucbtest
* Revert $FreeBSD$ to $Id$peter1997-02-22163-163/+163
|
* Split up the Bessel function wrapper files so that most wrapper functionsbde1997-02-2012-176/+313
| | | | are in their own file.
* Removed misplaced duplicate of comment about implementation details.bde1997-02-201-22/+0
|
* Select between the generic math functions and the i387-specific onesbde1997-02-1624-48/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | at runtime. etc/make.conf: Nuked HAVE_FPU option. lib/msun/Makefile: Always build the i387 objects. Copy the i387 source files at build time so that the i387 objects have different names. This is simpler than renaming the files in the cvs repository or repeating half of bsd.lib.mk to add explicit rules. lib/msun/src/*.c: Renamed all functions that have an i387-specific version by adding `__generic_' to their names. lib/msun/src/get_hw_float.c: New file for getting machdep.hw_float from the kernel. sys/i386/include/asmacros.h: Abuse the ENTRY() macro to generate jump vectors and associated code. This works much like PIC PLT dynamic initialization. The PIC case is messy. The old i387 entry points are renamed. Renaming is easier here because the names are given by macro expansions.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-14156-156/+156
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Made rintf() actually work. It was completely broken (when s_rint.cbde1996-08-282-6/+19
| | | | | | | | | | | was compiled with -O) by the precision bug in the i386 version of gcc (assignments and casts don't clip the precision). E.g., rintf(12.3456789) was 12.125. Avoid the same bug in rint(). It was only broken for the unusual case when the i387 precision is 64 bits. FreeBSD defaults to 53 bit precision to avoid problems like this, but the standard math emulator always uses 64 bit precision.
* General -Wall warning cleanup, part I.jkh1996-07-127-16/+16
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Remove trailing whitespace.rgrimes1995-05-30161-1036/+1036
|
* Submitted by: J.T. Conklin <jtc@wimsey.com>bde1995-04-076-10/+56
| | | | | | | Second part of update to fdlibm 5.2: speed up argument reduction for trig functions in the case pi/4 < |x| < 3pi/4. Remove unused static constants ("one").
* Submitted by: J.T. Conklin <jtc@wimsey.com>bde1995-04-072-4/+4
| | | | | First part of update to fdlibm 5.2: fix jn(n, x) and jnf(n, x). jn(-1, x) was too large by a factor of 3.
* Add missing z_abs. In BSD tradition this is in libm.a.ljo1994-11-111-0/+7
|
* J.T. Conklin's latest version of the Sun math library.jkh1994-08-19162-0/+15965
-- Begin comments from J.T. Conklin: The most significant improvement is the addition of "float" versions of the math functions that take float arguments, return floats, and do all operations in floating point. This doesn't help (performance) much on the i386, but they are still nice to have. The float versions were orginally done by Cygnus' Ian Taylor when fdlibm was integrated into the libm we support for embedded systems. I gave Ian a copy of my libm as a starting point since I had already fixed a lot of bugs & problems in Sun's original code. After he was done, I cleaned it up a bit and integrated the changes back into my libm. -- End comments Reviewed by: jkh Submitted by: jtc
OpenPOWER on IntegriCloud