skia /
skcms /
15d9fcc0efaaf4933fd1803e65777fded2725c46 cast refactoring
- add CAST(T, v) to cast vector v to type T
- rewrite LOAD_3 and LOAD_4 to look a bit more like this new CAST
I'm getting tired of reading X_from_Y() casts.
This should let express all those casts uniformly, using Clang's
__builtin_convertvector() if possible. GCC doesn't have that builtin,
so it still needs the long forms.
Change-Id: I3b015cd158da1665bd82bc26029a9339ebbc289f
Reviewed-on: https://skia-review.googlesource.com/96460
Reviewed-by: Brian Osman <brianosman@google.com>
1 file changed