Up to[local] /src /lib /libm /src
Request diff between arbitrary revisions
Default branch: MAIN
Revision1.18 / (download) -annotate -[select for diffs],Mon Sep 12 19:47:02 2016 UTC (9 years, 2 months ago) byguenther
Branch:MAIN
CVS Tags:OPENBSD_7_8_BASE,OPENBSD_7_8,OPENBSD_7_7_BASE,OPENBSD_7_7,OPENBSD_7_6_BASE,OPENBSD_7_6,OPENBSD_7_5_BASE,OPENBSD_7_5,OPENBSD_7_4_BASE,OPENBSD_7_4,OPENBSD_7_3_BASE,OPENBSD_7_3,OPENBSD_7_2_BASE,OPENBSD_7_2,OPENBSD_7_1_BASE,OPENBSD_7_1,OPENBSD_7_0_BASE,OPENBSD_7_0,OPENBSD_6_9_BASE,OPENBSD_6_9,OPENBSD_6_8_BASE,OPENBSD_6_8,OPENBSD_6_7_BASE,OPENBSD_6_7,OPENBSD_6_6_BASE,OPENBSD_6_6,OPENBSD_6_5_BASE,OPENBSD_6_5,OPENBSD_6_4_BASE,OPENBSD_6_4,OPENBSD_6_3_BASE,OPENBSD_6_3,OPENBSD_6_2_BASE,OPENBSD_6_2,OPENBSD_6_1_BASE,OPENBSD_6_1,HEAD
Changes since1.17: +5 -1 lines
Diff to previous1.17 (colored)
Reduce libm's exports and make internal calls go direct.All dependencies on libc are now via reserved/standardized names.ok kettenis@ millert@ deraadt@
Revision1.17 / (download) -annotate -[select for diffs],Mon Jun 2 19:31:17 2014 UTC (11 years, 6 months ago) bykettenis
Branch:MAIN
CVS Tags:OPENBSD_6_0_BASE,OPENBSD_6_0,OPENBSD_5_9_BASE,OPENBSD_5_9,OPENBSD_5_8_BASE,OPENBSD_5_8,OPENBSD_5_7_BASE,OPENBSD_5_7,OPENBSD_5_6_BASE,OPENBSD_5_6
Changes since1.16: +2 -2 lines
Diff to previous1.16 (colored)
Make sure STRICT_ASSIGN handles double as well. From FreeBSD, where thecommit messages that fixes this says:"it was intentionally left broken as an optimization".right!ok martynas@, daniel@
Revision1.16 / (download) -annotate -[select for diffs],Tue Nov 12 20:35:09 2013 UTC (12 years ago) bymartynas
Branch:MAIN
CVS Tags:OPENBSD_5_5_BASE,OPENBSD_5_5
Changes since1.15: +3 -1 lines
Diff to previous1.15 (colored)
Declare __p1evll and __polevll protos in math_private.h instead ofredeclaring each time in ld{80,128}. Pointed out by theo. Revision1.15 / (download) -annotate -[select for diffs],Tue Jul 26 11:43:01 2011 UTC (14 years, 4 months ago) bymartynas
Branch:MAIN
CVS Tags:OPENBSD_5_4_BASE,OPENBSD_5_4,OPENBSD_5_3_BASE,OPENBSD_5_3,OPENBSD_5_2_BASE,OPENBSD_5_2,OPENBSD_5_1_BASE,OPENBSD_5_1,OPENBSD_5_0_BASE,OPENBSD_5_0
Changes since1.14: +3 -3 lines
Diff to previous1.14 (colored)
At some point we've switched to the VFP floating-point--unlike FPAit actually stores floats in natural-endian--therefore the existingchecks became wrong.Take into account __VFP_FP__, effectively bringing back the oldbehavior. This way it will work now, and in the future when someof our platforms are switched to FPA, where it's much faster.
Revision1.14 / (download) -annotate -[select for diffs],Tue Jul 26 09:24:52 2011 UTC (14 years, 4 months ago) bymartynas
Branch:MAIN
Changes since1.13: +4 -4 lines
Diff to previous1.13 (colored)
__arm32__ -> __arm__, since our new compiler isn't defining theformer anymore. OK miod@.
Revision1.13 / (download) -annotate -[select for diffs],Wed Jul 6 00:02:42 2011 UTC (14 years, 5 months ago) bymartynas
Branch:MAIN
Changes since1.12: +9 -9 lines
Diff to previous1.12 (colored)
Finalize work on the math library. It's time to do this monstercommit, and deal with problems (if any) in tree.Note that this adds the following functions. Ports with hacks mightneed adjustments.nexttoward(3),fma(3),nexttowardf(3),fmaf(3),acoshl(3),asinhl(3),atanhl(3),coshl(3),sinhl(3),tanhl(3),expl(3),expm1l(3),logl(3),log10l(3),log1pl(3),log2l(3),modfl(3),cbrtl(3),hypotl(3),powl(3),erfl(3),erfcl(3),lgammal(3),tgammal(3),ceill(3),floorl(3),lrintl(3),llrintl(3),roundl(3),lroundl(3),llroundl(3),truncl(3),fmodl(3),remainderl(3),remquol(3),nextafterl(3),nexttowardl(3),fmal(3).With this commit, our library implements all functionality requiredby C99. Documentation bits will follow.
Revision1.12 / (download) -annotate -[select for diffs],Mon Jul 4 15:00:56 2011 UTC (14 years, 5 months ago) bymartynas
Branch:MAIN
Changes since1.11: +183 -37 lines
Diff to previous1.11 (colored)
- Take into account padding for the IEEE extended shape types. Itshould be 96-bits on 32-bit architectures, and 128-bits on 64-bitarchitectures.- Add abstract macros to operate on long doubles by words. To beused soon.
Revision1.11 / (download) -annotate -[select for diffs],Tue Dec 9 20:00:35 2008 UTC (16 years, 11 months ago) bymartynas
Branch:MAIN
CVS Tags:OPENBSD_4_9_BASE,OPENBSD_4_9,OPENBSD_4_8_BASE,OPENBSD_4_8,OPENBSD_4_7_BASE,OPENBSD_4_7,OPENBSD_4_6_BASE,OPENBSD_4_6,OPENBSD_4_5_BASE,OPENBSD_4_5
Changes since1.10: +15 -5 lines
Diff to previous1.10 (colored)
- 80-bit and quad precision trigonometric and other mostimportant 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 ofchanges to adapt. note, these are all c versions; and arequite slow when architectures have, e.g. sqrt. assemblyversions will be added afterwards- make them .weak/__weak_alias to the double precisionversions on other archs- no need to have two finites. finite() and finitef() arenon-standard 3BSD obsolete versions of isfinite. removefrom libm. make them weak_alias in libc to __isfinite and__isfinitef instead. similarly make 3BSD obsolete versionsof isinf, isinff, isnan, isnanf weak_aliases to C99's__isinf, __isinff, __isnan, __isnanf- remove unused infinity.c. the c library has infinitiesfor each supported platform- use STRICT_ASSIGN cast hack for _kernel_rem_pio2, so thatthe double version has a chance of working on i386 withextra precision- avoid storing multiple copies of the pi/2 array, sinceit won't vary- bump major due to removed finite/finitef. although theywill be in libc, which anything is linked to, minor bumpmight be enoughok millert@. tested by sthen@, jsg@, ajacoutot@, kili@, naddy@
Revision1.10 / (download) -annotate -[select for diffs],Sun Sep 7 20:36:09 2008 UTC (17 years, 2 months ago) bymartynas
Branch:MAIN
Changes since1.9: +3 -61 lines
Diff to previous1.9 (colored)
- replace dtoa w/ David's gdtoa, version 2008-03-15- 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 isfixed- 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 mistakesin SVID, etc.; use ieee versions. fixes issues in python 2.6 fordjm@- 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.hfor 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&ldtoato use- add EXT_IMPLICIT_NBIT definition, which indicates implicitnormalization 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 itreally 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 froma day agodiscussed 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 Revision1.9 / (download) -annotate -[select for diffs],Thu Jul 24 09:40:16 2008 UTC (17 years, 4 months ago) bymartynas
Branch:MAIN
CVS Tags:OPENBSD_4_4_BASE,OPENBSD_4_4
Changes since1.8: +21 -1 lines
Diff to previous1.8 (colored)
- remove isinff, isnanf. this has been moved to libc- remove never-enabled signbit. libc has is now- add C99 implementations, from freebsd, for nan(), nanf() (neededto write _digittoint for it), exp2(), exp2f(), remquo(), remquof(),needed STRICT_ASSIGN macro for math_private.h- bump majorman pages will followexp2{,f} has been requested by chl@ok millert@ Revision1.8 / (download) -annotate -[select for diffs],Wed Jun 11 20:53:27 2008 UTC (17 years, 5 months ago) bymartynas
Branch:MAIN
Changes since1.7: +49 -20 lines
Diff to previous1.7 (colored)
- on non-ieee, rename gamma to tgamma, the 'true' gamma- make gamma an alias of lgamma- on ieee, add tgamma, based on gamma from non-ieee- fixes for tgamma/lgamma/exp/log, esp. special cases (some fromfreebsd); properly raise invalid fp operations on vax- also some general cleanup, ansification, man page (which was okjmc@)- bump minorthis makes some ports using tgamma possible; also consistifiesbehavior across openbsd/ieee and openbsd/non-ieee, and other operatingsystemsmuch thanks sthen@, johan@, steven@, Simon Kuhnle, Wiktor Izdebskifor testingok millert@
Revision1.7 / (download) -annotate -[select for diffs],Fri Jun 1 05:50:56 2007 UTC (18 years, 6 months ago) byjason
Branch:MAIN
CVS Tags:OPENBSD_4_3_BASE,OPENBSD_4_3,OPENBSD_4_2_BASE,OPENBSD_4_2
Changes since1.6: +43 -1 lines
Diff to previous1.6 (colored)
add little endian and big endian shapes for extended and quad float
Revision1.6 / (download) -annotate -[select for diffs],Sat Feb 16 21:27:27 2002 UTC (23 years, 9 months ago) bymillert
Branch:MAIN
CVS Tags:OPENBSD_4_1_BASE,OPENBSD_4_1,OPENBSD_4_0_BASE,OPENBSD_4_0,OPENBSD_3_9_BASE,OPENBSD_3_9,OPENBSD_3_8_BASE,OPENBSD_3_8,OPENBSD_3_7_BASE,OPENBSD_3_7,OPENBSD_3_6_BASE,OPENBSD_3_6,OPENBSD_3_5_BASE,OPENBSD_3_5,OPENBSD_3_4_BASE,OPENBSD_3_4,OPENBSD_3_3_BASE,OPENBSD_3_3,OPENBSD_3_2_BASE,OPENBSD_3_2,OPENBSD_3_1_BASE,OPENBSD_3_1
Changes since1.5: +64 -64 lines
Diff to previous1.5 (colored)
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.
Revision1.5 / (download) -annotate -[select for diffs],Thu Mar 2 00:29:50 2000 UTC (25 years, 9 months ago) bytodd
Branch:MAIN
CVS Tags:OPENBSD_3_0_BASE,OPENBSD_3_0,OPENBSD_2_9_BASE,OPENBSD_2_9,OPENBSD_2_8_BASE,OPENBSD_2_8,OPENBSD_2_7_BASE,OPENBSD_2_7
Changes since1.4: +1 -1 lines
Diff to previous1.4 (colored)
$OpenBSD$
Revision1.4 / (download) -annotate -[select for diffs],Thu Nov 14 14:21:51 1996 UTC (29 years ago) byetheisen
Branch:MAIN
CVS Tags:OPENBSD_2_6_BASE,OPENBSD_2_6,OPENBSD_2_5_BASE,OPENBSD_2_5,OPENBSD_2_4_BASE,OPENBSD_2_4,OPENBSD_2_3_BASE,OPENBSD_2_3,OPENBSD_2_2_BASE,OPENBSD_2_2,OPENBSD_2_1_BASE,OPENBSD_2_1
Changes since1.3: +1 -2 lines
Diff to previous1.3 (colored)
machine/endian.h not needed.
Revision1.3 / (download) -annotate -[select for diffs],Fri May 24 10:57:43 1996 UTC (29 years, 6 months ago) byderaadt
Branch:MAIN
CVS Tags:OPENBSD_2_0_BASE,OPENBSD_2_0
Changes since1.2: +8 -3 lines
Diff to previous1.2 (colored)
darn good reason not use a primarily big-endian cpu in little-endian mode:the ARM port runs little-endian, but it's fp is still big-endian!
Revision1.2 / (download) -annotate -[select for diffs],Sat Oct 28 00:57:20 1995 UTC (30 years, 1 month ago) byderaadt
Branch:MAIN
Changes since1.1: +0 -0 lines
Diff to previous1.1 (colored)
update from NetBSD
Revision1.1.1.1 / (download) -annotate -[select for diffs](vendor branch),Wed Oct 18 08:42:56 1995 UTC (30 years, 1 month ago) byderaadt
CVS Tags:netbsd_1_1
Changes since1.1: +0 -0 lines
Diff to previous1.1 (colored)
initial import of NetBSD tree
Revision1.1 / (download) -annotate -[select for diffs],Wed Oct 18 08:42:56 1995 UTC (30 years, 1 month ago) byderaadt
Branch:MAIN
Initial revision