@@ -288,7 +288,8 @@ def english_upper(s):
288
288
Ufunc (2 , 1 , Zero ,
289
289
docstrings .get ('numpy.core.umath.add' ),
290
290
'PyUFunc_AdditionTypeResolver' ,
291
- TD (notimes_or_obj , simd = [('avx512f' , cmplxvec ),('avx2' , ints )]),
291
+ TD (notimes_or_obj , simd = [('avx512f' , cmplxvec )],
292
+ dispatch = [('loops_fast' , ints )]),
292
293
[TypeDescription ('M' , FullTypeDescr , 'Mm' , 'M' ),
293
294
TypeDescription ('m' , FullTypeDescr , 'mm' , 'm' ),
294
295
TypeDescription ('M' , FullTypeDescr , 'mM' , 'M' ),
@@ -299,7 +300,8 @@ def english_upper(s):
299
300
Ufunc (2 , 1 , None , # Zero is only a unit to the right, not the left
300
301
docstrings .get ('numpy.core.umath.subtract' ),
301
302
'PyUFunc_SubtractionTypeResolver' ,
302
- TD (ints + inexact , simd = [('avx512f' , cmplxvec ),('avx2' , ints )]),
303
+ TD (ints + inexact , simd = [('avx512f' , cmplxvec )],
304
+ dispatch = [('loops_fast' , ints )]),
303
305
[TypeDescription ('M' , FullTypeDescr , 'Mm' , 'M' ),
304
306
TypeDescription ('m' , FullTypeDescr , 'mm' , 'm' ),
305
307
TypeDescription ('M' , FullTypeDescr , 'MM' , 'm' ),
@@ -310,7 +312,8 @@ def english_upper(s):
310
312
Ufunc (2 , 1 , One ,
311
313
docstrings .get ('numpy.core.umath.multiply' ),
312
314
'PyUFunc_MultiplicationTypeResolver' ,
313
- TD (notimes_or_obj , simd = [('avx512f' , cmplxvec ),('avx2' , ints )]),
315
+ TD (notimes_or_obj , simd = [('avx512f' , cmplxvec )],
316
+ dispatch = [('loops_fast' , ints )]),
314
317
[TypeDescription ('m' , FullTypeDescr , 'mq' , 'm' ),
315
318
TypeDescription ('m' , FullTypeDescr , 'qm' , 'm' ),
316
319
TypeDescription ('m' , FullTypeDescr , 'md' , 'm' ),
@@ -345,7 +348,8 @@ def english_upper(s):
345
348
Ufunc (1 , 1 , None ,
346
349
docstrings .get ('numpy.core.umath.conjugate' ),
347
350
None ,
348
- TD (ints + flts + cmplx , simd = [('avx2' , ints ), ('avx512f' , cmplxvec )]),
351
+ TD (ints + flts + cmplx , simd = [('avx512f' , cmplxvec )],
352
+ dispatch = [('loops_fast' , ints )]),
349
353
TD (P , f = 'conjugate' ),
350
354
),
351
355
'fmod' :
@@ -360,14 +364,16 @@ def english_upper(s):
360
364
Ufunc (1 , 1 , None ,
361
365
docstrings .get ('numpy.core.umath.square' ),
362
366
None ,
363
- TD (ints + inexact , simd = [('avx2' , ints ), ('fma' , 'fd' ), ('avx512f' , 'FDfd' )]),
367
+ TD (ints + inexact , simd = [('fma' , 'fd' ), ('avx512f' , 'FDfd' )],
368
+ dispatch = [('loops_fast' , ints )]),
364
369
TD (O , f = 'Py_square' ),
365
370
),
366
371
'reciprocal' :
367
372
Ufunc (1 , 1 , None ,
368
373
docstrings .get ('numpy.core.umath.reciprocal' ),
369
374
None ,
370
- TD (ints + inexact , simd = [('avx2' , ints ), ('fma' , 'fd' ), ('avx512f' ,'fd' )]),
375
+ TD (ints + inexact , simd = [('fma' , 'fd' ), ('avx512f' ,'fd' )],
376
+ dispatch = [('loops_fast' , ints )]),
371
377
TD (O , f = 'Py_reciprocal' ),
372
378
),
373
379
# This is no longer used as numpy.ones_like, however it is
@@ -411,7 +417,7 @@ def english_upper(s):
411
417
Ufunc (1 , 1 , None ,
412
418
docstrings .get ('numpy.core.umath.negative' ),
413
419
'PyUFunc_NegativeTypeResolver' ,
414
- TD (ints + flts + timedeltaonly , simd = [('avx2 ' , ints )]),
420
+ TD (ints + flts + timedeltaonly , dispatch = [('loops_fast ' , ints )]),
415
421
TD (cmplx , f = 'neg' ),
416
422
TD (O , f = 'PyNumber_Negative' ),
417
423
),
@@ -433,71 +439,71 @@ def english_upper(s):
433
439
Ufunc (2 , 1 , None ,
434
440
docstrings .get ('numpy.core.umath.greater' ),
435
441
'PyUFunc_SimpleBinaryComparisonTypeResolver' ,
436
- TD (all , out = '?' , simd = [('avx2 ' , ints )]),
442
+ TD (all , out = '?' , dispatch = [('loops_fast ' , ints )]),
437
443
[TypeDescription ('O' , FullTypeDescr , 'OO' , 'O' )],
438
444
TD ('O' , out = '?' ),
439
445
),
440
446
'greater_equal' :
441
447
Ufunc (2 , 1 , None ,
442
448
docstrings .get ('numpy.core.umath.greater_equal' ),
443
449
'PyUFunc_SimpleBinaryComparisonTypeResolver' ,
444
- TD (all , out = '?' , simd = [('avx2 ' , ints )]),
450
+ TD (all , out = '?' , dispatch = [('loops_fast ' , ints )]),
445
451
[TypeDescription ('O' , FullTypeDescr , 'OO' , 'O' )],
446
452
TD ('O' , out = '?' ),
447
453
),
448
454
'less' :
449
455
Ufunc (2 , 1 , None ,
450
456
docstrings .get ('numpy.core.umath.less' ),
451
457
'PyUFunc_SimpleBinaryComparisonTypeResolver' ,
452
- TD (all , out = '?' , simd = [('avx2 ' , ints )]),
458
+ TD (all , out = '?' , dispatch = [('loops_fast ' , ints )]),
453
459
[TypeDescription ('O' , FullTypeDescr , 'OO' , 'O' )],
454
460
TD ('O' , out = '?' ),
455
461
),
456
462
'less_equal' :
457
463
Ufunc (2 , 1 , None ,
458
464
docstrings .get ('numpy.core.umath.less_equal' ),
459
465
'PyUFunc_SimpleBinaryComparisonTypeResolver' ,
460
- TD (all , out = '?' , simd = [('avx2 ' , ints )]),
466
+ TD (all , out = '?' , dispatch = [('loops_fast ' , ints )]),
461
467
[TypeDescription ('O' , FullTypeDescr , 'OO' , 'O' )],
462
468
TD ('O' , out = '?' ),
463
469
),
464
470
'equal' :
465
471
Ufunc (2 , 1 , None ,
466
472
docstrings .get ('numpy.core.umath.equal' ),
467
473
'PyUFunc_SimpleBinaryComparisonTypeResolver' ,
468
- TD (all , out = '?' , simd = [('avx2 ' , ints )]),
474
+ TD (all , out = '?' , dispatch = [('loops_fast ' , ints )]),
469
475
[TypeDescription ('O' , FullTypeDescr , 'OO' , 'O' )],
470
476
TD ('O' , out = '?' ),
471
477
),
472
478
'not_equal' :
473
479
Ufunc (2 , 1 , None ,
474
480
docstrings .get ('numpy.core.umath.not_equal' ),
475
481
'PyUFunc_SimpleBinaryComparisonTypeResolver' ,
476
- TD (all , out = '?' , simd = [('avx2 ' , ints )]),
482
+ TD (all , out = '?' , dispatch = [('loops_fast ' , ints )]),
477
483
[TypeDescription ('O' , FullTypeDescr , 'OO' , 'O' )],
478
484
TD ('O' , out = '?' ),
479
485
),
480
486
'logical_and' :
481
487
Ufunc (2 , 1 , True_ ,
482
488
docstrings .get ('numpy.core.umath.logical_and' ),
483
489
'PyUFunc_SimpleBinaryComparisonTypeResolver' ,
484
- TD (nodatetime_or_obj , out = '?' , simd = [('avx2 ' , ints )]),
490
+ TD (nodatetime_or_obj , out = '?' , dispatch = [('loops_fast ' , ints )]),
485
491
TD (O , f = 'npy_ObjectLogicalAnd' ),
486
492
TD (O , f = 'npy_ObjectLogicalAnd' , out = '?' ),
487
493
),
488
494
'logical_not' :
489
495
Ufunc (1 , 1 , None ,
490
496
docstrings .get ('numpy.core.umath.logical_not' ),
491
497
None ,
492
- TD (nodatetime_or_obj , out = '?' , simd = [('avx2 ' , ints )]),
498
+ TD (nodatetime_or_obj , out = '?' , dispatch = [('loops_fast ' , ints )]),
493
499
TD (O , f = 'npy_ObjectLogicalNot' ),
494
500
TD (O , f = 'npy_ObjectLogicalNot' , out = '?' ),
495
501
),
496
502
'logical_or' :
497
503
Ufunc (2 , 1 , False_ ,
498
504
docstrings .get ('numpy.core.umath.logical_or' ),
499
505
'PyUFunc_SimpleBinaryComparisonTypeResolver' ,
500
- TD (nodatetime_or_obj , out = '?' , simd = [('avx2 ' , ints )]),
506
+ TD (nodatetime_or_obj , out = '?' , dispatch = [('loops_fast ' , ints )]),
501
507
TD (O , f = 'npy_ObjectLogicalOr' ),
502
508
TD (O , f = 'npy_ObjectLogicalOr' , out = '?' ),
503
509
),
@@ -559,42 +565,42 @@ def english_upper(s):
559
565
Ufunc (2 , 1 , AllOnes ,
560
566
docstrings .get ('numpy.core.umath.bitwise_and' ),
561
567
None ,
562
- TD (bints , simd = [('avx2 ' , ints )]),
568
+ TD (bints , dispatch = [('loops_fast ' , ints )]),
563
569
TD (O , f = 'PyNumber_And' ),
564
570
),
565
571
'bitwise_or' :
566
572
Ufunc (2 , 1 , Zero ,
567
573
docstrings .get ('numpy.core.umath.bitwise_or' ),
568
574
None ,
569
- TD (bints , simd = [('avx2 ' , ints )]),
575
+ TD (bints , dispatch = [('loops_fast ' , ints )]),
570
576
TD (O , f = 'PyNumber_Or' ),
571
577
),
572
578
'bitwise_xor' :
573
579
Ufunc (2 , 1 , Zero ,
574
580
docstrings .get ('numpy.core.umath.bitwise_xor' ),
575
581
None ,
576
- TD (bints , simd = [('avx2 ' , ints )]),
582
+ TD (bints , dispatch = [('loops_fast ' , ints )]),
577
583
TD (O , f = 'PyNumber_Xor' ),
578
584
),
579
585
'invert' :
580
586
Ufunc (1 , 1 , None ,
581
587
docstrings .get ('numpy.core.umath.invert' ),
582
588
None ,
583
- TD (bints , simd = [('avx2 ' , ints )]),
589
+ TD (bints , dispatch = [('loops_fast ' , ints )]),
584
590
TD (O , f = 'PyNumber_Invert' ),
585
591
),
586
592
'left_shift' :
587
593
Ufunc (2 , 1 , None ,
588
594
docstrings .get ('numpy.core.umath.left_shift' ),
589
595
None ,
590
- TD (ints , simd = [('avx2 ' , ints )]),
596
+ TD (ints , dispatch = [('loops_fast ' , ints )]),
591
597
TD (O , f = 'PyNumber_Lshift' ),
592
598
),
593
599
'right_shift' :
594
600
Ufunc (2 , 1 , None ,
595
601
docstrings .get ('numpy.core.umath.right_shift' ),
596
602
None ,
597
- TD (ints , simd = [('avx2 ' , ints )]),
603
+ TD (ints , dispatch = [('loops_fast ' , ints )]),
598
604
TD (O , f = 'PyNumber_Rshift' ),
599
605
),
600
606
'heaviside' :
0 commit comments