We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b918270 + dc865db commit ff01bdbCopy full SHA for ff01bdb
amd/device-libs/ocml/src/tgammaF.cl
@@ -19,7 +19,7 @@ MATH_MANGLE(tgamma)(float x)
19
if (ax > 0x1.0p-6f) {
20
// For x < 3, push to larger value using gamma(x) = gamma(x+1) / x
21
float d = 1.0f;
22
- if (x < 1.0f) {
+ if (ax < 1.0f) {
23
d = MATH_MAD((ax + 3.0f), ax, 2.0f) * ax;
24
ax = ax + 3.0f;
25
} else if (ax < 2.0f) {
0 commit comments