Changeset 3b814c3a in mainline for uspace/lib/math/generic/round.c
- Timestamp:
- 2018-08-30T19:12:03Z (6 years ago)
- Children:
- bbdca54
- Parents:
- ace1bca4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/math/generic/round.c
race1bca4 r3b814c3a 45 45 float roundf(float val) 46 46 { 47 /* If the input is a nan, return a canonical nan. */48 if (isnan(val))49 return __builtin_nanf("");50 51 47 const int exp_bias = FLT_MAX_EXP - 1; 52 48 const int mant_bits = FLT_MANT_DIG - 1; … … 78 74 double round(double val) 79 75 { 80 /* If the input is a nan, return a canonical nan. */81 if (isnan(val))82 return __builtin_nan("");83 84 76 const int exp_bias = DBL_MAX_EXP - 1; 85 77 const int mant_bits = DBL_MANT_DIG - 1;
Note:
See TracChangeset
for help on using the changeset viewer.