@@ -36,7 +36,7 @@ double random_standard_uniform(aug_state* state)
3636}
3737
3838
39- void random_uniform_fill (aug_state * state , intptr_t count , double * out )
39+ void random_uniform_fill (aug_state * state , npy_intp count , double * out )
4040{
4141 int i ;
4242 for (i = 0 ; i < count ; i ++ ) {
@@ -50,7 +50,7 @@ double random_standard_exponential(aug_state* state)
5050 return - log (1.0 - random_double (state ));
5151}
5252
53- void random_standard_exponential_fill (aug_state * state , intptr_t count , double * out )
53+ void random_standard_exponential_fill (aug_state * state , npy_intp count , double * out )
5454{
5555 int i ;
5656 for (i = 0 ; i < count ; i ++ ) {
@@ -87,7 +87,7 @@ double random_gauss(aug_state* state) {
8787 }
8888}
8989
90- void random_gauss_fill (aug_state * state , intptr_t count , double * out ) {
90+ void random_gauss_fill (aug_state * state , npy_intp count , double * out ) {
9191 int i ;
9292 double f , x1 , x2 , r2 ;
9393 for (i = 0 ; i < count ; i ++ ) {
@@ -1354,7 +1354,7 @@ double random_gauss_zig_julia(aug_state *state) {
13541354}
13551355
13561356
1357- void random_gauss_zig_julia_fill (aug_state * state , intptr_t count , double * out ) {
1357+ void random_gauss_zig_julia_fill (aug_state * state , npy_intp count , double * out ) {
13581358 uint64_t r ;
13591359 int64_t rabs ;
13601360 int idx , i ;
@@ -1444,7 +1444,7 @@ static inline uint64_t gen_mask(uint64_t max)
14441444 * Fills an array with cnt random npy_uint64 between off and off + rng
14451445 * inclusive. The numbers wrap if rng is sufficiently large.
14461446 */
1447- void random_bounded_uint64_fill (aug_state * state , uint64_t off , uint64_t rng , intptr_t cnt , uint64_t * out )
1447+ void random_bounded_uint64_fill (aug_state * state , uint64_t off , uint64_t rng , npy_intp cnt , uint64_t * out )
14481448{
14491449 uint64_t val , mask ;
14501450 int i ;
@@ -1478,7 +1478,7 @@ void random_bounded_uint64_fill(aug_state *state, uint64_t off, uint64_t rng, in
14781478 * Fills an array with cnt random npy_uint32 between off and off + rng
14791479 * inclusive. The numbers wrap if rng is sufficiently large.
14801480 */
1481- void random_bounded_uint32_fill (aug_state * state , uint32_t off , uint32_t rng , intptr_t cnt , uint32_t * out )
1481+ void random_bounded_uint32_fill (aug_state * state , uint32_t off , uint32_t rng , npy_intp cnt , uint32_t * out )
14821482{
14831483 uint32_t val , mask = rng ;
14841484 int i ;
@@ -1504,7 +1504,7 @@ void random_bounded_uint32_fill(aug_state *state, uint32_t off, uint32_t rng, in
15041504 * Fills an array with cnt random npy_uint16 between off and off + rng
15051505 * inclusive. The numbers wrap if rng is sufficiently large.
15061506 */
1507- void random_bounded_uint16_fill (aug_state * state , uint16_t off , uint16_t rng , intptr_t cnt , uint16_t * out )
1507+ void random_bounded_uint16_fill (aug_state * state , uint16_t off , uint16_t rng , npy_intp cnt , uint16_t * out )
15081508{
15091509 uint16_t val , mask ;
15101510 int i ;
@@ -1541,7 +1541,7 @@ void random_bounded_uint16_fill(aug_state *state, uint16_t off, uint16_t rng, in
15411541 * Fills an array with cnt random npy_uint8 between off and off + rng
15421542 * inclusive. The numbers wrap if rng is sufficiently large.
15431543 */
1544- void random_bounded_uint8_fill (aug_state * state , uint8_t off , uint8_t rng , intptr_t cnt , uint8_t * out )
1544+ void random_bounded_uint8_fill (aug_state * state , uint8_t off , uint8_t rng , npy_intp cnt , uint8_t * out )
15451545{
15461546 uint8_t val , mask = rng ;
15471547 int i ;
@@ -1580,7 +1580,7 @@ void random_bounded_uint8_fill(aug_state *state, uint8_t off, uint8_t rng, intpt
15801580 * inclusive.
15811581 */
15821582/* TODO: This needs to use bools. See original */
1583- void random_bool_fill (aug_state * state , int8_t off , int8_t rng , intptr_t cnt , int8_t * out )
1583+ void random_bool_fill (aug_state * state , int8_t off , int8_t rng , npy_intp cnt , int8_t * out )
15841584{
15851585 int i ;
15861586 uint32_t buf = 0 ;
0 commit comments