avoid immintrin.h in SkNx_sse.h
Including <immintrin.h> is an easy way to get all the supported
Intel intrinsics for the current build flags, and for intrinsics
since AVX, the only supported way.
But, including immintrin.h can pull in more headers than needed,
and for pieces of code like SkNx.h, that extra include cost is
measurable. Here we'll include only the intrisnics we'll use.
$ gn clean out && time ninja -C out
Before: 131.57 real 4207.95 user 249.18 sys
After: 125.60 real 3988.18 user 241.64 sys
Seems like a win.
Change-Id: I81543202d889be403ff0aa393c13c19ed89c5373
Reviewed-on: https://skia-review.googlesource.com/134325
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Auto-Submit: Mike Klein <mtklein@chromium.org>
1 file changed