nir: correct comment for atan range reduction
the code did not match the comment, blew a sign. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30934>
This commit is contained in:

committed by
Marge Bot

parent
4fc3e34f2f
commit
a32b1a975d
@@ -170,9 +170,9 @@ nir_atan(nir_builder *b, nir_def *y_over_x)
|
|||||||
/*
|
/*
|
||||||
* range-reduction, first step:
|
* range-reduction, first step:
|
||||||
*
|
*
|
||||||
* / y_over_x if |y_over_x| <= 1.0;
|
* / |y_over_x| if |y_over_x| <= 1.0;
|
||||||
* x = <
|
* x = <
|
||||||
* \ 1.0 / y_over_x otherwise
|
* \ 1.0 / |y_over_x| otherwise
|
||||||
*/
|
*/
|
||||||
nir_def *x = nir_fdiv(b, nir_fmin(b, abs_y_over_x, one),
|
nir_def *x = nir_fdiv(b, nir_fmin(b, abs_y_over_x, one),
|
||||||
nir_fmax(b, abs_y_over_x, one));
|
nir_fmax(b, abs_y_over_x, one));
|
||||||
|
Reference in New Issue
Block a user