summaryrefslogtreecommitdiff
path: root/numpy/random/_philox.pyx
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2023-05-07 12:21:54 +0300
committerGitHub <noreply@github.com>2023-05-07 12:21:54 +0300
commitc7724ee776f3aa447d89170809aace0461ccacf0 (patch)
tree3cc7cd039b825e978b350d370721fba0a260e0f5 /numpy/random/_philox.pyx
parentac78f9e45313e963d6bd40a2a7d139993904d03f (diff)
parent2df3b4c26bda892701741a331ad62ba6333446f0 (diff)
downloadnumpy-c7724ee776f3aa447d89170809aace0461ccacf0.tar.gz
Merge pull request #23709 from scoder/cython3_noexcept
MAINT: Add "noexcept" markers to Cython functions that do not raise exceptions
Diffstat (limited to 'numpy/random/_philox.pyx')
-rw-r--r--numpy/random/_philox.pyx6
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/random/_philox.pyx b/numpy/random/_philox.pyx
index d9a366e86..e0c0504f6 100644
--- a/numpy/random/_philox.pyx
+++ b/numpy/random/_philox.pyx
@@ -42,13 +42,13 @@ cdef extern from 'src/philox/philox.h':
void philox_advance(uint64_t *step, philox_state *state)
-cdef uint64_t philox_uint64(void*st) nogil:
+cdef uint64_t philox_uint64(void*st) noexcept nogil:
return philox_next64(<philox_state *> st)
-cdef uint32_t philox_uint32(void *st) nogil:
+cdef uint32_t philox_uint32(void *st) noexcept nogil:
return philox_next32(<philox_state *> st)
-cdef double philox_double(void*st) nogil:
+cdef double philox_double(void*st) noexcept nogil:
return uint64_to_double(philox_next64(<philox_state *> st))
cdef class Philox(BitGenerator):