Index: src/core/SkNx.h |
diff --git a/src/core/SkNx.h b/src/core/SkNx.h |
index d0c7f41f1cd1b4b3b8a7e64b4b8fc9a4c6d43408..40c1ac69ce295b0122f265286150f8331bca43f4 100644 |
--- a/src/core/SkNx.h |
+++ b/src/core/SkNx.h |
@@ -299,6 +299,15 @@ typedef SkNx<4, int> Sk4i; |
#include "../opts/SkNx_sse.h" |
#elif !defined(SKNX_NO_SIMD) && defined(SK_ARM_HAS_NEON) |
#include "../opts/SkNx_neon.h" |
+#else |
+ |
+SI Sk4i Sk4f_round(const Sk4f& x) { |
+ return { (int) lrintf (x[0]), |
+ (int) lrintf (x[1]), |
+ (int) lrintf (x[2]), |
+ (int) lrintf (x[3]), }; |
+} |
+ |
#endif |
SI void Sk4f_ToBytes(uint8_t p[16], const Sk4f& a, const Sk4f& b, const Sk4f& c, const Sk4f& d) { |