1 diff --git a/include/private/base/SkFloatingPoint.h b/include/private/base/SkFloatingPoint.h
2 index 3c6d22c310..60500b2d2c 100644
3 --- a/include/private/base/SkFloatingPoint.h
4 +++ b/include/private/base/SkFloatingPoint.h
5 @@ -159,7 +159,9 @@ static inline int64_t sk_float_saturate2int64(float x) {
6 // Cast double to float, ignoring any warning about too-large finite values being cast to float.
7 // Clang thinks this is undefined, but it's actually implementation defined to return either
8 // the largest float or infinity (one of the two bracketing representable floats). Good enough!
9 +#if defined(__clang__)
10 SK_NO_SANITIZE("float-cast-overflow")
12 static inline float sk_double_to_float(double x) {
13 return static_cast<float>(x);
15 @@ -242,12 +244,16 @@ static inline int sk_float_nextlog2(float x) {
16 // IEEE defines how float divide behaves for non-finite values and zero-denoms, but C does not
17 // so we have a helper that suppresses the possible undefined-behavior warnings.
19 +#if defined(__clang__)
20 SK_NO_SANITIZE("float-divide-by-zero")
22 static inline float sk_ieee_float_divide(float numer, float denom) {
26 +#if defined(__clang__)
27 SK_NO_SANITIZE("float-divide-by-zero")
29 static inline double sk_ieee_double_divide(double numer, double denom) {