Home
last modified time | relevance | path

Searched refs:w_clamped (Results 1 – 16 of 16) sorted by relevance

/external/XNNPACK/src/qu8-requantization/
Dfp32-scalar-magic.c51 const float w_clamped = w_scaled < fmin ? fmin : w_scaled > fmax ? fmax : w_scaled; in xnn_qu8_requantize_fp32__scalar_magic() local
56 const int32_t w_biased = (int32_t) fp32_to_bits(w_clamped + fmagic) - imagic; in xnn_qu8_requantize_fp32__scalar_magic()
Dfp32-scalar-lrintf.c54 …const int32_t w_clamped = (int32_t)(w_rounded < lmin ? lmin : w_rounded > lmax ? lmax : w_rounded); in xnn_qu8_requantize_fp32__scalar_lrintf() local
59 const int32_t w_biased = w_clamped + (int32_t)(uint32_t) zero_point; in xnn_qu8_requantize_fp32__scalar_lrintf()
Dfp32-wasmsimd.c61 const v128_t w_clamped = wasm_f32x4_min(wasm_f32x4_max(w_scaled, vfmin), vfmax); in xnn_qu8_requantize_fp32__wasmsimd() local
68 const v128_t w_biased = wasm_i32x4_sub(wasm_f32x4_add(w_clamped, vfmagic), vimagic); in xnn_qu8_requantize_fp32__wasmsimd()
Dprecise-scalar-signed64.c77 const int32_t w_clamped = w_scaled < smin ? smin : w_scaled > smax ? smax : w_scaled; in xnn_qu8_requantize_precise__scalar_signed64() local
87 const int32_t w_biased = w_clamped + zero_point; in xnn_qu8_requantize_precise__scalar_signed64()
Dprecise-scalar-unsigned64.c84 const int32_t w_clamped = w_scaled < smin ? smin : w_scaled > smax ? smax : w_scaled; in xnn_qu8_requantize_precise__scalar_unsigned64() local
94 const int32_t w_biased = w_clamped + zero_point; in xnn_qu8_requantize_precise__scalar_unsigned64()
Dfp32-neon.c92 const float32x4_t w_clamped = vminq_f32(vmaxq_f32(w_scaled, vfmin), vfmax); in xnn_qu8_requantize_fp32__neon() local
99 …const int32x4_t w_biased = vsubq_s32(vreinterpretq_s32_f32(vaddq_f32(w_clamped, vfmagic)), vimagic… in xnn_qu8_requantize_fp32__neon()
Dq31-scalar.c112 const int32_t w_clamped = w_scaled < smin ? smin : w_scaled > smax ? smax : w_scaled; in xnn_qu8_requantize_q31__scalar() local
122 const int32_t w_biased = w_clamped + zero_point; in xnn_qu8_requantize_q31__scalar()
Dprecise-scalar-unsigned32.c112 const int32_t w_clamped = w_scaled < smin ? smin : w_scaled > smax ? smax : w_scaled; in xnn_qu8_requantize_precise__scalar_unsigned32() local
122 const int32_t w_biased = w_clamped + zero_point; in xnn_qu8_requantize_precise__scalar_unsigned32()
/external/XNNPACK/src/qs8-requantization/
Dfp32-scalar-lrintf.c54 …const int32_t w_clamped = (int32_t) (w_rounded < lmin ? lmin : w_rounded > lmax ? lmax : w_rounded… in xnn_qs8_requantize_fp32__scalar_lrintf() local
59 const int32_t w_biased = w_clamped + (int32_t) zero_point; in xnn_qs8_requantize_fp32__scalar_lrintf()
Dfp32-scalar-magic.c51 const float w_clamped = w_scaled < fmin ? fmin : w_scaled > fmax ? fmax : w_scaled; in xnn_qs8_requantize_fp32__scalar_magic() local
56 const int32_t w_biased = (int32_t) fp32_to_bits(w_clamped + fmagic) - imagic; in xnn_qs8_requantize_fp32__scalar_magic()
Dfp32-wasmsimd.c61 const v128_t w_clamped = wasm_f32x4_min(wasm_f32x4_max(w_scaled, vfmin), vfmax); in xnn_qs8_requantize_fp32__wasmsimd() local
68 const v128_t w_biased = wasm_i32x4_sub(wasm_f32x4_add(w_clamped, vfmagic), vimagic); in xnn_qs8_requantize_fp32__wasmsimd()
Dprecise-scalar-signed64.c77 const int32_t w_clamped = w_scaled < smin ? smin : w_scaled > smax ? smax : w_scaled; in xnn_qs8_requantize_precise__scalar_signed64() local
87 const int32_t w_biased = w_clamped + zero_point; in xnn_qs8_requantize_precise__scalar_signed64()
Dfp32-neon.c116 const float32x4_t w_clamped = vminq_f32(vmaxq_f32(w_scaled, vfmin), vfmax); in xnn_qs8_requantize_fp32__neon() local
123 …const int32x4_t w_biased = vsubq_s32(vreinterpretq_s32_f32(vaddq_f32(w_clamped, vfmagic)), vimagic… in xnn_qs8_requantize_fp32__neon()
Dprecise-scalar-unsigned64.c84 const int32_t w_clamped = w_scaled < smin ? smin : w_scaled > smax ? smax : w_scaled; in xnn_qs8_requantize_precise__scalar_unsigned64() local
94 const int32_t w_biased = w_clamped + zero_point; in xnn_qs8_requantize_precise__scalar_unsigned64()
Dq31-scalar.c112 const int32_t w_clamped = w_scaled < smin ? smin : w_scaled > smax ? smax : w_scaled; in xnn_qs8_requantize_q31__scalar() local
122 const int32_t w_biased = w_clamped + zero_point; in xnn_qs8_requantize_q31__scalar()
Dprecise-scalar-unsigned32.c112 const int32_t w_clamped = w_scaled < smin ? smin : w_scaled > smax ? smax : w_scaled; in xnn_qs8_requantize_precise__scalar_unsigned32() local
122 const int32_t w_biased = w_clamped + zero_point; in xnn_qs8_requantize_precise__scalar_unsigned32()