Home
last modified time | relevance | path

Searched refs:x_clamped (Results 1 – 7 of 7) sorted by relevance

/external/XNNPACK/src/requantization/
Dfp32-scalar.c50 …const int32_t x_clamped = (int32_t)(x_rounded < lmin ? lmin : x_rounded > lmax ? lmax : x_rounded); in xnn_requantize_fp32__scalar_lrintf() local
55 const int32_t x_biased = x_clamped + (int32_t)(uint32_t) zero_point; in xnn_requantize_fp32__scalar_lrintf()
97 const float x_clamped = x_scaled < fmin ? fmin : x_scaled > fmax ? fmax : x_scaled; in xnn_requantize_fp32__scalar_magic() local
102 const int32_t x_biased = (int32_t) fp32_to_bits(x_clamped + fmagic) - imagic; in xnn_requantize_fp32__scalar_magic()
Dprecise-scalar.c108 const int32_t x_clamped = x_scaled < smin ? smin : x_scaled > smax ? smax : x_scaled; in xnn_requantize_precise__scalar_unsigned32() local
118 const int32_t x_biased = x_clamped + zero_point; in xnn_requantize_precise__scalar_unsigned32()
193 const int32_t x_clamped = x_scaled < smin ? smin : x_scaled > smax ? smax : x_scaled; in xnn_requantize_precise__scalar_unsigned64() local
203 const int32_t x_biased = x_clamped + zero_point; in xnn_requantize_precise__scalar_unsigned64()
271 const int32_t x_clamped = x_scaled < smin ? smin : x_scaled > smax ? smax : x_scaled; in xnn_requantize_precise__scalar_signed64() local
281 const int32_t x_biased = x_clamped + zero_point; in xnn_requantize_precise__scalar_signed64()
Dgemmlowp-scalar.c66 const int32_t x_clamped = x_biased < smin ? smin : x_biased > smax ? smax : x_biased; in xnn_requantize_gemmlowp__scalar() local
71 output[0] = (uint8_t) x_clamped; in xnn_requantize_gemmlowp__scalar()
Dfp32-psimd.c61 const psimd_f32 x_clamped = psimd_min_f32(psimd_max_f32(x_scaled, vfmin), vfmax); in xnn_requantize_fp32__psimd() local
68 const psimd_s32 x_biased = (psimd_s32)(x_clamped + vfmagic) - vimagic; in xnn_requantize_fp32__psimd()
Dfp32-neon.c88 const float32x4_t x_clamped = vminq_f32(vmaxq_f32(x_scaled, vfmin), vfmax); in xnn_requantize_fp32__neon() local
95 …const int32x4_t x_biased = vsubq_s32(vreinterpretq_s32_f32(vaddq_f32(x_clamped, vfmagic)), vimagic… in xnn_requantize_fp32__neon()
Dq31-scalar.c108 const int32_t x_clamped = x_scaled < smin ? smin : x_scaled > smax ? smax : x_scaled; in xnn_requantize_q31__scalar() local
118 const int32_t x_biased = x_clamped + zero_point; in xnn_requantize_q31__scalar()
Dprecise-psimd.c125 …const psimd_u32 x_clamped = (psimd_u32) psimd_max_s32(psimd_min_s32(x_scaled, vsmax), vsmin) + vze… in xnn_requantize_precise__psimd() local
130 … const psimd_u16 xy_clamped = psimd_concat_even_u16((psimd_u16) x_clamped, (psimd_u16) y_clamped); in xnn_requantize_precise__psimd()