COMBINATORIAL_BLAS 1.6
 
Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1/* Copyright (C) 2010 The Trustees of Indiana University. */
2/* */
3/* Use, modification and distribution is subject to the Boost Software */
4/* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */
5/* http://www.boost.org/LICENSE_1_0.txt) */
6/* */
7/* Authors: Jeremiah Willcock */
8/* Andrew Lumsdaine */
9
10#ifndef UTILS_H
11#define UTILS_H
12
13#include <stddef.h>
14#include <stdint.h>
15#include "splittable_mrg.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21void* xmalloc(size_t n);
22void* xcalloc(size_t n, size_t k);
23void* xrealloc(void* p, size_t nbytes); /* In utils.c */
25void make_mrg_seed(uint64_t userseed1, uint64_t userseed2, uint_fast32_t* seed);
26
27#ifdef __cplusplus
28}
29#endif
30
31#endif /* UTILS_H */
void * xrealloc(void *p, size_t nbytes)
uint_fast64_t random_up_to(mrg_state *st, uint_fast64_t n)
void * xcalloc(size_t n, size_t k)
void * xmalloc(size_t n)
void make_mrg_seed(uint64_t userseed1, uint64_t userseed2, uint_fast32_t *seed)
uint64_t uint_fast64_t
Definition stdint.h:111
uint32_t uint_fast32_t
Definition stdint.h:110
unsigned __int64 uint64_t
Definition stdint.h:90