| 792 | } |
| 793 | |
| 794 | static NPY_GCC_OPT_3 int |
| 795 | npy_fastrepeat( |
| 796 | npy_intp n_outer, npy_intp n, npy_intp nel, npy_intp chunk, |
| 797 | npy_bool broadcast, npy_intp* counts, char* new_data, char* old_data, |
| 798 | npy_intp elsize, NPY_cast_info cast_info, int needs_refcounting) |
| 799 | { |
| 800 | if (!needs_refcounting) { |
| 801 | if (chunk == 1) { |
| 802 | return npy_fastrepeat_impl( |
| 803 | n_outer, n, nel, chunk, broadcast, counts, new_data, old_data, |
| 804 | elsize, cast_info, needs_refcounting); |
| 805 | } |
| 806 | if (chunk == 2) { |
| 807 | return npy_fastrepeat_impl( |
| 808 | n_outer, n, nel, chunk, broadcast, counts, new_data, old_data, |
| 809 | elsize, cast_info, needs_refcounting); |
| 810 | } |
| 811 | if (chunk == 4) { |
| 812 | return npy_fastrepeat_impl( |
| 813 | n_outer, n, nel, chunk, broadcast, counts, new_data, old_data, |
| 814 | elsize, cast_info, needs_refcounting); |
| 815 | } |
| 816 | if (chunk == 8) { |
| 817 | return npy_fastrepeat_impl( |
| 818 | n_outer, n, nel, chunk, broadcast, counts, new_data, old_data, |
| 819 | elsize, cast_info, needs_refcounting); |
| 820 | } |
| 821 | if (chunk == 16) { |
| 822 | return npy_fastrepeat_impl( |
| 823 | n_outer, n, nel, chunk, broadcast, counts, new_data, old_data, |
| 824 | elsize, cast_info, needs_refcounting); |
| 825 | } |
| 826 | if (chunk == 32) { |
| 827 | return npy_fastrepeat_impl( |
| 828 | n_outer, n, nel, chunk, broadcast, counts, new_data, old_data, |
| 829 | elsize, cast_info, needs_refcounting); |
| 830 | } |
| 831 | } |
| 832 | |
| 833 | return npy_fastrepeat_impl( |
| 834 | n_outer, n, nel, chunk, broadcast, counts, new_data, old_data, elsize, |
| 835 | cast_info, needs_refcounting); |
| 836 | } |
| 837 | |
| 838 | |
| 839 | /*NUMPY_API |
no test coverage detected