summaryrefslogtreecommitdiff
path: root/sal/rtl/math.cxx
AgeCommit message (Expand)Author
2022-02-18Define policy to optimize to_decimal to our use caseMike Kaganski
2022-02-17Use Dragonbox to implement doubleTo*String*Mike Kaganski
2021-11-17Use C++17 hex-exponent floating point literalsMike Kaganski
2021-10-05Optimize the whole range of getN10Exp over IEEE 754 doublesMike Kaganski
2021-10-04Use isRepresentableInteger hereMike Kaganski
2021-10-01Simplify the code a bit to clarify the logicMike Kaganski
2021-10-01Calculate buffer size correctlyMike Kaganski
2021-10-01Consider leading minusMike Kaganski
2021-10-01Use std::memmove instead of loopMike Kaganski
2021-10-01Drop static_cast syntactic noiseMike Kaganski
2021-10-01Always use buffer on stackMike Kaganski
2021-09-30Simplify comparisons in the loopMike Kaganski
2021-09-30Avoid reversing the bufferMike Kaganski
2021-09-29Use std::reverse instead of swapping in a loopMike Kaganski
2021-09-29Simplify integer roundingMike Kaganski
2021-07-09Do not support +/-NaN with an explicit signStephan Bergmann
2021-07-08Reliably generate positive or negative NaN againStephan Bergmann
2021-07-04Remove unused includesBaiXiaochun
2021-07-02Purge out setNan from math.cxxBaiXiaochun
2021-06-29Simplify expresionBaiXiaochun
2021-06-18Use std::fesetround / std::nearbyint for half-to-even roundingMike Kaganski
2021-05-23Related: tdf#136794 tdf#137063 Unlimit decimals in rtl_math_round()Eike Rathke
2020-12-18Check intermediate for not to be rounded value, tdf#138360 follow-upEike Rathke
2020-12-18Replace log2() call with parts.exponent-1023, tdf#138360 follow-upEike Rathke
2020-12-03Better accuracy in rtl_math_approxValue(), tdf#138360 relatedEike Rathke
2020-12-03Related: tdf#138360 Use approxFloor() in rtl_math_round()Eike Rathke
2020-12-02Typo in rounded digit string, tdf#138360 follow-upEike Rathke
2020-12-02Related: tdf#138360 Rounding integers to decimals is futileEike Rathke
2020-11-28Resolves: tdf#138360 better accuracy in rtl_math_round()Eike Rathke
2020-11-27Consistently use RTL_CONSTASCII_LENGTH(), tdf#136272 follow-upEike Rathke
2020-11-27Fix commentEike Rathke
2020-11-27Resolves: tdf#136272 convert DBL_MAX to 1.7976931348623157e+308Eike Rathke
2020-11-25Related: tdf#136272 accept 1.79769313486232e+308 as DBL_MAXEike Rathke
2020-11-16replace std::max(std::min()) with std::clampNoel
2020-10-18Limit nDecPlaces to a sensible value [-20, 20]Eike Rathke
2020-09-12Replace remaining uses of sal_CharJulien Nabet
2020-07-02Upcoming improved loplugin:staticanonymous -> redundantstatic: salStephan Bergmann
2020-04-17Just use __builtin_ffs on GCC and ClangStephan Bergmann
2020-04-15loplugin:buriedassign in salNoel Grandin
2020-03-14tdf#130975 replace `rtl::math::isNan` with `std::isnan`.Yukio Siraichi
2020-03-14tdf#130974 replace `rtl::math::isSignBitSet` with `std::signbit`.Yukio Siraichi
2020-03-12tdf#130976 replace `rtl::math::isInf` with `std::inf`.Yukio Siraichi
2020-03-12tdf#130977 replace `rtl::math::isFinite` with `std::isfinite`.Yukio Siraichi
2020-02-27Related: tdf#130725: use strtod also in rtl::math::stringToDoubleMike Kaganski
2019-12-19sal_Char->char in remotebridges..saxNoel Grandin
2019-08-09Resolves: tdf#126766 fix rounding correction at start of negative valuesEike Rathke
2018-12-01A leading or trailing group separator character is not a group separatorEike Rathke
2018-11-29Rename Mac OS X to official name macOS in comments and documentationBartosz Kosiorek
2018-10-09Extend loplugin:redundantinline to catch inline functions w/o external linkageStephan Bergmann
2018-08-27directly use malloc/free in sal, instead of rtl_allocateMemory/etcNoel Grandin