summaryrefslogtreecommitdiff
path: root/numpy/random/include/bitgen.h
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-09-27 15:10:40 +0300
committermattip <matti.picus@gmail.com>2019-10-11 15:08:46 +0300
commite527e71f11e79e03eee41441d383b046ddb68d8b (patch)
treee01be48bcd9d363f4661214711bc80d2b3362ed9 /numpy/random/include/bitgen.h
parent007b3236a1409648629660cd6a25adeaba40cf75 (diff)
downloadnumpy-e527e71f11e79e03eee41441d383b046ddb68d8b.tar.gz
API: rearrange the cython files in numpy.random
Diffstat (limited to 'numpy/random/include/bitgen.h')
-rw-r--r--numpy/random/include/bitgen.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/numpy/random/include/bitgen.h b/numpy/random/include/bitgen.h
new file mode 100644
index 000000000..83c2858dd
--- /dev/null
+++ b/numpy/random/include/bitgen.h
@@ -0,0 +1,20 @@
+#ifndef _RANDOM_BITGEN_H
+#define _RANDOM_BITGEN_H
+
+#pragma once
+#include <stddef.h>
+#include <stdbool.h>
+#include <stdint.h>
+
+/* Must match the declaration in numpy/random/<any>.pxd */
+
+typedef struct bitgen {
+ void *state;
+ uint64_t (*next_uint64)(void *st);
+ uint32_t (*next_uint32)(void *st);
+ double (*next_double)(void *st);
+ uint64_t (*next_raw)(void *st);
+} bitgen_t;
+
+
+#endif