|
|
@ -7,6 +7,8 @@ extern "C" {
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _RNGXX_COMMON_MINIMAL
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
|
|
|
|
#define IFUNC_NAME(name, ver) _impl__ ## name ## __ ## ver
|
|
|
|
#define IFUNC_NAME(name, ver) _impl__ ## name ## __ ## ver
|
|
|
@ -32,6 +34,8 @@ extern "C" {
|
|
|
|
|
|
|
|
|
|
|
|
#define _rng_internal v_internal
|
|
|
|
#define _rng_internal v_internal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define DEF(s, n) typedef s ## int ## n ## _t s ## n
|
|
|
|
#define DEF(s, n) typedef s ## int ## n ## _t s ## n
|
|
|
|
#define DEFINT(n) typedef uint ## n ## _t u ## n; \
|
|
|
|
#define DEFINT(n) typedef uint ## n ## _t u ## n; \
|
|
|
|
typedef int ## n ## _t i ## n
|
|
|
|
typedef int ## n ## _t i ## n
|
|
|
@ -41,6 +45,7 @@ DEFINT(16);
|
|
|
|
DEFINT(32);
|
|
|
|
DEFINT(32);
|
|
|
|
DEFINT(64);
|
|
|
|
DEFINT(64);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdbool.h>
|
|
|
@ -65,7 +70,9 @@ typedef uintptr_t ptr_t;
|
|
|
|
#undef DEF
|
|
|
|
#undef DEF
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
|
|
#ifndef _RNGXX_COMMON_MINIMAL
|
|
|
|
#define restrict __restrict__
|
|
|
|
#define restrict __restrict__
|
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|