Skip to content

Commit ff01bdb

Browse files
authored
Fix typo in tgamma (llvm#1397)
2 parents b918270 + dc865db commit ff01bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ MATH_MANGLE(tgamma)(float x)
1919
if (ax > 0x1.0p-6f) {
2020
// For x < 3, push to larger value using gamma(x) = gamma(x+1) / x
2121
float d = 1.0f;
22-
if (x < 1.0f) {
22+
if (ax < 1.0f) {
2323
d = MATH_MAD((ax + 3.0f), ax, 2.0f) * ax;
2424
ax = ax + 3.0f;
2525
} else if (ax < 2.0f) {

0 commit comments

Comments
 (0)