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

Commit

Permalink
Revert "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 bb17c45.

Reason for revert: <this patch was not causing the rocprim issue>
Change-Id: Ie44571675a3dc3bddec5fd2211e0d46b68e038c3
  • Loading branch information
pramenku committed Nov 4, 2022
1 parent bb17c45 commit 4d86a31
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) ?(short)QNANBITPATT_HP16 : s;
s = BUILTIN_ISFINITE_F16(ax) ? s : (short)QNANBITPATT_HP16;
}

return AS_HALF(s);
Expand Down

0 comments on commit 4d86a31

Please sign in to comment.