implementing some new functionality to bitvecotr
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
#ifndef _LA_RANDOM_H
|
||||
#define _LA_RANDOM_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace LA {
|
||||
|
||||
extern double randdouble();
|
||||
extern double randdoublesigned();
|
||||
extern int randint32();
|
||||
extern uint64_t randint64();
|
||||
|
||||
//RANDOM numbers defaulting to standard library but switchable to user's functions
|
||||
#ifndef RANDDOUBLE
|
||||
@@ -20,6 +23,11 @@ extern int randint32();
|
||||
#define RANDINT32 LA::randint32
|
||||
#endif
|
||||
|
||||
#ifndef RANDINT64
|
||||
#define RANDINT64 LA::randint64
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define WEAK_SYMBOL __attribute__((weak))
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user