@@ -36,7 +36,7 @@ double random_standard_uniform(aug_state* state)
36
36
}
37
37
38
38
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 )
40
40
{
41
41
int i ;
42
42
for (i = 0 ; i < count ; i ++ ) {
@@ -50,7 +50,7 @@ double random_standard_exponential(aug_state* state)
50
50
return - log (1.0 - random_double (state ));
51
51
}
52
52
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 )
54
54
{
55
55
int i ;
56
56
for (i = 0 ; i < count ; i ++ ) {
@@ -87,7 +87,7 @@ double random_gauss(aug_state* state) {
87
87
}
88
88
}
89
89
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 ) {
91
91
int i ;
92
92
double f , x1 , x2 , r2 ;
93
93
for (i = 0 ; i < count ; i ++ ) {
@@ -1354,7 +1354,7 @@ double random_gauss_zig_julia(aug_state *state) {
1354
1354
}
1355
1355
1356
1356
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 ) {
1358
1358
uint64_t r ;
1359
1359
int64_t rabs ;
1360
1360
int idx , i ;
@@ -1444,7 +1444,7 @@ static inline uint64_t gen_mask(uint64_t max)
1444
1444
* Fills an array with cnt random npy_uint64 between off and off + rng
1445
1445
* inclusive. The numbers wrap if rng is sufficiently large.
1446
1446
*/
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 )
1448
1448
{
1449
1449
uint64_t val , mask ;
1450
1450
int i ;
@@ -1478,7 +1478,7 @@ void random_bounded_uint64_fill(aug_state *state, uint64_t off, uint64_t rng, in
1478
1478
* Fills an array with cnt random npy_uint32 between off and off + rng
1479
1479
* inclusive. The numbers wrap if rng is sufficiently large.
1480
1480
*/
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 )
1482
1482
{
1483
1483
uint32_t val , mask = rng ;
1484
1484
int i ;
@@ -1504,7 +1504,7 @@ void random_bounded_uint32_fill(aug_state *state, uint32_t off, uint32_t rng, in
1504
1504
* Fills an array with cnt random npy_uint16 between off and off + rng
1505
1505
* inclusive. The numbers wrap if rng is sufficiently large.
1506
1506
*/
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 )
1508
1508
{
1509
1509
uint16_t val , mask ;
1510
1510
int i ;
@@ -1541,7 +1541,7 @@ void random_bounded_uint16_fill(aug_state *state, uint16_t off, uint16_t rng, in
1541
1541
* Fills an array with cnt random npy_uint8 between off and off + rng
1542
1542
* inclusive. The numbers wrap if rng is sufficiently large.
1543
1543
*/
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 )
1545
1545
{
1546
1546
uint8_t val , mask = rng ;
1547
1547
int i ;
@@ -1580,7 +1580,7 @@ void random_bounded_uint8_fill(aug_state *state, uint8_t off, uint8_t rng, intpt
1580
1580
* inclusive.
1581
1581
*/
1582
1582
/* 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 )
1584
1584
{
1585
1585
int i ;
1586
1586
uint32_t buf = 0 ;
0 commit comments