sw_engine raster: move neon implementation to the neon domained file.
authorHermet Park <chuneon.park@samsung.com>
Mon, 9 Aug 2021 11:53:27 +0000 (20:53 +0900)
committerHermet Park <chuneon.park@samsung.com>
Mon, 9 Aug 2021 11:55:22 +0000 (20:55 +0900)
Change-Id: I084f68269dcb49dace12162726768b77195f2c67

src/lib/sw_engine/tvgSwCommon.h
src/lib/sw_engine/tvgSwRasterNeon.h

index e77424c..b90b523 100644 (file)
@@ -267,14 +267,6 @@ static inline uint32_t ALPHA_BLEND(uint32_t c, uint32_t a)
             ((((c & 0x00ff00ff) * a + 0x00ff00ff) >> 8) & 0x00ff00ff));
 }
 
-#if defined(THORVG_NEON_VECTOR_SUPPORT)
-static inline uint8x8_t ALPHA_BLEND_NEON(uint8x8_t c, uint8x8_t a)
-{
-       uint16x8_t t = vmull_u8(c, a);
-       return vshrn_n_u16(t, 8);
-}
-#endif
-
 static inline uint32_t COLOR_INTERPOLATE(uint32_t c1, uint32_t a1, uint32_t c2, uint32_t a2)
 {
     auto t = (((c1 & 0xff00ff) * a1 + (c2 & 0xff00ff) * a2) >> 8) & 0xff00ff;
index 7fccbb0..0ca8304 100644 (file)
 
 #include <arm_neon.h>
 
+static inline uint8x8_t ALPHA_BLEND_NEON(uint8x8_t c, uint8x8_t a)
+{
+       uint16x8_t t = vmull_u8(c, a);
+       return vshrn_n_u16(t, 8);
+}
+
 
 static inline void neonRasterRGBA32(uint32_t *dst, uint32_t val, uint32_t offset, int32_t len)
 {