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 3, 2024
1 parent 13edc65 commit 4df7d31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
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 @@ -307,7 +307,10 @@ inline void calculate_asin()
for (int d = 0; d < ITERATIONS; d++)
{
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 4df7d31

Please sign in to comment.