2323
2424namespace fury {
2525#if defined(FURY_HAS_NEON)
26- inline uint16_t getMaxValue (const uint16_t *arr, size_t length) {
26+ uint16_t getMaxValue (const uint16_t *arr, size_t length) {
2727 if (length == 0 ) {
2828 return 0 ; // Return 0 for empty arrays
2929 }
@@ -54,7 +54,7 @@ inline uint16_t getMaxValue(const uint16_t *arr, size_t length) {
5454 return max_neon;
5555}
5656
57- inline void copyArray (const uint16_t *from, uint8_t *to, size_t length) {
57+ void copyArray (const uint16_t *from, uint8_t *to, size_t length) {
5858 size_t i = 0 ;
5959 for (; i + 7 < length; i += 8 ) {
6060 uint16x8_t src = vld1q_u16 (&from[i]);
@@ -68,7 +68,7 @@ inline void copyArray(const uint16_t *from, uint8_t *to, size_t length) {
6868 }
6969}
7070#elif defined(FURY_HAS_SSE2)
71- inline uint16_t getMaxValue (const uint16_t *arr, size_t length) {
71+ uint16_t getMaxValue (const uint16_t *arr, size_t length) {
7272 if (length == 0 ) {
7373 return 0 ; // Return 0 for empty arrays
7474 }
@@ -100,7 +100,7 @@ inline uint16_t getMaxValue(const uint16_t *arr, size_t length) {
100100 return max_sse;
101101}
102102
103- inline void copyArray (const uint16_t *from, uint8_t *to, size_t length) {
103+ void copyArray (const uint16_t *from, uint8_t *to, size_t length) {
104104 size_t i = 0 ;
105105 __m128i mask = _mm_set1_epi16 (0xFF ); // Mask to zero out the high byte
106106 for (; i + 7 < length; i += 8 ) {
@@ -116,7 +116,7 @@ inline void copyArray(const uint16_t *from, uint8_t *to, size_t length) {
116116 }
117117}
118118#else
119- inline uint16_t getMaxValue (const uint16_t *arr, size_t length) {
119+ uint16_t getMaxValue (const uint16_t *arr, size_t length) {
120120 if (length == 0 ) {
121121 return 0 ; // Return 0 for empty arrays
122122 }
@@ -129,7 +129,7 @@ inline uint16_t getMaxValue(const uint16_t *arr, size_t length) {
129129 return max_val;
130130}
131131
132- inline void copyArray (const uint16_t *from, uint8_t *to, size_t length) {
132+ void copyArray (const uint16_t *from, uint8_t *to, size_t length) {
133133 // Fallback for systems without SSE2/NEON
134134 for (size_t i = 0 ; i < length; ++i) {
135135 to[i] = static_cast <uint8_t >(from[i]);
0 commit comments