summaryrefslogtreecommitdiffstats
path: root/include/math.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* int is big enough to fully represent exponents of all supported fpmartynas2009-07-251-7/+1
| | | | | | | | 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@
* nuke extern from func decls. ok millert@martynas2009-04-081-230/+230
|
* add __infinityf declaration. (only affects vax). pointed out by miod@martynas2008-12-111-1/+2
|
* expose extended-precision definitions. ok millert@martynas2008-12-091-4/+36
|
* sigh, gamma got lostmartynas2008-09-091-3/+1
|
* - replace dtoa w/ David's gdtoa, version 2008-03-15martynas2008-09-071-67/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago discussed with / requested by / testing theo, sthen@, djm@, jsg@, merdely@, jsing@, tedu@, brad@, jakemsr@, and others. looks good to millert@ parts of the diff ok kettenis@ this commit does not include: - man page changes
* unXXX prototypes: exp2, remquo, nan, exp2f, remquof, nanfmartynas2008-07-241-13/+1
|
* - add NAN definition (except on VAX)martynas2008-07-241-11/+5
| | | | | | | | | | | - add C99 real-floating macros fpclassify isfinite isinf isnan isnormal signbit - add C99 macros isgreater isgreaterequal isless islessequal islessgreater isunordered - add function prototypes, __fpclassify __fpclassifyf __fpclassifyl __isfinite __isfinitef __isfinitel __isinf __isinfl __isnan __isnanl __isnormal __isnormalf __isnormall __signbit __signbitf __signbitl ok millert@
* - added HUGE_VALF, HUGE_VALL, INFINITY, FP_INFINITE, FP_NAN,martynas2008-07-221-111/+343
| | | | | | | | | | FP_NORMAL, FP_SUBNORMAL, FP_ZERO, FP_ILOGB0, FP_ILOGBNAN definitions, per C99 - classify functions into sections, add missing definitions, add and some '#if 0' functions, and long double definitions, so we see what's needed to be done - other stuff is XXX'd, and will be uncommented soon ok millert@
* - add proper double_t and float_t definitions for each archmartynas2008-07-211-6/+4
| | | | | | - math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per C99). remove from math.h, and add proper definitions in float.h ok millert@
* infnan always returned wrong values, because compiler assumed itmartynas2008-07-161-1/+5
| | | | | returns integer value, so add missing prototype ok millert@
* tgamma and tgammafmartynas2008-06-111-1/+3
|
* add some more C99 functions: round(3) and roundf(3).brad2006-07-121-1/+3
| | | | | By Steven G. Kargl <kargl at troutmask dot apl dot washington.edu> From FreeBSD
* add missing prototypes for trunc/truncf.brad2006-07-121-1/+5
|
* delint; ok millert@ beck@otto2006-05-051-2/+2
|
* First step in include files overhaul. Use __FOO_VISIBLE (as definedmillert2005-12-131-15/+15
| | | | | in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@
* Introduce a few c99 functions: {l,ll}{rint,round}{,f}. From NetBSD viaotto2005-11-171-1/+9
| | | | jason@. Man page fixes by jmc@, prodding by jsg@. ok mickey@
* provide float_t, double_t, FLT_EVAL_METHOD (dummy C99 constructs)espie2005-01-061-1/+11
| | | | okay millert@
* Better value for vax MAXFLOATjason2003-06-261-2/+2
|
* redefine MAXFLOAT in vax termsjason2003-06-261-1/+6
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-120/+120
|
* Change protection of struct exception back from #ifdef __LIBM_PRIVATEmillert2001-05-261-2/+2
| | | | | | to #ifndef __cplusplus. It turns out there is code outside of libm that wants to use this. I suppose that's why it is in math.h instead of math_private.h ;-)
* $OpenBSD$todd2000-03-011-1/+1
|
* We don't need two math.h headers incvs server: nothing known aboutmillert1998-03-021-4/+7
| | | | | `math.h'. The one in libm is more up to date but the one in the include dir is what gets installed.
* Well, as we are heading for a release people are encouraged to rebuild theirniklas1997-09-211-0/+1
| | | | | entire trees for testing anyway, I might as well do this intrusive touching of include files now. Added openBSD tags.
* initial import of NetBSD treederaadt1995-10-181-0/+274