summaryrefslogtreecommitdiffstats
path: root/lib/libm (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add barebones manual pages for cimag(3), conj(3) and cproj(3)millert2010-07-194-2/+168
| | | | OK kettenis@ jmc@
* Fix the cproj family to not return garbage on finite arguments.guenther2010-07-194-4/+12
| | | | ok millert@
* Use crealf() and cimagf() instead of creal() and cimag() when theguenther2010-07-1811-34/+34
| | | | | | argument is a float. Eliminate a cast rendered superfluous as a result. ok kettenis@, millert@
* typo in a commentderaadt2010-06-031-2/+2
|
* Tweak inline asm to prevent gcc4 from optimizing away crucial bits of it.kettenis2010-05-058-24/+24
| | | | ok miod@
* dispense with some wacky escape sequences;jmc2010-03-262-10/+10
|
* Multiple issues were killing the build with mandoc(1), thus:schwarze2010-02-201-23/+13
| | | | | | | | * do not use low-level roff macros like .if and .ds * add the missing .Os to the preamble * move unqualified text out of .Bl ok jmc@
* Use MACHINE_CPU instead of MACHINE_ARCH to pick the correct machine dependentmiod2010-02-031-2/+2
| | | | | | | files or directories when applicable. The inspiration and name of MACHINE_CPU come from NetBSD, although the way to provide it to Makefiles is completely different. ok kettenis@
* Provide assembly version of sqrtl(3).kettenis2009-11-062-1/+14
| | | | ok pirofti@
* Provide assembly version of sqrtl(3).kettenis2009-11-052-1/+14
| | | | ok otto@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-27147-621/+33
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* reorder the log functions slightly; from thomas pfaffjmc2009-10-271-10/+10
|
* Add man pages for the fdim/fmin/fmax family of functions and make sure fdimlkettenis2009-10-265-10/+195
| | | | | | is defined on all architectures. ok jmc@ (man pages) and martynas@
* document log2() and log2f(); from thomas pfaffjmc2009-10-242-5/+22
| | | | ok otto millert martynas
* remove, or replace Xr of ieee to either ilogb, nextafter or scalbnmartynas2009-08-039-29/+27
| | | | where appropriate. pointed out by jmc@
* now that the pages are split and we track separate HISTORY:martynas2009-07-294-13/+32
| | | | | | | double => 4.3BSD float => NetBSD 1.1 long double => OpenBSD 4.5 scalbln, scalblnf, scalblnl => OpenBSD 4.7
* ieee, and ieeef aren't real, and the amount of functions it documentsmartynas2009-07-295-90/+240
| | | | | is getting ridiculous. split them into groups of copysign, ilogb, nextafter, scalbn. discussed long ago with millert@
* ieee_test isn't real; rename header to logb, toomartynas2009-07-291-3/+3
|
* document scalbln, scalblnf, scalblnlmartynas2009-07-282-8/+30
|
* int is big enough to fully represent exponents of all supported fpmartynas2009-07-254-5/+80
| | | | | | | | formats. which even for 80-bit & 128-bit long doubles is only 15 bits. therefore, scalbln, scalblnf, scalblnl are essentially the same as scalbn, scalbnf, scalbnl with bounds checking so that LONG_MIN..INT_MIN, and INT_MAX..LONG_MAX ranges properly raise exceptions & yield correct values. looks good to millert@
* round, roundf, trunc, truncf for hppa; ok kettenis@martynas2009-07-155-2/+111
|
* fe_towardzero not on openbsd. ok millert@martynas2009-07-061-5/+3
|
* floor(3) should round towards -inf instead of towards zero.kettenis2009-06-302-6/+4
| | | | ok martynas@, deraadt@
* fix scalbn, scalbnf, frexpf on amd64. don't use double argmartynas2009-04-252-10/+16
| | | | | | | | | | float/double prologue/epilogue, since the second argument is not float/double. were never working properly (always returned inf). actually, should help other math funcs (like pow) too, since they use it internally tested by kurt@; devel/boost fp regresses are working better now. ok kurt@
* alias and give frexpf symbol external linkage to scalbnf; this wasmartynas2009-04-212-2/+8
| | | | | | | | overriden by md source. spotted by kurt@ actually; on amd64 scalbnf, scalbn (and therefore now frexpf) have always been broken since second argument is not float. fix is under reviewal / will be committed separately ok kurt@, kettenis@, millert@. tested by kurt@
* make ldexpf behavior consistent with the double and extended-precisionmartynas2009-04-194-72/+10
| | | | | | versions; spotted by kettenis@ while here also remove unused ldexp; it lives in libc ok kettenis@, "looks good" millert@
* in the old days compiler could not convert decimal constantsmartynas2009-04-1114-306/+82
| | | | | | | | | | accurately, hence the tricks in libm, using machine representation of constants. remove kludges and switch to use decimal constants, much simplifying the code. since, the compiler converts them accurately. generated values match on vaxfp discussed with millert@, and miod@ testing todd@, and myself ok millert@
* lrint, llrint, lrintf, llrintf for amd64. ok kettenis@, oga@martynas2009-04-105-1/+50
|
* missing rcs ids; spacingmartynas2009-04-084-18/+19
|
* remove i386/x86_64 ifdefs. i386 lives @ i387. miod@ agreesmartynas2009-04-0811-183/+10
| | | | object code matches so this got to be oki
* fix hexadecimal constant that was wrong; and confused with ieee. ok miod@martynas2009-04-081-2/+2
|
* implement and use sqrt, sqrtf & fabsf in hardware; since it'smartynas2009-04-054-1/+89
| | | | faster that way. tested by myself. discussed w/ & ok miod@, millert@
* const static -> static const; since it's deprecated per C99. ok millert@martynas2009-04-057-24/+24
|
* add C99-conformant nan, nanf, nanl for vax. always return zero,martynas2009-03-282-2/+31
| | | | | since its fp does not have distinguished values for qnans. tested by naddy@; fixes libnova. ok theo
* Let this compile with gcc 2.miod2008-12-221-4/+4
|
* spacemartynas2008-12-126-15/+14
|
* document and mlink long double functions. ok jmc@martynas2008-12-1215-61/+196
|
* remove an unneccessary addition to SEE ALSO: all the informationjmc2008-12-111-14/+2
| | | | | | is already there; ok martynas
* use sys/cdefs.h; pointed out by theomartynas2008-12-1031-47/+47
|
* pass CPPFLAGS+= -D__STDC__ for vax, to get the right definitionsmartynas2008-12-091-1/+2
| | | | from asm.h. discussed w/ millert@
* alias fabsl to fabs on these archsmartynas2008-12-096-33/+15
|
* - 80-bit and quad precision trigonometric and other mostmartynas2008-12-0983-304/+4004
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | important functions: acosl, asinl, atanl, atan2l, cosl, sinl, tanl, exp2l, frexpl, ilogbl, ldexpl, logbl, scalbnl, fabsl, hypotl, powl, sqrtl, rintl, copysignl, nanl, fdiml, fmaxl, fminl. mostly taken from freebsd, needed alot of changes to adapt. note, these are all c versions; and are quite slow when architectures have, e.g. sqrt. assembly versions will be added afterwards - make them .weak/__weak_alias to the double precision versions on other archs - no need to have two finites. finite() and finitef() are non-standard 3BSD obsolete versions of isfinite. remove from libm. make them weak_alias in libc to __isfinite and __isfinitef instead. similarly make 3BSD obsolete versions of isinf, isinff, isnan, isnanf weak_aliases to C99's __isinf, __isinff, __isnan, __isnanf - remove unused infinity.c. the c library has infinities for each supported platform - use STRICT_ASSIGN cast hack for _kernel_rem_pio2, so that the double version has a chance of working on i386 with extra precision - avoid storing multiple copies of the pi/2 array, since it won't vary - bump major due to removed finite/finitef. although they will be in libc, which anything is linked to, minor bump might be enough ok millert@. tested by sthen@, jsg@, ajacoutot@, kili@, naddy@
* float math functions: copysignf and logbf. ok millert@martynas2008-11-201-1/+35
|
* - noieee_src: adapt complex versions of the functions it alreadymartynas2008-10-0729-229/+1794
| | | | | supports (which is all, except the float ones) ok millert@
* remove d_cbrt, dcbrt, d_sqrt. ok millert@martynas2008-09-162-16/+7
|
* typo: is -> if. ok millert@martynas2008-09-162-2/+2
|
* gc unused files, the functions are in libc. ok millert@martynas2008-09-165-126/+2
|
* remove z_abs. ok millert@martynas2008-09-132-16/+2
|
* since these got no ieee-specific code anymore, add fmin, fmax, fdim,martynas2008-09-116-2/+235
| | | | fminf, fmaxf, fdimf, fdiml for VAX. looks good to millert@
* - make much more readable: don't reimplement isnan, signbit eachmartynas2008-09-114-56/+32
| | | | | time we need them ok millert@