summaryrefslogtreecommitdiff
path: root/absl/numeric
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2021-03-02 14:28:07 -0800
committerGravatar Matt Kulukundis <matt.fowles@gmail.com>2021-03-03 12:03:24 -0500
commitb0735979d778a768caee207f01f327535cbd2140 (patch)
treebcb5706f7d0921383cd5832cf9347f7fb42516c7 /absl/numeric
parenta76698790753d2ec71f655cdc84d61bcb27780d4 (diff)
Export of internal Abseil changes
-- a74bdb72c3a6983e08a805938dd0e20e97d55bba by Abseil Team <absl-team@google.com>: Fix typo: calcualte -> calculate PiperOrigin-RevId: 360515509 -- 3ddf8ac194e81a13e9de095e59dd061c1beacfe3 by Benjamin Barenblat <bbaren@google.com>: Make tests tolerant of FMA contraction Weaken Duration.ToDoubleSecondsCheckEdgeCases and Duration.ToDoubleSecondsCheckRandom to make them less sensitive to fused multiply/add contraction. PiperOrigin-RevId: 360297653 GitOrigin-RevId: a74bdb72c3a6983e08a805938dd0e20e97d55bba Change-Id: I0c55383bc13040ea77511c4130d142368103dc57
Diffstat (limited to 'absl/numeric')
-rw-r--r--absl/numeric/internal/bits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/numeric/internal/bits.h b/absl/numeric/internal/bits.h
index e51941d7..bfef06bc 100644
--- a/absl/numeric/internal/bits.h
+++ b/absl/numeric/internal/bits.h
@@ -343,7 +343,7 @@ ABSL_ATTRIBUTE_ALWAYS_INLINE ABSL_INTERNAL_CONSTEXPR_CLZ inline
typename std::enable_if<std::is_unsigned<T>::value, T>::type
BitCeilNonPowerOf2(T x) {
// If T is narrower than unsigned, it undergoes promotion to unsigned when we
- // shift. We calcualte the number of bits added by the wider type.
+ // shift. We calculate the number of bits added by the wider type.
return BitCeilPromotionHelper(
static_cast<T>(std::numeric_limits<T>::digits - CountLeadingZeroes(x)),
T{sizeof(T) >= sizeof(unsigned) ? 0