SURFEX v8.1
General documentation of Surfex
Typedefs | Functions | Variables
bitbuff.c File Reference

Go to the source code of this file.

Typedefs

typedef __uint64_t WORD
 
typedef unsigned long uint64_t
 

Functions

void SET_FILLIDX (unsigned *idx, unsigned *bitoffset)
 
void GET_FILLIDX (unsigned *idx, unsigned *bitoffset)
 
void FILL_BBUFF (WORD *out, int *n, unsigned *val)
 
void SET_EXTRACTIDX (unsigned *idx, unsigned *bitoffset)
 
void GET_EXTRACTIDX (unsigned *idx, unsigned *bitoffset)
 
void extract_bbuff_rec (WORD *buff, int *n, unsigned *val)
 
void EXTRACT_BBUFF (WORD *buff, int *n, unsigned *val)
 

Variables

int outidx = 0
 
int outbrem = WORDSIZE
 
int inidx = 0
 
int inbrem = WORDSIZE
 

Typedef Documentation

◆ uint64_t

typedef unsigned long uint64_t

Definition at line 10 of file bitbuff.c.

◆ WORD

typedef uint64_t WORD

Definition at line 7 of file bitbuff.c.

Function Documentation

◆ EXTRACT_BBUFF()

void EXTRACT_BBUFF ( WORD buff,
int *  n,
unsigned *  val 
)

Definition at line 110 of file bitbuff.c.

Here is the call graph for this function:

◆ extract_bbuff_rec()

void extract_bbuff_rec ( WORD buff,
int *  n,
unsigned *  val 
)

Definition at line 92 of file bitbuff.c.

Here is the caller graph for this function:

◆ FILL_BBUFF()

void FILL_BBUFF ( WORD out,
int *  n,
unsigned *  val 
)

Definition at line 52 of file bitbuff.c.

◆ GET_EXTRACTIDX()

void GET_EXTRACTIDX ( unsigned *  idx,
unsigned *  bitoffset 
)

Definition at line 86 of file bitbuff.c.

◆ GET_FILLIDX()

void GET_FILLIDX ( unsigned *  idx,
unsigned *  bitoffset 
)

Definition at line 47 of file bitbuff.c.

◆ SET_EXTRACTIDX()

void SET_EXTRACTIDX ( unsigned *  idx,
unsigned *  bitoffset 
)

Definition at line 80 of file bitbuff.c.

◆ SET_FILLIDX()

void SET_FILLIDX ( unsigned *  idx,
unsigned *  bitoffset 
)

Definition at line 41 of file bitbuff.c.

Variable Documentation

◆ inbrem

int inbrem = WORDSIZE

Definition at line 39 of file bitbuff.c.

◆ inidx

int inidx = 0

Definition at line 38 of file bitbuff.c.

◆ outbrem

int outbrem = WORDSIZE

Definition at line 36 of file bitbuff.c.

◆ outidx

int outidx = 0

Definition at line 35 of file bitbuff.c.