osprey/common/util/util.h File Reference

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

Go to the source code of this file.

Functions/Subroutines

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 179 of file util.c.

Referenced by Set_Trace().

INT Execute ( char *  cmd,
char **  argv,
char *  stdoutfile,
BOOL  echo 
)

Definition at line 63 of file util.c.

References _exit(), _P_WAIT, errno, execvp(), fork, fprintf(), freopen, INT, NULL, and wait().

char* Get_Environment_Value ( char *  name,
char **  envp,
char *  def 
)

Definition at line 147 of file util.c.

References INT, len, strlen(), and strncmp().

BOOL Immediate_Has_All_Ones ( INT64  imm,
INT32  ub,
INT32  lb 
)

Definition at line 444 of file util.c.

References FALSE, INT32, Is_True, and TRUE.

void Indent ( FILE f,
INT16  indent 
)

Definition at line 201 of file util.c.

References fprintf().

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

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

INT Mod ( INT  i,
INT  j 
)

Definition at line 88 of file si_gen.cxx.

References INT.

Referenced by CGTARG_Operand_Live_Range(), CGTARG_Result_Live_Range(), and RES_REQ::Compute_II_RES_REQ().

INT32 nearest_power_of_two ( INT32  n  ) 

Definition at line 420 of file util.c.

References i, INT32, IS_POW2, and Is_True.

Referenced by Adjusted_Alignment(), and lower_bit_field_id().

TARG_INT TARG_INT_Least_Sig_One ( TARG_INT  x  ) 

Definition at line 388 of file util.c.

References i, INT, UINT, UINT8_least_sig_one, and is::y.

TARG_INT TARG_INT_Most_Sig_One ( TARG_INT  x  ) 

Definition at line 334 of file util.c.

References i, INT, UINT, UINT8_most_sig_one, and is::y.

TARG_INT TARG_INT_Pop_Count ( TARG_INT  x  ) 

Definition at line 283 of file util.c.

References i, INT, result, UINT, UINT8_pop_count, and is::y.

Referenced by lower_bit_field_id().


Variable Documentation

Definition at line 367 of file util.c.

Referenced by REGISTER_SET_Choose_Engine(), and TARG_INT_Least_Sig_One().

const mUINT8 UINT8_pop_count[256]

Definition at line 263 of file util.c.

Referenced by REGISTER_SET_Size(), and TARG_INT_Pop_Count().


Generated on Wed Apr 8 14:43:43 2009 for Open64 by  doxygen 1.5.6