@@ -559,19 +559,10 @@ avx512_argsort(T *arr, arrsize_t *arg, arrsize_t arrsize, bool hasnan = false)
559
559
ymm_vector<T>,
560
560
zmm_vector<T>>::type;
561
561
562
- /* Workaround for NumPy failed build on macOS x86_64: implicit instantiation of
563
- * undefined template 'zmm_vector<unsigned long>'*/
564
- #ifdef __APPLE__
565
- using argtype =
566
- typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
567
- ymm_vector<uint32_t >,
568
- zmm_vector<uint64_t >>::type;
569
- #else
570
562
using argtype =
571
563
typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
572
564
ymm_vector<arrsize_t >,
573
565
zmm_vector<arrsize_t >>::type;
574
- #endif
575
566
576
567
if (arrsize > 1 ) {
577
568
if constexpr (std::is_floating_point_v<T>) {
@@ -605,18 +596,10 @@ avx2_argsort(T *arr, arrsize_t *arg, arrsize_t arrsize, bool hasnan = false)
605
596
avx2_half_vector<T>,
606
597
avx2_vector<T>>::type;
607
598
608
- #ifdef __APPLE__
609
- using argtype =
610
- typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
611
- avx2_half_vector<uint32_t >,
612
- avx2_vector<uint64_t >>::type;
613
- #else
614
599
using argtype =
615
600
typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
616
601
avx2_half_vector<arrsize_t >,
617
602
avx2_vector<arrsize_t >>::type;
618
- #endif
619
-
620
603
if (arrsize > 1 ) {
621
604
if constexpr (std::is_floating_point_v<T>) {
622
605
if ((hasnan) && (array_has_nan<vectype>(arr, arrsize))) {
@@ -653,19 +636,10 @@ X86_SIMD_SORT_INLINE void avx512_argselect(T *arr,
653
636
ymm_vector<T>,
654
637
zmm_vector<T>>::type;
655
638
656
- /* Workaround for NumPy failed build on macOS x86_64: implicit instantiation of
657
- * undefined template 'zmm_vector<unsigned long>'*/
658
- #ifdef __APPLE__
659
- using argtype =
660
- typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
661
- ymm_vector<uint32_t >,
662
- zmm_vector<uint64_t >>::type;
663
- #else
664
639
using argtype =
665
640
typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
666
641
ymm_vector<arrsize_t >,
667
642
zmm_vector<arrsize_t >>::type;
668
- #endif
669
643
670
644
if (arrsize > 1 ) {
671
645
if constexpr (std::is_floating_point_v<T>) {
@@ -702,17 +676,10 @@ X86_SIMD_SORT_INLINE void avx2_argselect(T *arr,
702
676
avx2_half_vector<T>,
703
677
avx2_vector<T>>::type;
704
678
705
- #ifdef __APPLE__
706
- using argtype =
707
- typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
708
- avx2_half_vector<uint32_t >,
709
- avx2_vector<uint64_t >>::type;
710
- #else
711
679
using argtype =
712
680
typename std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
713
681
avx2_half_vector<arrsize_t >,
714
682
avx2_vector<arrsize_t >>::type;
715
- #endif
716
683
717
684
if (arrsize > 1 ) {
718
685
if constexpr (std::is_floating_point_v<T>) {
0 commit comments