HPCToolkit
urand.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "usec_time.h"
Include dependency graph for urand.c:

Go to the source code of this file.

Macros

#define __USE_POSIX   1
 
#define LOW_32BITS   ((unsigned int) ~0)
 

Functions

int urand ()
 
int urand_bounded (int n)
 

Variables

static __thread int urand_initialized = 0
 
static __thread unsigned int urand_data
 

Macro Definition Documentation

◆ __USE_POSIX

#define __USE_POSIX   1

Definition at line 64 of file urand.c.

◆ LOW_32BITS

#define LOW_32BITS   ((unsigned int) ~0)

Definition at line 81 of file urand.c.

Function Documentation

◆ urand()

int urand ( )

Definition at line 111 of file urand.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ urand_bounded()

int urand_bounded ( int  n)

Definition at line 123 of file urand.c.

Here is the call graph for this function:

Variable Documentation

◆ urand_data

__thread unsigned int urand_data
static

Definition at line 90 of file urand.c.

◆ urand_initialized

__thread int urand_initialized = 0
static

Definition at line 89 of file urand.c.