summaryrefslogtreecommitdiff
path: root/lib/libm/arch
AgeCommit message (Collapse)Author
2017-01-11Add support for AArch64. Based on FreeBSD's msun header, modifiedPatrick Wildt
to look and feel like our code.
2016-12-22copysign and copysignf are used within libm, so declare them accordingly.Christian Weisgerber
Required if the compiler doesn't replace them with builtins (e.g. clang on amd64). ok kettenis@ guenther@ i386 sync requested by guenther@
2016-09-12Reduce libm's exports and make internal calls go direct.Philip Guenther
All dependencies on libc are now via reserved/standardized names. ok kettenis@ millert@ deraadt@
2016-09-01retire the sparc library codeTed Unangst
2016-05-12more hppa64 cleaningTheo de Raadt
2016-03-10more pieces of vaxTheo de Raadt
2015-01-20Missing $OpenBSD$'s.Kenneth R Westerback
ok deraadt@
2014-09-12Provide a sparc64 version of sqrtl(3) that simply calls _Qp_sqrt.Mark Kettenis
The generic sqrtl(3) is not nearly accurate enough for quad-precision floating point.
2014-04-18It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
2014-03-18Retire hp300, mvme68k and mvme88k ports. These ports have no users, keepingMiod Vallat
this hardware alive is becoming increasingly difficult, and I should heed the message sent by the three disks which have died on me over the last few days. Noone sane will mourn these ports anyway. So long, and thanks for the fish.
2013-08-06scalbnf on vax, okay miod@Marc Espie
2013-07-15Fix atan2f() and hypotf() by actually converting both their arguments to theMiod Vallat
larger type and passing them both the the double routine.
2013-07-15add some missing asm functions to vax: long double as aliases to double,Marc Espie
and float functions by cvtfd/cvtdf (like in netbsd) scalbnf will have to wait, as it's more complicated... brings vax in line with the rest. okay miod@/martynas@
2013-07-05VAX ELF userland bits. Consists mostly of register prefix additions.Miod Vallat
2013-03-28Switch libc and libm to use strong aliases rather than weak aliasesMartynas Venckus
where appropriate. Among other things makes the symbols consistent across all architectures (notably where ldbl mantissa is 53 bits). While at it, kill unused LINTLIBRARY/PROTOLIB1 cruft which was there to trick lint into recording the right prototypes for aliased functions. Most of the work done at the awesome n2k13 hackathon. Agreed by kettenis@, guenther@, matthew@.
2013-02-02Userland bits for m68k/ELF. Mostly addition of register prefixes to theMiod Vallat
assembler instructions, and cope with the few changes in return values location.
2013-01-13Get rid of the very ugly lint workarounds: LINTLIBRARY, PROTOLIB,Martynas Venckus
and a few empty files for lint to chew on.
2013-01-05Switch m88k ports to ELF.Miod Vallat
2012-12-30Provide proper ldexp{f,l} aliases to scalbn{f,l} to match the MI (ld80) code.Miod Vallat
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-08-23Aliases for extended precision were missed on a few functions on hppa.Martynas Venckus
Reported by Brad, thanks!
2011-07-09Switch to the SSE code. OK mikeb@.Martynas Venckus
2011-07-09Don't reimplement the same thing twice. OK matthew@.Martynas Venckus
2011-07-08Revert (leaving the complex math part alone). Some stuff is dependingMartynas Venckus
on this historical behavior; so we're stuck in this stupid situation. No cookie for me.
2011-07-08Move fabs(3), frexp(3), and modf(3) to libm--nothing has been usingMartynas Venckus
them in libc for a very long time. OK guenther@.
2011-05-31Make lint play nicer in pass 2 of libm on amd64 and i386. TheMartynas Venckus
internal _ItL_* extended-precision constants are of course going to be declared inconsistently since we define them based on structures; however prototype as long doubles.
2011-05-30Trick lint into recording the right prototypes in the llib-lm.lnMartynas Venckus
database on platforms without extended-precision floating-point support. Seems like a reasonable approach to millert@.
2011-05-28Adapt m68k MD functions to extended-precision.Martynas Venckus
Go for it miod@.
2011-05-28Adapt m68k MD functions to single-precision.Martynas Venckus
Looked over by miod@.
2011-04-29Trick GCC (-O2) into actually raising the underflow exception on m88k.Martynas Venckus
Since the second division operand is a power of two, non-zero, non-nan, this got optimized (-O2) into multiplication. As a result the underflow exception wasn't being raised properly. Make the second operand a volatile to prevent incorrect optimizations. OK miod@.
2011-04-28ixnay on the nopfayMiod Vallat
2011-04-28fenv improvements and cleanupsMartynas Venckus
2011-04-26fenv for mips64Martynas Venckus
2011-04-25fenv for sparc; mostly cloned from sparc64Martynas Venckus
2011-04-25fenv for powerpcMartynas Venckus
2011-04-24fenv for shMartynas Venckus
2011-04-24fenv for i386, and sparc64; from matthew@Martynas Venckus
not reviewed yet, but it's better to track changes in cvs
2011-04-24fenv for armMartynas Venckus
2011-04-23Implement C99 floating-point environment for Alpha.Martynas Venckus
Delivering FPE with non-masked exceptions doesn't work on Alpha; I suspect there's a bug in the kernel trap handler. FE_INEXACT is intentionally left out of FE_ALL_EXCEPT; since the inexact exception is not being maintained. Otherwise it will lead to the bogus results.
2011-04-21fenv for amd64; from matthew@Martynas Venckus
feedback & ok guenther@, matthew@
2011-04-21fenv for hppaMartynas Venckus
2011-04-20fenv for m68kMartynas Venckus
2010-06-03typo in a commentTheo de Raadt
2010-05-05Tweak inline asm to prevent gcc4 from optimizing away crucial bits of it.Mark Kettenis
ok miod@
2009-11-06Provide assembly version of sqrtl(3).Mark Kettenis
ok pirofti@
2009-11-05Provide assembly version of sqrtl(3).Mark Kettenis
ok otto@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2009-07-15round, roundf, trunc, truncf for hppa; ok kettenis@Martynas Venckus
2009-06-30floor(3) should round towards -inf instead of towards zero.Mark Kettenis
ok martynas@, deraadt@
2009-04-25fix scalbn, scalbnf, frexpf on amd64. don't use double argMartynas Venckus
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@