-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nogil): make functions callable with nogil
- Loading branch information
Showing
4 changed files
with
19 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from cyrandom cimport * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
cpdef double random() | ||
cpdef double random() nogil | ||
|
||
cdef unsigned short bit_length(unsigned long n) | ||
cdef unsigned short bit_length(unsigned long n) nogil | ||
|
||
cdef unsigned long getrandbits(unsigned short k) | ||
cdef unsigned long getrandbits(unsigned short k) nogil | ||
|
||
cpdef long randrange(long start, long stop) | ||
cpdef long randrange(long start, long stop) nogil | ||
|
||
cpdef long randint(long a, long b) | ||
cpdef long randint(long a, long b) nogil | ||
|
||
cpdef double uniform(double a, double b) | ||
cpdef double uniform(double a, double b) nogil | ||
|
||
cpdef double triangular(double low=?, double high=?, double mode=?) | ||
cpdef double triangular(double low=?, double high=?, double mode=?) nogil | ||
|
||
cpdef long triangular_int(long low, long high, long mode) | ||
cpdef long triangular_int(long low, long high, long mode) nogil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters