LUT
On this Page
LUT¶
Get LUT Entry and Interval Start¶
Represents GET_LUT_ENTRY_AND_INTERVAL_START instruction.
Intrinsics Prototype and Arguments
uint64_float64 v_f32_get_lut_entry_and_interval_start_b(float64 src, const int8_t shift, int switches=0, uint64_float64 income={}, bool predicate=1, bool polarity=0) |
uint64_float64 v_f32_get_lut_entry_and_interval_start_vb(float64 src, const int8_t shift, int switches, uint64_float64 income, bool64 predicate, bool polarity=0) |
ushort128_bfloat128 v_bf16_get_lut_entry_and_interval_start_b(bfloat128 src, const int8_t shift, int switches=0, ushort128_bfloat128 income={}, bool predicate=1, bool polarity=0) |
ushort128_bfloat128 v_bf16_get_lut_entry_and_interval_start_vb(bfloat128 src, const int8_t shift, int switches, ushort128_bfloat128 income, bool128 predicate, bool polarity=0) |
src |
Input value (SRC1). |
shift |
Significand shift |
switches |
Instruction switches. |
income |
This value is returned if the predicate is false. |
predicate |
Predicate value for the instruction. |
polarity |
True if polarity of the predicate is inverted. |
Allowed switches are:
[FUNC_VARIANT] - Determines the variant of the function, when no switch is set - all functions other then tanh/sqrt/rsqrt/sin/cos.
SW_LUT_TANH
SW_LUT_SQRT_RSQRT
SW_LUT_SIN_COS
SW_LUT_LOG
Pair of the interval and its offset for the special function approximation.