From b0735979d778a768caee207f01f327535cbd2140 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 2 Mar 2021 14:28:07 -0800 Subject: Export of internal Abseil changes -- a74bdb72c3a6983e08a805938dd0e20e97d55bba by Abseil Team : Fix typo: calcualte -> calculate PiperOrigin-RevId: 360515509 -- 3ddf8ac194e81a13e9de095e59dd061c1beacfe3 by Benjamin Barenblat : 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 --- absl/numeric/internal/bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'absl/numeric') 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::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(std::numeric_limits::digits - CountLeadingZeroes(x)), T{sizeof(T) >= sizeof(unsigned) ? 0 -- cgit v1.2.3