Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
Revert "Fix sinH to return the valid result intead of nan"
Browse files Browse the repository at this point in the history
This reverts commit 8cf1b11.

Reason for revert: Release build broken 5.4-34 in rocprim.

Change-Id: I8eaf22f61052224971d2afe55129512d1b1417d9
  • Loading branch information
zhang2amd committed Nov 4, 2022
1 parent 8cf1b11 commit bb17c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ocml/src/sinH.cl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ MATH_MANGLE(sin)(half x)
s ^= (r.i > (short)1 ? (short)0x8000 : (short)0) ^ (AS_SHORT(x) & (short)0x8000);

if (!FINITE_ONLY_OPT()) {
s = BUILTIN_ISFINITE_F16(ax) ? s : (short)QNANBITPATT_HP16;
s = BUILTIN_ISFINITE_F16(ax) ?(short)QNANBITPATT_HP16 : s;
}

return AS_HALF(s);
Expand Down

0 comments on commit bb17c45

Please sign in to comment.