Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
s_globals.m File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LCV_CONST_IDX   4
#define SHAPE_FOLDABLE(OPND)   OPND.flag_1
#define SHAPE_WILL_FOLD_LATER(OPND)   OPND.flag_2
#define COPY_SHAPE(SHAPE_T, SHAPE_S, RANK)
#define LCV_WORDS(VAR)   (sizeof(VAR) / sizeof(attr_tbl[0].wd[0]))
#define SET_LCV_CONST(ATTR, VALUE, WORDS)
#define GET_LCV_CONST(ATTR, VALUE, WORDS)

Define Documentation

#define GET_LCV_CONST (   ATTR,
  VALUE,
  WORDS 
)
Value:
{                                   \
         *(long *) &((VALUE)) = attr_tbl[ATTR].wd[LCV_CONST_IDX];              \
         if (WORDS == 2) {                                                     \
            *((long *) &((VALUE))+1) = attr_tbl[ATTR].wd[LCV_CONST_IDX+1];     \
         }                                                                     \
         else if (WORDS == 3) {                                                \
            *((long *) &((VALUE))+1) = attr_tbl[ATTR].wd[LCV_CONST_IDX+1];     \
            *((long *) &((VALUE))+2) = attr_tbl[ATTR].wd[LCV_CONST_IDX+2];     \
         }                                                                     \
         else if (WORDS == 4) {                                                \
            *((long *) &((VALUE))+1) = attr_tbl[ATTR].wd[LCV_CONST_IDX+1];     \
            *((long *) &((VALUE))+2) = attr_tbl[ATTR].wd[LCV_CONST_IDX+2];     \
            *((long *) &((VALUE))+3) = attr_tbl[ATTR].wd[LCV_CONST_IDX+3];     \
         }                                                                     \
         }

Definition at line 106 of file s_globals.m.

Referenced by cvrt_exp_to_pdg(), interpret_constructor(), interpret_data_imp_do(), and interpret_implied_do().

#define LCV_CONST_IDX   4

Definition at line 48 of file s_globals.m.

#define LCV_WORDS (   VAR)    (sizeof(VAR) / sizeof(attr_tbl[0].wd[0]))

Definition at line 88 of file s_globals.m.

#define SET_LCV_CONST (   ATTR,
  VALUE,
  WORDS 
)
Value:
{                                      \
         attr_tbl[ATTR].wd[LCV_CONST_IDX] = *(long *) &((VALUE));              \
         if (WORDS == 2) {                                                     \
            attr_tbl[ATTR].wd[LCV_CONST_IDX+1] = *((long *) &((VALUE))+1);     \
         }                                                                     \
         else if (WORDS == 3) {                                                \
            attr_tbl[ATTR].wd[LCV_CONST_IDX+1] = *((long *) &((VALUE))+1);     \
            attr_tbl[ATTR].wd[LCV_CONST_IDX+2] = *((long *) &((VALUE))+2);     \
         }                                                                     \
         else if (WORDS == 4) {                                                \
            attr_tbl[ATTR].wd[LCV_CONST_IDX+1] = *((long *) &((VALUE))+1);     \
            attr_tbl[ATTR].wd[LCV_CONST_IDX+2] = *((long *) &((VALUE))+2);     \
            attr_tbl[ATTR].wd[LCV_CONST_IDX+3] = *((long *) &((VALUE))+3);     \
         }                                                                     \
         }

Definition at line 90 of file s_globals.m.

Referenced by cvrt_exp_to_pdg(), interpret_data_imp_do(), and interpret_implied_do().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines