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
18
extern
"C"
{
19
#endif
20
21
void
*
xmalloc
(
size_t
n);
22
void
*
xcalloc
(
size_t
n,
size_t
k);
23
void
*
xrealloc
(
void
* p,
size_t
nbytes);
/* In utils.c */
24
uint_fast64_t
random_up_to
(
mrg_state
* st,
uint_fast64_t
n);
25
void
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 */
splittable_mrg.h
xrealloc
void * xrealloc(void *p, size_t nbytes)
random_up_to
uint_fast64_t random_up_to(mrg_state *st, uint_fast64_t n)
xcalloc
void * xcalloc(size_t n, size_t k)
xmalloc
void * xmalloc(size_t n)
make_mrg_seed
void make_mrg_seed(uint64_t userseed1, uint64_t userseed2, uint_fast32_t *seed)
stdint.h
uint_fast64_t
uint64_t uint_fast64_t
Definition
stdint.h:111
uint_fast32_t
uint32_t uint_fast32_t
Definition
stdint.h:110
uint64_t
unsigned __int64 uint64_t
Definition
stdint.h:90
mrg_state
Definition
splittable_mrg.h:35
KameshCode
graph500_2D_SC11
src
generator
utils.h
Generated by
1.9.8