COMBINATORIAL_BLAS  1.6
utils.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "splittable_mrg.h"

Go to the source code of this file.

Functions

void * xmalloc (size_t n)
 
void * xcalloc (size_t n, size_t k)
 
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)