aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/bits/float.h (follow)
Commit message (Expand)AuthorAgeFilesLines
* fix FLT_ROUNDS to reflect the current rounding mode•••Implemented as a wrapper around fegetround introducing a new function to the ABI: __flt_rounds. (fegetround cannot be used directly from float.h) Szabolcs Nagy2015-03-071-1/+0
* add FLT_TRUE_MIN, etc. macros from C11•••there was some question as to how many decimal places to use, since one decimal place is always sufficient to identify the smallest denormal uniquely. for now, I'm following the example in the C standard which is consistent with the other min/max macros we already had in place. Rich Felker2013-05-171-0/+1
* support -mfpmath=387 on x86_64•••apparently somebody wants this for something... and it doesn't hurt. Rich Felker2012-07-101-0/+4
* fix wrong value of FLT_EVAL_METHOD for x86_64Rich Felker2012-07-101-1/+1
* fix DECIMAL_DIG definitions•••DECIMAL_DIG is not the same as LDBL_DIG type_DIG is the maximimum number of decimal digits that can survive a round trip from decimal to type and back to decimal. DECIMAL_DIG is the minimum number of decimal digits required in order for any floating point type to survive the round trip to decimal and back, and it is generally larger than LDBL_DIG. since the exact formula is non-trivial, and defining it larger than necessary may be legal but wasteful, just define the right value in bits/float.h. Rich Felker2012-03-211-0/+2
* add missing float.h macros•••actually FLT_ROUNDS needs to expand to a static inline function that obtains the current rounding mode and returns it, but that will be added later with fenv.h stuff. Rich Felker2011-04-101-0/+3
* Port musl to x86-64. One giant commit!Nicholas J. Kain2011-02-151-0/+11