diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
| commit | 959575a5ca598bf5f37fb5cebe7ed1d80d3d71f7 (patch) | |
| tree | acc8d60aedb12b70048e676e8a7349deb0010db8 /src/mongo/platform/decimal128.h | |
| parent | 76588293975fc059cf076779e4283e6ffaf8afff (diff) | |
New upstream version 6.0.20upstream
Diffstat (limited to 'src/mongo/platform/decimal128.h')
| -rw-r--r-- | src/mongo/platform/decimal128.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mongo/platform/decimal128.h b/src/mongo/platform/decimal128.h index 64306df0e0c..06a78352546 100644 --- a/src/mongo/platform/decimal128.h +++ b/src/mongo/platform/decimal128.h @@ -467,13 +467,14 @@ public: Decimal128 exponential(RoundingMode roundMode = kRoundTiesToEven) const; Decimal128 exponential(std::uint32_t* signalingFlags, RoundingMode roundMode = kRoundTiesToEven) const; - Decimal128 logarithm(RoundingMode roundMode = kRoundTiesToEven) const; - Decimal128 logarithm(std::uint32_t* signalingFlags, - RoundingMode roundMode = kRoundTiesToEven) const; - Decimal128 logarithm(const Decimal128& other, RoundingMode roundMode = kRoundTiesToEven) const; - Decimal128 logarithm(const Decimal128& other, - std::uint32_t* signalingFlags, - RoundingMode roundMode = kRoundTiesToEven) const; + Decimal128 naturalLogarithm(RoundingMode roundMode = kRoundTiesToEven) const; + Decimal128 naturalLogarithm(std::uint32_t* signalingFlags, + RoundingMode roundMode = kRoundTiesToEven) const; + // Calculate the logarithm with the given `base`, using this number as input. Uses fast paths + // for base 2 and 10. + // TODO SERVER-91935 convert `logarithm` and others to static methods for a more clear + // interface. + Decimal128 logarithm(const Decimal128& base, RoundingMode roundMode = kRoundTiesToEven) const; Decimal128 modulo(const Decimal128& other) const; Decimal128 modulo(const Decimal128& other, std::uint32_t* signalingFlags) const; |
