summaryrefslogtreecommitdiff
path: root/numpy/random/_mt19937.pyx
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2023-05-04 09:18:16 +0200
committerStefan Behnel <stefan_ml@behnel.de>2023-05-04 09:18:16 +0200
commit3e4a6cba2da27bbe2a6e12c163238e503c9f6a07 (patch)
tree23edfc8237d2735ad3580fe884d0cd946c246804 /numpy/random/_mt19937.pyx
parent800c43bcf93133b99effcd1103d77bf7b3ed3618 (diff)
downloadnumpy-3e4a6cba2da27bbe2a6e12c163238e503c9f6a07.tar.gz
Add "noexcept" markers to functions that do not raise exceptions.
Diffstat (limited to 'numpy/random/_mt19937.pyx')
-rw-r--r--numpy/random/_mt19937.pyx8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/random/_mt19937.pyx b/numpy/random/_mt19937.pyx
index 16a377cc6..400584ce1 100644
--- a/numpy/random/_mt19937.pyx
+++ b/numpy/random/_mt19937.pyx
@@ -28,16 +28,16 @@ cdef extern from "src/mt19937/mt19937.h":
enum:
RK_STATE_LEN
-cdef uint64_t mt19937_uint64(void *st) nogil:
+cdef uint64_t mt19937_uint64(void *st) noexcept nogil:
return mt19937_next64(<mt19937_state *> st)
-cdef uint32_t mt19937_uint32(void *st) nogil:
+cdef uint32_t mt19937_uint32(void *st) noexcept nogil:
return mt19937_next32(<mt19937_state *> st)
-cdef double mt19937_double(void *st) nogil:
+cdef double mt19937_double(void *st) noexcept nogil:
return mt19937_next_double(<mt19937_state *> st)
-cdef uint64_t mt19937_raw(void *st) nogil:
+cdef uint64_t mt19937_raw(void *st) noexcept nogil:
return <uint64_t>mt19937_next32(<mt19937_state *> st)
cdef class MT19937(BitGenerator):