| @@ -30,7 +30,7 @@ typedef void (*PowerFunFp16)(const float16_t *, const float16_t *, float16_t *, | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| inline bool CheckInteger(float16_t f) { return floorf(f) == f; } | |||||
| static inline bool CheckInteger(float16_t f) { return floorf(f) == f; } | |||||
| static inline float16_t StdPowerScalarFp16(float16_t x, const void *exponent) { | static inline float16_t StdPowerScalarFp16(float16_t x, const void *exponent) { | ||||
| return powf(x, *(float16_t *)exponent); | return powf(x, *(float16_t *)exponent); | ||||
| @@ -308,7 +308,7 @@ void PackNHWCToNCHWFp32(const void *src, void *dst, int batches, int plane, int | |||||
| return; | return; | ||||
| } | } | ||||
| task_end = (task_id + 1) == thread_count ? plane : MSMIN(plane, task_start + offset_hw); | task_end = (task_id + 1) == thread_count ? plane : MSMIN(plane, task_start + offset_hw); | ||||
| hw8 = task_start + (task_end - task_start) > offset_hw ? offset_hw : 0; | |||||
| hw8 = task_start + (task_end - task_start) >= offset_hw ? offset_hw : 0; | |||||
| } else { | } else { | ||||
| hw8 *= C8NUM; | hw8 *= C8NUM; | ||||
| } | } | ||||
| @@ -30,7 +30,7 @@ typedef float (*PowerScalarFun)(float x, const void *exponent); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| inline bool CheckInteger(float f) { return floorf(f) == f; } | |||||
| static inline bool CheckInteger(float f) { return floorf(f) == f; } | |||||
| static inline float StdPowerScalar(float x, const void *exponent) { return powf(x, *(float *)exponent); } | static inline float StdPowerScalar(float x, const void *exponent) { return powf(x, *(float *)exponent); } | ||||