@@ -549,19 +549,10 @@ avx512_argsort(T *arr, arrsize_t *arg, arrsize_t arrsize, bool hasnan = false)
549549                                              ymm_vector<T>,
550550                                              zmm_vector<T>>::type;
551551
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 
560552    using  argtype =
561553            typename  std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
562554                                      ymm_vector<arrsize_t >,
563555                                      zmm_vector<arrsize_t >>::type;
564- #endif 
565556
566557    if  (arrsize > 1 ) {
567558        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)
595586                                              avx2_half_vector<T>,
596587                                              avx2_vector<T>>::type;
597588
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 
604589    using  argtype =
605590            typename  std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
606591                                      avx2_half_vector<arrsize_t >,
607592                                      avx2_vector<arrsize_t >>::type;
608- #endif 
609- 
610593    if  (arrsize > 1 ) {
611594        if  constexpr  (std::is_floating_point_v<T>) {
612595            if  ((hasnan) && (array_has_nan<vectype>(arr, arrsize))) {
@@ -643,19 +626,10 @@ X86_SIMD_SORT_INLINE void avx512_argselect(T *arr,
643626                                              ymm_vector<T>,
644627                                              zmm_vector<T>>::type;
645628
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 
654629    using  argtype =
655630            typename  std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
656631                                      ymm_vector<arrsize_t >,
657632                                      zmm_vector<arrsize_t >>::type;
658- #endif 
659633
660634    if  (arrsize > 1 ) {
661635        if  constexpr  (std::is_floating_point_v<T>) {
@@ -692,17 +666,10 @@ X86_SIMD_SORT_INLINE void avx2_argselect(T *arr,
692666                                              avx2_half_vector<T>,
693667                                              avx2_vector<T>>::type;
694668
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 
701669    using  argtype =
702670            typename  std::conditional<sizeof (arrsize_t ) == sizeof (int32_t ),
703671                                      avx2_half_vector<arrsize_t >,
704672                                      avx2_vector<arrsize_t >>::type;
705- #endif 
706673
707674    if  (arrsize > 1 ) {
708675        if  constexpr  (std::is_floating_point_v<T>) {
0 commit comments