__lasx_xvflogb_s

LASX intrinsic · group: Floating Point Computation

Synopsis

__m256 __lasx_xvflogb_s (__m256 a)
#include <lasxintrin.h>
Instruction: xvflogb.s xr, xr
CPU Flags: LASX

Description

Compute base-2 logarithm of single precision floating point elements in a.

Operation

for (int i = 0; i < 8; i++) {
  dst.fp32[i] = log2(a.fp32[i]);
}

Latency and Throughput

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

All intrinsics in alphabetical order