Home
last modified time | relevance | path

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

/external/XNNPACK/src/qu8-requantization/
Dfp32-scalar-magic.c48 const float x_clamped = x_scaled < fmin ? fmin : x_scaled > fmax ? fmax : x_scaled; in xnn_qu8_requantize_fp32__scalar_magic() local
53 const int32_t x_biased = (int32_t) fp32_to_bits(x_clamped + fmagic) - imagic; in xnn_qu8_requantize_fp32__scalar_magic()
Dfp32-scalar-lrintf.c51 …const int32_t x_clamped = (int32_t)(x_rounded < lmin ? lmin : x_rounded > lmax ? lmax : x_rounded); in xnn_qu8_requantize_fp32__scalar_lrintf() local
56 const int32_t x_biased = x_clamped + (int32_t)(uint32_t) zero_point; in xnn_qu8_requantize_fp32__scalar_lrintf()
Dfp32-wasmsimd.c58 const v128_t x_clamped = wasm_f32x4_min(wasm_f32x4_max(x_scaled, vfmin), vfmax); in xnn_qu8_requantize_fp32__wasmsimd() local
65 const v128_t x_biased = wasm_i32x4_sub(wasm_f32x4_add(x_clamped, vfmagic), vimagic); in xnn_qu8_requantize_fp32__wasmsimd()
Dprecise-scalar-signed64.c74 const int32_t x_clamped = x_scaled < smin ? smin : x_scaled > smax ? smax : x_scaled; in xnn_qu8_requantize_precise__scalar_signed64() local
84 const int32_t x_biased = x_clamped + zero_point; in xnn_qu8_requantize_precise__scalar_signed64()
Dprecise-scalar-unsigned64.c81 const int32_t x_clamped = x_scaled < smin ? smin : x_scaled > smax ? smax : x_scaled; in xnn_qu8_requantize_precise__scalar_unsigned64() local
91 const int32_t x_biased = x_clamped + zero_point; in xnn_qu8_requantize_precise__scalar_unsigned64()
Dfp32-neon.c89 const float32x4_t x_clamped = vminq_f32(vmaxq_f32(x_scaled, vfmin), vfmax); in xnn_qu8_requantize_fp32__neon() local
96 …const int32x4_t x_biased = vsubq_s32(vreinterpretq_s32_f32(vaddq_f32(x_clamped, vfmagic)), vimagic… in xnn_qu8_requantize_fp32__neon()
Dq31-scalar.c109 const int32_t x_clamped = x_scaled < smin ? smin : x_scaled > smax ? smax : x_scaled; in xnn_qu8_requantize_q31__scalar() local
119 const int32_t x_biased = x_clamped + zero_point; in xnn_qu8_requantize_q31__scalar()
Dprecise-scalar-unsigned32.c109 const int32_t x_clamped = x_scaled < smin ? smin : x_scaled > smax ? smax : x_scaled; in xnn_qu8_requantize_precise__scalar_unsigned32() local
119 const int32_t x_biased = x_clamped + zero_point; in xnn_qu8_requantize_precise__scalar_unsigned32()
/external/XNNPACK/src/qs8-requantization/
Dfp32-scalar-lrintf.c51 …const int32_t x_clamped = (int32_t) (x_rounded < lmin ? lmin : x_rounded > lmax ? lmax : x_rounded… in xnn_qs8_requantize_fp32__scalar_lrintf() local
56 const int32_t x_biased = x_clamped + (int32_t) zero_point; in xnn_qs8_requantize_fp32__scalar_lrintf()
Dfp32-scalar-magic.c48 const float x_clamped = x_scaled < fmin ? fmin : x_scaled > fmax ? fmax : x_scaled; in xnn_qs8_requantize_fp32__scalar_magic() local
53 const int32_t x_biased = (int32_t) fp32_to_bits(x_clamped + fmagic) - imagic; in xnn_qs8_requantize_fp32__scalar_magic()
Dfp32-wasmsimd.c58 const v128_t x_clamped = wasm_f32x4_min(wasm_f32x4_max(x_scaled, vfmin), vfmax); in xnn_qs8_requantize_fp32__wasmsimd() local
65 const v128_t x_biased = wasm_i32x4_sub(wasm_f32x4_add(x_clamped, vfmagic), vimagic); in xnn_qs8_requantize_fp32__wasmsimd()
Dprecise-scalar-signed64.c74 const int32_t x_clamped = x_scaled < smin ? smin : x_scaled > smax ? smax : x_scaled; in xnn_qs8_requantize_precise__scalar_signed64() local
84 const int32_t x_biased = x_clamped + zero_point; in xnn_qs8_requantize_precise__scalar_signed64()
Dfp32-neon.c113 const float32x4_t x_clamped = vminq_f32(vmaxq_f32(x_scaled, vfmin), vfmax); in xnn_qs8_requantize_fp32__neon() local
120 …const int32x4_t x_biased = vsubq_s32(vreinterpretq_s32_f32(vaddq_f32(x_clamped, vfmagic)), vimagic… in xnn_qs8_requantize_fp32__neon()
Dprecise-scalar-unsigned64.c81 const int32_t x_clamped = x_scaled < smin ? smin : x_scaled > smax ? smax : x_scaled; in xnn_qs8_requantize_precise__scalar_unsigned64() local
91 const int32_t x_biased = x_clamped + zero_point; in xnn_qs8_requantize_precise__scalar_unsigned64()
Dq31-scalar.c109 const int32_t x_clamped = x_scaled < smin ? smin : x_scaled > smax ? smax : x_scaled; in xnn_qs8_requantize_q31__scalar() local
119 const int32_t x_biased = x_clamped + zero_point; in xnn_qs8_requantize_q31__scalar()
Dprecise-scalar-unsigned32.c109 const int32_t x_clamped = x_scaled < smin ? smin : x_scaled > smax ? smax : x_scaled; in xnn_qs8_requantize_precise__scalar_unsigned32() local
119 const int32_t x_biased = x_clamped + zero_point; in xnn_qs8_requantize_precise__scalar_unsigned32()