Skip to content

Commit b28a452

Browse files
committed
do requested changes + new typo
no functional change
1 parent 6bc058e commit b28a452

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

docs/reST/c_api/color.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Header file: src_c/include/pygame.h
2626
2727
.. c:function:: PyObject* pgColor_New(Uint8 rgba[])
2828
29-
Return a new :py:class:`pygame.Color` instance for the four element array *rgba*.
29+
Return a new :py:class:`pygame.Color` instance from the four element array *rgba*.
3030
On failure, raise a Python exception and return ``NULL``.
3131
3232
.. c:function:: PyObject* pgColor_NewLength(Uint8 rgba[], Uint8 length)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def consume_arg(name):
195195

196196
compile_cython = not no_compilation
197197

198-
# does nothing now, but consume the arg anyways for compatibilty
198+
# does nothing now, but consume the arg anyways for compatibility
199199
consume_arg('cython')
200200

201201
cython_only = False

src_c/cython/pygame/pypm.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import sys
2121
# 0.0.5: (June 1st, 2009)
2222
# Output no longer calls abort when it deallocates.
2323
# Added abort and close methods.
24-
# Need to call Abort() explicityly if you want that to happen.
24+
# Need to call Abort() explicitly if you want that to happen.
2525

2626

2727
#

src_c/include/sse2neon.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ FORCE_INLINE void _sse2neon_smp_mb(void)
247247
#endif
248248

249249
/* Apple Silicon cache lines are double of what is commonly used by Intel, AMD
250-
* and other Arm microarchtectures use.
250+
* and other Arm microarchitectures use.
251251
* From sysctl -a on Apple M1:
252252
* hw.cachelinesize: 128
253253
*/
@@ -658,7 +658,7 @@ FORCE_INLINE uint16_t _sse2neon_vaddvq_u16(uint16x8_t a)
658658
* This last part, <data_type>, is a little complicated. It identifies the
659659
* content of the input values, and can be set to any of the following values:
660660
* + ps - vectors contain floats (ps stands for packed single-precision)
661-
* + pd - vectors cantain doubles (pd stands for packed double-precision)
661+
* + pd - vectors contain doubles (pd stands for packed double-precision)
662662
* + epi8/epi16/epi32/epi64 - vectors contain 8-bit/16-bit/32-bit/64-bit
663663
* signed integers
664664
* + epu8/epu16/epu32/epu64 - vectors contain 8-bit/16-bit/32-bit/64-bit
@@ -8628,9 +8628,9 @@ FORCE_INLINE __m128i _mm_aesenc_si128(__m128i a, __m128i RoundKey)
86288628
#define SSE2NEON_AES_B2W(b0, b1, b2, b3) \
86298629
(((uint32_t) (b3) << 24) | ((uint32_t) (b2) << 16) | \
86308630
((uint32_t) (b1) << 8) | (uint32_t) (b0))
8631-
// muliplying 'x' by 2 in GF(2^8)
8631+
// multiplying 'x' by 2 in GF(2^8)
86328632
#define SSE2NEON_AES_F2(x) ((x << 1) ^ (((x >> 7) & 1) * 0x011b /* WPOLY */))
8633-
// muliplying 'x' by 3 in GF(2^8)
8633+
// multiplying 'x' by 3 in GF(2^8)
86348634
#define SSE2NEON_AES_F3(x) (SSE2NEON_AES_F2(x) ^ x)
86358635
#define SSE2NEON_AES_U0(p) \
86368636
SSE2NEON_AES_B2W(SSE2NEON_AES_F2(p), p, p, SSE2NEON_AES_F3(p))
@@ -8708,14 +8708,14 @@ FORCE_INLINE __m128i _mm_aesdec_si128(__m128i a, __m128i RoundKey)
87088708
v = vqtbx4q_u8(v, _sse2neon_vld1q_u8_x4(_sse2neon_rsbox + 0xc0), w - 0xc0);
87098709

87108710
// inverse mix columns
8711-
// muliplying 'v' by 4 in GF(2^8)
8711+
// multiplying 'v' by 4 in GF(2^8)
87128712
w = (v << 1) ^ (uint8x16_t) (((int8x16_t) v >> 7) & 0x1b);
87138713
w = (w << 1) ^ (uint8x16_t) (((int8x16_t) w >> 7) & 0x1b);
87148714
v ^= w;
87158715
v ^= (uint8x16_t) vrev32q_u16((uint16x8_t) w);
87168716

87178717
w = (v << 1) ^ (uint8x16_t) (((int8x16_t) v >> 7) &
8718-
0x1b); // muliplying 'v' by 2 in GF(2^8)
8718+
0x1b); // multiplying 'v' by 2 in GF(2^8)
87198719
w ^= (uint8x16_t) vrev32q_u16((uint16x8_t) v);
87208720
w ^= vqtbl1q_u8(v ^ w, vld1q_u8(ror32by8));
87218721

src_c/mask.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,8 @@ cc_label(bitmask_t *input, unsigned int *image, unsigned int *ufind,
12841284
}
12851285
buf++;
12861286
}
1287-
/* last pixel of the row, if it's not also the first pixel of the row */
1287+
/* last pixel of the row, if it's not also the first pixel of the row
1288+
*/
12881289
if (w > 1) {
12891290
if (bitmask_getbit(input, x, y)) {
12901291
if (*(buf - w)) { /* b label */

src_c/simd_transform_avx2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ grayscale_avx2(SDL_Surface *src, SDL_Surface *newsurf)
135135
remaining_pixels_batch_counter = remaining_pixels;
136136
while (perfect_8_pixels_batch_counter--) {
137137
mm256_src = _mm256_loadu_si256(srcp256);
138-
// strip out the the alpha and store it
138+
// strip out the alpha and store it
139139
mm256_alpha = _mm256_and_si256(mm256_src, mm256_alpha_mask);
140140

141141
// shuffle out the 8 pixels into two spaced out registers

0 commit comments

Comments
 (0)