Skip to content

Commit 27968c7

Browse files
authored
device-libs: Remove clamping for f16 ldexp values (llvm#1745)
2 parents 8ae8f7b + 8fc01a7 commit 27968c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amd/device-libs/ocml/src/ldexpH.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ MATH_MANGLE2(ldexp)(half2 x, int2 n)
1616
CONSTATTR half
1717
MATH_MANGLE(ldexp)(half x, int n)
1818
{
19-
return BUILTIN_FLDEXP_F16(x, BUILTIN_CLAMP_S32(n, SHRT_MIN, SHRT_MAX));
19+
return BUILTIN_FLDEXP_F16(x, n);
2020
}
2121

0 commit comments

Comments
 (0)