Skip to content

Commit

Permalink
#6722: Add condition for asin op
Browse files Browse the repository at this point in the history
  • Loading branch information
umadevimcw committed Apr 10, 2024
1 parent c419751 commit 3f520c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ inline void calculate_asin()
{
vFloat v = dst_reg[0];
v = sfpu_asine_maclaurin_series<APPROXIMATION_MODE>(v);
v_if(dst_reg[0] < -1.0f || dst_reg[0] > 1.0f )
{
v = std::numeric_limits<float>::quiet_NaN();
}v_endif;
dst_reg[0] = v;
dst_reg++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ inline void calculate_asin()
{
vFloat v = dst_reg[0];
v = sfpu_asine_maclaurin_series<APPROXIMATION_MODE>(v);
v_if(dst_reg[0] < -1.0f || dst_reg[0] > 1.0f )
{
v = std::numeric_limits<float>::quiet_NaN();
}v_endif;
dst_reg[0] = v;
dst_reg++;
}
Expand Down

0 comments on commit 3f520c3

Please sign in to comment.