__lasx_xvfscaleb_s

LASX intrinsic · group: Undocumented Intrinsics

Synopsis

__m256 __lasx_xvfscaleb_s (__m256 a, __m256i b)
#include <lasxintrin.h>
Instruction: xvfscaleb.s xr, xr, xr
CPU Flags: LASX

Description

Compute IEEE 754 scaleB (multiply by 2^b) of single precision floating point elements in a using integer exponents in b. Currently undocumented.

Operation

for (int i = 0; i < 8; i++) {
  dst.fp32[i] = __builtin_scalbn(a.fp32[i], b.word[i]);
}

Tested on real machine.

Latency and Throughput

CPU µarch Latency Throughput (IPC)
3C6000 LA664 4 2

All intrinsics in alphabetical order