24 #ifndef ARM_COMPUTE_WRAPPER_DIV_H 25 #define ARM_COMPUTE_WRAPPER_DIV_H 36 #define VDIV_IMPL(stype, vtype, prefix, postfix) \ 37 inline vtype vdiv(const vtype &a, const vtype &b) \ 39 return prefix##_##postfix(a, b); \ 42 #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC 44 #endif // __ARM_FEATURE_FP16_VECTOR_ARITHMETIC 46 VDIV_IMPL(float32x4_t, float32x4_t, vdivq, f32)
47 #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC 48 VDIV_IMPL(float16x8_t, float16x8_t, vdivq, f16)
49 #endif // __ARM_FEATURE_FP16_VECTOR_ARITHMETIC 53 #define VDIV_IMPL(stype, vtype, mul_prefix, inv_prefix, postfix) \ 54 inline vtype vdiv(const vtype &a, const vtype &b) \ 56 return mul_prefix##_##postfix(a, inv_prefix##_##postfix(b)); \ 59 #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC 61 #endif // __ARM_FEATURE_FP16_VECTOR_ARITHMETIC 63 VDIV_IMPL(float32x4_t, float32x4_t, vmulq, vinvq, f32)
64 #ifdef __ARM_FEATURE_FP16_VECTOR_ARITHMETIC 65 VDIV_IMPL(float16x8_t, float16x8_t, vmulq, vinvq, f16)
66 #endif // __ARM_FEATURE_FP16_VECTOR_ARITHMETIC #define VDIV_IMPL(stype, vtype, mul_prefix, inv_prefix, postfix)
float32x2_t vdiv(const float32x2_t &a, const float32x2_t &b)
float32x2_t vinv(const float32x2_t &a)
Copyright (c) 2017-2021 Arm Limited.
uint8x8_t vmul(const uint8x8_t &a, const uint8x8_t &b)