@@ -63,7 +63,7 @@ cdef int64_t _safe_sum_nonneg_int64(size_t num_colors, int64_t *colors):
63
63
cdef inline void _shuffle_raw_wrap (bitgen_t * bitgen , np .npy_intp n ,
64
64
np .npy_intp first , np .npy_intp itemsize ,
65
65
np .npy_intp stride ,
66
- char * data , char * buf ) nogil :
66
+ char * data , char * buf ) noexcept nogil :
67
67
# We trick gcc into providing a specialized implementation for
68
68
# the most common case, yielding a ~33% performance improvement.
69
69
# Note that apparently, only one branch can ever be specialized.
@@ -76,7 +76,7 @@ cdef inline void _shuffle_raw_wrap(bitgen_t *bitgen, np.npy_intp n,
76
76
cdef inline void _shuffle_raw (bitgen_t * bitgen , np .npy_intp n ,
77
77
np .npy_intp first , np .npy_intp itemsize ,
78
78
np .npy_intp stride ,
79
- char * data , char * buf ) nogil :
79
+ char * data , char * buf ) noexcept nogil :
80
80
"""
81
81
Parameters
82
82
----------
@@ -107,7 +107,7 @@ cdef inline void _shuffle_raw(bitgen_t *bitgen, np.npy_intp n,
107
107
108
108
109
109
cdef inline void _shuffle_int (bitgen_t * bitgen , np .npy_intp n ,
110
- np .npy_intp first , int64_t * data ) nogil :
110
+ np .npy_intp first , int64_t * data ) noexcept nogil :
111
111
"""
112
112
Parameters
113
113
----------
0 commit comments