-
Couldn't load subscription status.
- Fork 128
BitGenerator support #499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BitGenerator support #499
Changes from all commits
06d6ce1
07e2416
b611943
d93a264
f52b2fa
05814d6
37d360e
eed5b19
6c1a89b
d1909d3
bde2553
a0b9ec5
ee32246
1be6838
2aa3d90
0258e6d
876001b
71ce8be
2de7072
016eb7a
1f7f37f
1d01c7a
c90176a
f49d3fa
a16846d
573d890
06bb693
663fa29
c6105c9
3a0aa92
a92861a
6dbb6dc
b102d20
e5e440e
e73e3a2
c6493df
2327f36
e5c6458
e8cd5e8
0868405
8667203
1fd7bb5
3913171
7bc0be8
8caf054
d8b62ac
43e2d97
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, will do when I’m done. I like working on multiple machines, and I don’t like re-doing settings for individual projects
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "[rust]": { | ||
| "editor.defaultFormatter": "rust-lang.rust-analyzer", | ||
| "editor.formatOnSave": true, | ||
| }, | ||
| "rust-analyzer.cargo.features": "all", | ||
| } | ||
flying-sheep marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| use std::ffi::c_void; | ||
|
|
||
| #[repr(C)] | ||
| #[derive(Debug)] | ||
| pub struct bitgen_t { | ||
| pub state: *mut c_void, | ||
| pub next_uint64: unsafe extern "C" fn(*mut c_void) -> super::npy_uint64, //nogil | ||
| pub next_uint32: unsafe extern "C" fn(*mut c_void) -> super::npy_uint32, //nogil | ||
| pub next_double: unsafe extern "C" fn(*mut c_void) -> libc::c_double, //nogil | ||
| pub next_raw: unsafe extern "C" fn(*mut c_void) -> super::npy_uint64, //nogil | ||
flying-sheep marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||