Skip to content

Commit

Permalink
Merge pull request #19458 from seberg/19454-avoid-unicode-c-files
Browse files Browse the repository at this point in the history
MAINT: Avoid unicode characters in division SIMD code comments
  • Loading branch information
mattip committed Jul 12, 2021
2 parents c07080f + 60d9bfb commit 89babbd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions numpy/core/src/umath/loops_arithmetic.dispatch.c.src
Expand Up @@ -22,17 +22,17 @@
** Defining the SIMD kernels
*
* Floor division of signed is based on T. Granlund and P. L. Montgomery
* Division by invariant integers using multiplication(see [Figure 6.1]
* "Division by invariant integers using multiplication(see [Figure 6.1]
* http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.1.2556)"
* For details on TRUNC division see simd/intdiv.h for more clarification
***********************************************************************************
** Figure 6.1: Signed division by runtime invariant divisor, rounded towards -INF
** Figure 6.1: Signed division by run-time invariant divisor, rounded towards -INF
***********************************************************************************
* For q = FLOOR(a/d), all sword:
* sword dsign = SRL(d, N 1);
* uword nsign = (n < dsign);
* uword qsign = EOR(nsign, dsign);
* q = TRUNC((n − (−dsign ) + (nsign))/d) − (−qsign);
* sword -dsign = SRL(d, N - 1);
* uword -nsign = (n < -dsign);
* uword -qsign = EOR(-nsign, -dsign);
* q = TRUNC((n - (-dsign ) + (-nsign))/d) - (-qsign);
********************************************************************************/

#if NPY_SIMD
Expand Down

0 comments on commit 89babbd

Please sign in to comment.