Functions | Variables

util.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

INT Execute (char *cmd, char **argv, char *stdoutfile, BOOL echo)
char * Get_Environment_Value (char *name, char **envp, char *def)
INT Check_Range (INT val, INT lbound, INT ubound, INT def)
void Indent (FILE *f, INT16 indent)
INT Mod (INT i, INT j)
INT Min (INT i, INT j)
INT Max (INT i, INT j)
TARG_INT TARG_INT_Pop_Count (TARG_INT x)
TARG_INT TARG_INT_Most_Sig_One (TARG_INT x)
TARG_INT TARG_INT_Least_Sig_One (TARG_INT x)
INT32 nearest_power_of_two (INT32 n)
BOOL Immediate_Has_All_Ones (INT64 imm, INT32 ub, INT32 lb)

Variables

const mUINT8 UINT8_pop_count [256]
const mUINT8 UINT8_least_sig_one [256]

Function Documentation

INT Check_Range ( INT  val,
INT  lbound,
INT  ubound,
INT  def 
)

Definition at line 149 of file util.c.

Referenced by Set_Trace().

INT Execute ( char *  cmd,
char **  argv,
char *  stdoutfile,
BOOL  echo 
)
char* Get_Environment_Value ( char *  name,
char **  envp,
char *  def 
)
BOOL Immediate_Has_All_Ones ( INT64  imm,
INT32  ub,
INT32  lb 
)

Definition at line 416 of file util.c.

References Is_True.

void Indent ( FILE *  f,
INT16  indent 
)
INT Max ( INT  i,
INT  j 
) [inline]

Definition at line 412 of file defs.h.

References MAX.

Referenced by MEM_POOL_Report(), and Site_Account_Alloc().

INT Min ( INT  i,
INT  j 
) [inline]

Definition at line 416 of file defs.h.

References MIN.

Referenced by BS_Difference(), and BS_DifferenceD().

INT Mod ( INT  i,
INT  j 
)

Definition at line 198 of file util.c.

INT32 nearest_power_of_two ( INT32  n  ) 

Definition at line 392 of file util.c.

References IS_POW2, and Is_True.

Referenced by Adjusted_Alignment().

TARG_INT TARG_INT_Least_Sig_One ( TARG_INT  x  ) 

Definition at line 360 of file util.c.

TARG_INT TARG_INT_Most_Sig_One ( TARG_INT  x  ) 

Definition at line 305 of file util.c.

TARG_INT TARG_INT_Pop_Count ( TARG_INT  x  ) 

Definition at line 253 of file util.c.

References result.


Variable Documentation

Definition at line 338 of file util.c.

const mUINT8 UINT8_pop_count[256]

Definition at line 233 of file util.c.