@@ -549,19 +549,10 @@ avx512_argsort(T *arr, arrsize_t *arg, arrsize_t arrsize, bool hasnan = false)
549
549
ymm_vector<T>,
550
550
zmm_vector<T>>::type;
551
551
552
- /* Workaround for NumPy failed build on macOS x86_64: implicit instantiation of
553
- * undefined template 'zmm_vector<unsigned long>'*/
554
- #ifdef __APPLE__
555
- using argtype =
556
- typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
557
- ymm_vector<uint32_t >,
558
- zmm_vector<uint64_t >>::type;
559
- #else
560
552
using argtype =
561
553
typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
562
554
ymm_vector<arrsize_t >,
563
555
zmm_vector<arrsize_t >>::type;
564
- #endif
565
556
566
557
if (arrsize > 1 ) {
567
558
if constexpr (std::is_floating_point_v<T>) {
@@ -595,18 +586,10 @@ avx2_argsort(T *arr, arrsize_t *arg, arrsize_t arrsize, bool hasnan = false)
595
586
avx2_half_vector<T>,
596
587
avx2_vector<T>>::type;
597
588
598
- #ifdef __APPLE__
599
- using argtype =
600
- typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
601
- avx2_half_vector<uint32_t >,
602
- avx2_vector<uint64_t >>::type;
603
- #else
604
589
using argtype =
605
590
typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
606
591
avx2_half_vector<arrsize_t >,
607
592
avx2_vector<arrsize_t >>::type;
608
- #endif
609
-
610
593
if (arrsize > 1 ) {
611
594
if constexpr (std::is_floating_point_v<T>) {
612
595
if ((hasnan) && (array_has_nan<vectype>(arr, arrsize))) {
@@ -643,19 +626,10 @@ X86_SIMD_SORT_INLINE void avx512_argselect(T *arr,
643
626
ymm_vector<T>,
644
627
zmm_vector<T>>::type;
645
628
646
- /* Workaround for NumPy failed build on macOS x86_64: implicit instantiation of
647
- * undefined template 'zmm_vector<unsigned long>'*/
648
- #ifdef __APPLE__
649
- using argtype =
650
- typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
651
- ymm_vector<uint32_t >,
652
- zmm_vector<uint64_t >>::type;
653
- #else
654
629
using argtype =
655
630
typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
656
631
ymm_vector<arrsize_t >,
657
632
zmm_vector<arrsize_t >>::type;
658
- #endif
659
633
660
634
if (arrsize > 1 ) {
661
635
if constexpr (std::is_floating_point_v<T>) {
@@ -692,17 +666,10 @@ X86_SIMD_SORT_INLINE void avx2_argselect(T *arr,
692
666
avx2_half_vector<T>,
693
667
avx2_vector<T>>::type;
694
668
695
- #ifdef __APPLE__
696
- using argtype =
697
- typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
698
- avx2_half_vector<uint32_t >,
699
- avx2_vector<uint64_t >>::type;
700
- #else
701
669
using argtype =
702
670
typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
703
671
avx2_half_vector<arrsize_t >,
704
672
avx2_vector<arrsize_t >>::type;
705
- #endif
706
673
707
674
if (arrsize > 1 ) {
708
675
if constexpr (std::is_floating_point_v<T>) {
0 commit comments