summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/softfloat.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make normalizeRoundAndPackFloat{32,64} non-static; they will be used outsidemiod2014-07-011-3/+6
| | | | of softfloat.c shortly.
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-051-3/+1
| | | | ok guenther millert kettenis
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-4/+1
| | | | | | | 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
* unbreak ieeefp emulation code wrt converting double to unsignedmartynas2008-10-071-1/+86
| | | | | | | | | | | | | | | | long ints for alpha. we've got only one instruction (cvttq) to convert double-t to quadword, and float64_to_int64 did not take into account the unsigned conversions therefore, overflow always occured, and half of the unsigned range (LONG_MAX .. ULONG_MAX) was broken introduce roundAndPackInt64NoOverflow and float64_to_int64_no_overflow for softfloat, that works with unsigned integers as well. note that this will return zero for nan/inf/oflow/uflow, raising exception flag perl is happy now looked over by miod@ tested by naddy@, and by me on nick@'s alpha
* Unifdef NO_IEEE in the libkern softfloat code, and put an appropriate rulemiod2007-12-291-5/+1
| | | | | | in files.alpha to compensate for NO_IEEE kernels. This will allow the softfloat code to be used by other platforms than alpha.
* IEEE 754 floating point completion code, and implementation of thepvalchev2002-04-281-0/+5506
FP_C (Floating Point Control Quadword). From ross@NetBSD. Added a way to disable it with option NO_IEEE, which appears on the ramdisks to save space. This affects only programs compiled with -mieee, and what it essentially does is enabling infinities and NaNs, instead of generating SIGFPE on division by zero, overflow, etc. ok art, deraadt