Skip to content

Commit 96ec9dc

Browse files
wenju-heCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
1 parent 7e2d210 commit 96ec9dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libclc/clc/lib/generic/math/clc_subnormal_config.cl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ _CLC_DEF bool __clc_fp16_subnormals_supported() {
1616
// SPIR-V doesn't support llvm.canonicalize for now.
1717
return false;
1818
#else
19-
return !__builtin_isfpclass(__builtin_canonicalizef(0x1p-24h),
19+
return !__builtin_isfpclass(__builtin_canonicalizef((float)0x1p-24h),
2020
__FPCLASS_POSZERO);
2121
#endif
2222
}
@@ -39,7 +39,7 @@ _CLC_DEF bool __clc_fp64_subnormals_supported() {
3939
// SPIR-V doesn't support llvm.canonicalize for now.
4040
return false;
4141
#else
42-
return !__builtin_isfpclass(__builtin_canonicalizef(0x1p-1074),
42+
return !__builtin_isfpclass(__builtin_canonicalize(0x1p-1074),
4343
__FPCLASS_POSZERO);
4444
#endif
4545
}

0 commit comments

Comments
 (0)