- Carmack rsqrt uses an int where it wants a uint32_t.
- turn off all santizers (including signed-integer-overflow) in third_party/externals/sftntly.
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-ASAN-Trybot
BUG=skia:4635
Review URL: https://codereview.chromium.org/
1511643002
static inline float SkFastInvSqrt(float x) {
float xhalf = 0.5f*x;
- int i = *SkTCast<int*>(&x);
+ uint32_t i = *SkTCast<uint32_t*>(&x);
i = 0x5f3759df - (i>>1);
x = *SkTCast<float*>(&i);
x = x*(1.5f-xhalf*x*x);
'dependencies' : [
'icu.gyp:icuuc',
],
+ # Disable any sanitizers we might be using.
+ 'ldflags!': [ '-fsanitize=<(skia_sanitizer)' ],
+ 'cflags!': [ '-fsanitize=<(skia_sanitizer)' ],
'conditions': [
[ 'skia_os == "win"',
{