add operator/= for skvm::F32
I've made y an F32 instead of an F32a to remind us that it's usually best to multiply instead of divide by a constant. Change-Id: I15c9ab50e51f5011eca977908168ed27f1de25b0 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/351337 Auto-Submit: Mike Klein <mtklein@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: Mike Klein <mtklein@google.com>
This commit is contained in:
parent
d60c919fc8
commit
8194c3024f
@ -1093,6 +1093,7 @@ namespace skvm {
|
||||
static inline F32& operator+=(F32& x, F32a y) { return (x = x + y); }
|
||||
static inline F32& operator-=(F32& x, F32a y) { return (x = x - y); }
|
||||
static inline F32& operator*=(F32& x, F32a y) { return (x = x * y); }
|
||||
static inline F32& operator/=(F32& x, F32 y) { return (x = x / y); }
|
||||
|
||||
static inline Half operator+(Half x, Halfa y) { return x->add(x,y); }
|
||||
static inline Half operator+(float x, Half y) { return y->add(x,y); }
|
||||
|
Loading…
Reference in New Issue
Block a user