COMBINATORIAL_BLAS 1.6
Loading...
Searching...
No Matches
utils.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "splittable_mrg.h"
Include dependency graph for utils.h:

Go to the source code of this file.

Functions

void * xmalloc (size_t n)
void * xcalloc (size_t n, size_t k)
void * xrealloc (void *p, size_t nbytes)
uint_fast64_t random_up_to (mrg_state *st, uint_fast64_t n)
void make_mrg_seed (uint64_t userseed1, uint64_t userseed2, uint_fast32_t *seed)

Function Documentation

◆ make_mrg_seed()

void make_mrg_seed ( uint64_t userseed1,
uint64_t userseed2,
uint_fast32_t * seed )

◆ 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)

◆ xrealloc()

void * xrealloc ( void * p,
size_t nbytes )