Skip to content
Commit d6d04542 authored by Aaron Watry's avatar Aaron Watry
Browse files

math: Add ilogb ported from amd-builtins



The scalar float/double function bodies are a direct copy/paste
with usage of the CLC wrappers to vectorize them.

This commit also adds in the FP_ILOGB0 and FP_ILOGBNAN macros which are
equal to the results of ilogb(0.0f) and ilogb(float nan) respectively.

v2: Add FP_ILOGB0 and FP_ILOGBNAN definitions

Signed-off-by: default avatarAaron Watry <awatry@gmail.com>
Reviewed-by: default avatarJan Vesely <jan.vesely@rutgers.edu>
v1 Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>

llvm-svn: 261639
parent 4924c7a2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment