summaryrefslogtreecommitdiff
path: root/src/mongo/platform/decimal128.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/platform/decimal128.h')
-rw-r--r--src/mongo/platform/decimal128.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mongo/platform/decimal128.h b/src/mongo/platform/decimal128.h
index 06a78352546..64306df0e0c 100644
--- a/src/mongo/platform/decimal128.h
+++ b/src/mongo/platform/decimal128.h
@@ -467,14 +467,13 @@ public:
Decimal128 exponential(RoundingMode roundMode = kRoundTiesToEven) const;
Decimal128 exponential(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 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 modulo(const Decimal128& other) const;
Decimal128 modulo(const Decimal128& other, std::uint32_t* signalingFlags) const;