__lsx_vflogb_s

LSX intrinsic · group: Floating Point Computation

Synopsis

__m128 __lsx_vflogb_s (__m128 a)
#include <lsxintrin.h>
Instruction: vflogb.s vr, vr
CPU Flags: LSX

Description

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

Operation

for (int i = 0; i < 4; 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
2K1000LA LA264 4 1
2K3000 LA364E 4 1

All intrinsics in alphabetical order