summaryrefslogtreecommitdiff
path: root/numpy/core/include
diff options
context:
space:
mode:
authormattip <matti.picus@gmail.com>2019-06-27 16:17:09 -0700
committermattip <matti.picus@gmail.com>2019-06-27 16:27:47 -0700
commit14c333972d64fce85d06d74bc673045f32da7b5f (patch)
treec2580325e9f3474edfb4a6196d37b98f7af9e7e9 /numpy/core/include
parent4178b5a731cd183563d53ed145e7dce278aa39f6 (diff)
downloadnumpy-14c333972d64fce85d06d74bc673045f32da7b5f.tar.gz
MAINT: move location of bitgen.h
Diffstat (limited to 'numpy/core/include')
-rw-r--r--numpy/core/include/numpy/random/bitgen.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/numpy/core/include/numpy/random/bitgen.h b/numpy/core/include/numpy/random/bitgen.h
new file mode 100644
index 000000000..0adaaf2ee
--- /dev/null
+++ b/numpy/core/include/numpy/random/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/common.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