Skip to content

Commit

Permalink
Merge pull request #19496 from charris/backport-19458
Browse files Browse the repository at this point in the history
MAINT: Avoid unicode characters in division SIMD code comments
  • Loading branch information
charris committed Jul 16, 2021
2 parents f04a16e + 8d7ad37 commit c084058
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
Original file line number Diff line number Diff line change
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 c084058

Please sign in to comment.