Searched refs:psimd_f32 (Results 1 – 4 of 4) sorted by relevance
/external/FP16/include/fp16/ |
D | psimd.h | 14 PSIMD_INTRINSIC psimd_f32 fp16_ieee_to_fp32_psimd(psimd_u16 half) { in fp16_ieee_to_fp32_psimd() 22 const psimd_f32 exp_scale = psimd_splat_f32(0x1.0p-112f); in fp16_ieee_to_fp32_psimd() 24 const psimd_f32 exp_scale = psimd_splat_f32(fp32_from_bits(UINT32_C(0x7800000))); in fp16_ieee_to_fp32_psimd() 26 const psimd_f32 norm_nonsign = psimd_mul_f32((psimd_f32) (shr3_nonsign + exp_offset), exp_scale); in fp16_ieee_to_fp32_psimd() 29 const psimd_f32 magic_bias = psimd_splat_f32(0.25f); in fp16_ieee_to_fp32_psimd() 30 …const psimd_f32 denorm_nonsign = psimd_sub_f32((psimd_f32) psimd_interleave_lo_u16(half + half, ma… in fp16_ieee_to_fp32_psimd() 34 return (psimd_f32) (sign | (psimd_s32) psimd_blend_f32(denorm_mask, denorm_nonsign, norm_nonsign)); in fp16_ieee_to_fp32_psimd() 49 const psimd_f32 exp_scale = psimd_splat_f32(0x1.0p-112f); in fp16_ieee_to_fp32x2_psimd() 51 const psimd_f32 exp_scale = psimd_splat_f32(fp32_from_bits(UINT32_C(0x7800000))); in fp16_ieee_to_fp32x2_psimd() 53 …const psimd_f32 norm_nonsign_lo = psimd_mul_f32((psimd_f32) (shr3_nonsign_lo + exp_offset), exp_sc… in fp16_ieee_to_fp32x2_psimd() [all …]
|
/external/psimd/include/ |
D | psimd.h | 99 typedef float psimd_f32 __attribute__((vector_size(16), aligned(4))); typedef 132 psimd_f32 lo; 133 psimd_f32 hi; 142 return (psimd_f32x2) { .lo = (psimd_f32) v.lo, .hi = (psimd_f32) v.hi }; in psimd_cast_s32x2_f32x2() 150 return (psimd_f32x2) { .lo = (psimd_f32) v.lo, .hi = (psimd_f32) v.hi }; in psimd_cast_u32x2_f32x2() 204 PSIMD_INTRINSIC void psimd_swap_f32(psimd_f32 a[1], psimd_f32 b[1]) { in psimd_swap_f32() 205 const psimd_f32 new_a = *b; in psimd_swap_f32() 206 const psimd_f32 new_b = *a; in psimd_swap_f32() 236 PSIMD_INTRINSIC psimd_f32 psimd_zero_f32(void) { in psimd_zero_f32() 237 return (psimd_f32) { 0.0f, 0.0f, 0.0f, 0.0f }; in psimd_zero_f32() [all …]
|
/external/FP16/bench/ |
D | alt-element.cc | 57 const psimd_f32 fp32 = fp16_alt_to_fp32_psimd(fp16); in fp16_alt_to_fp32_psimd()
|
D | ieee-element.cc | 71 const psimd_f32 fp32 = fp16_ieee_to_fp32_psimd(fp16); in fp16_ieee_to_fp32_psimd()
|