Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
maxval.c File Reference
#include <stddef.h>
#include <liberrno.h>
#include <fmath.h>
#include <cray/dopevec.h>
#include <cray/portdefs.h>
#include "arraydefs.h"
Include dependency graph for maxval.c:

Go to the source code of this file.

Defines

#define USE_INT8   1
#define USE_INT6   2
#define USE_INT4   3
#define USE_INT2   4
#define USE_INT1   5
#define USE_REAL16   6
#define USE_REAL8   7
#define USE_REAL4   8
#define INCREMENT()
#define INCR_RES()
#define LOAD_DM_MK()

Typedefs

typedef int _f_int6

Functions

void _MAXVAL_J (DopeVectorType *result, DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
void _MAXVAL__J (DopeVectorType *result, DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
void _MAXVAL_S (DopeVectorType *result, DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
void _MAXVAL__S (DopeVectorType *result, DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
void _MAXVAL_I (DopeVectorType *result, DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
void _MAXVAL__I (DopeVectorType *result, DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
_f_int6 _MAXVAL0_I (DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
_f_int8 _MAXVAL0__I (DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
void _MAXVAL_I4 (DopeVectorType *result, DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
void _MAXVAL__I4 (DopeVectorType *result, DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
void _MAXVAL_I2 (DopeVectorType *result, DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
void _MAXVAL__I2 (DopeVectorType *result, DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
void _MAXVAL_I1 (DopeVectorType *result, DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
void _MAXVAL__I1 (DopeVectorType *result, DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
_f_int4 _MAXVAL0_I4 (DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
_f_int4 _MAXVAL0__I4 (DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
_f_int2 _MAXVAL0_I2 (DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
_f_int2 _MAXVAL0__I2 (DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
_f_int1 _MAXVAL0_I1 (DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
_f_int1 _MAXVAL0__I1 (DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
void _MAXVAL_S4 (DopeVectorType *result, DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
void _MAXVAL__S4 (DopeVectorType *result, DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
_f_real4 _MAXVAL0_S4 (DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
_f_real4 _MAXVAL0__S4 (DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
_f_int8 _MAXVAL0_J (DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
_f_int8 _MAXVAL0__J (DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
_f_real8 _MAXVAL0_S (DopeVectorType *source, _f_int *dimp, DopeVectorType *mask)
_f_real8 _MAXVAL0__S (DopeVectorType *source, DopeVectorType *dimp, DopeVectorType *mask)
void __maxval (DopeVectorType *result, DopeVectorType *source, _f_int *dimp, DopeVectorType *mask, int scalar, int subtype, int init_val)

Variables

static const char USMID [] = "@(#) libfi/array/maxval.c 92.0 10/08/98 14:37:14"

Define Documentation

#define INCR_RES ( )

Definition at line 124 of file maxval.c.

Referenced by __maxval().

#define INCREMENT ( )

Definition at line 61 of file maxval.c.

Referenced by __maxval(), __minval(), _PACK(), _SPREAD(), and _UNPACK().

#define LOAD_DM_MK ( )
Value:
dm = dimp;                                                      \
        mk = mask;                                                      \
        /* if last arg = NULL, is last-1 arg mask or dim? */            \
        if (mask == NULL) {                                             \
                /* last arg = NULL, is last-1 arg mask or dim? */       \
                if (dimp != NULL) {                                     \
                        if (dimp->type_lens.type == DVTYPE_LOGICAL) {   \
                                /* last-1 argument is mask. */          \
                                mk = dimp;                              \
                                dm = mask;                              \
                        }                                               \
                }                                                       \
        }                                                               \
        if (dm != NULL) {                                               \
                _f_int dmintlen;                                        \
                dmintlen = dm->type_lens.int_len >> 3;                  \
                dimenp = (_f_int *) &dimenlc;                           \
                if (dmintlen == sizeof(_f_int8)) {                      \
                        *dimenp = *(_f_int8 *) dm->base_addr.a.ptr;     \
                } else if (dmintlen == sizeof(_f_int4)) {               \
                        *dimenp = *(_f_int4 *) dm->base_addr.a.ptr;     \
                } else if (dmintlen == sizeof(_f_int2)) {               \
                        *dimenp = *(_f_int2 *) dm->base_addr.a.ptr;     \
                } else if (dmintlen == sizeof(_f_int1)) {               \
                        *dimenp = *(_f_int1 *) dm->base_addr.a.ptr;     \
                }                                                       \
        }

Definition at line 180 of file maxval.c.

Referenced by _MAXVAL0__I(), _MAXVAL0__I1(), _MAXVAL0__I2(), _MAXVAL0__I4(), _MAXVAL0__J(), _MAXVAL0__S(), _MAXVAL0__S4(), _MAXVAL__I(), _MAXVAL__I1(), _MAXVAL__I2(), _MAXVAL__I4(), _MAXVAL__J(), _MAXVAL__S(), and _MAXVAL__S4().

#define USE_INT1   5

Definition at line 50 of file maxval.c.

Referenced by _MAXVAL0__I1(), _MAXVAL0_I1(), _MAXVAL__I1(), and _MAXVAL_I1().

#define USE_INT2   4

Definition at line 49 of file maxval.c.

Referenced by __maxval(), _MAXVAL0__I2(), _MAXVAL0_I2(), _MAXVAL__I2(), and _MAXVAL_I2().

#define USE_INT4   3

Definition at line 48 of file maxval.c.

Referenced by __maxval(), _MAXVAL0__I4(), _MAXVAL0_I4(), _MAXVAL__I4(), and _MAXVAL_I4().

#define USE_INT6   2

Definition at line 47 of file maxval.c.

Referenced by __maxval(), _MAXVAL0__I(), _MAXVAL0_I(), _MAXVAL__I(), and _MAXVAL_I().

#define USE_INT8   1
#define USE_REAL16   6

Definition at line 51 of file maxval.c.

#define USE_REAL4   8

Definition at line 53 of file maxval.c.

Referenced by _MAXVAL0__S4(), _MAXVAL0_S4(), _MAXVAL__S4(), and _MAXVAL_S4().

#define USE_REAL8   7

Definition at line 52 of file maxval.c.

Referenced by __maxval(), _MAXVAL0__S(), _MAXVAL0_S(), _MAXVAL__S(), and _MAXVAL_S().


Typedef Documentation

typedef int _f_int6

Definition at line 360 of file maxval.c.


Function Documentation

void _MAXVAL__I ( DopeVectorType result,
DopeVectorType source,
DopeVectorType dimp,
DopeVectorType mask 
)

Definition at line 337 of file maxval.c.

References __maxval(), DVSUBTYPE_INT64, LOAD_DM_MK, NULL, USE_INT6, and USE_INT8.

Here is the call graph for this function:

void _MAXVAL__I1 ( DopeVectorType result,
DopeVectorType source,
DopeVectorType dimp,
DopeVectorType mask 
)

Definition at line 539 of file maxval.c.

References __maxval(), DVSUBTYPE_INT32, LOAD_DM_MK, NULL, and USE_INT1.

Here is the call graph for this function:

void _MAXVAL__I2 ( DopeVectorType result,
DopeVectorType source,
DopeVectorType dimp,
DopeVectorType mask 
)

Definition at line 500 of file maxval.c.

References __maxval(), DVSUBTYPE_INT32, LOAD_DM_MK, NULL, and USE_INT2.

Here is the call graph for this function:

void _MAXVAL__I4 ( DopeVectorType result,
DopeVectorType source,
DopeVectorType dimp,
DopeVectorType mask 
)

Definition at line 461 of file maxval.c.

References __maxval(), DVSUBTYPE_INT32, LOAD_DM_MK, NULL, and USE_INT4.

Here is the call graph for this function:

void _MAXVAL__J ( DopeVectorType result,
DopeVectorType source,
DopeVectorType dimp,
DopeVectorType mask 
)

Definition at line 242 of file maxval.c.

References __maxval(), DVSUBTYPE_INT64, LOAD_DM_MK, NULL, and USE_INT8.

Here is the call graph for this function:

void _MAXVAL__S ( DopeVectorType result,
DopeVectorType source,
DopeVectorType dimp,
DopeVectorType mask 
)

Definition at line 272 of file maxval.c.

References __maxval(), DVSUBTYPE_REAL64, LOAD_DM_MK, NULL, and USE_REAL8.

Here is the call graph for this function:

void _MAXVAL__S4 ( DopeVectorType result,
DopeVectorType source,
DopeVectorType dimp,
DopeVectorType mask 
)

Definition at line 809 of file maxval.c.

References __maxval(), DVSUBTYPE_REAL32, DVSUBTYPE_REAL64, LOAD_DM_MK, NULL, and USE_REAL4.

Here is the call graph for this function:

void _MAXVAL_I ( DopeVectorType result,
DopeVectorType source,
_f_int *  dimp,
DopeVectorType mask 
)

Definition at line 321 of file maxval.c.

References __maxval(), DVSUBTYPE_INT64, USE_INT6, and USE_INT8.

Here is the call graph for this function:

void _MAXVAL_I1 ( DopeVectorType result,
DopeVectorType source,
_f_int *  dimp,
DopeVectorType mask 
)

Definition at line 523 of file maxval.c.

References __maxval(), DVSUBTYPE_INT32, and USE_INT1.

Here is the call graph for this function:

void _MAXVAL_I2 ( DopeVectorType result,
DopeVectorType source,
_f_int *  dimp,
DopeVectorType mask 
)

Definition at line 484 of file maxval.c.

References __maxval(), DVSUBTYPE_INT32, and USE_INT2.

Here is the call graph for this function:

void _MAXVAL_I4 ( DopeVectorType result,
DopeVectorType source,
_f_int *  dimp,
DopeVectorType mask 
)

Definition at line 445 of file maxval.c.

References __maxval(), DVSUBTYPE_INT32, and USE_INT4.

Here is the call graph for this function:

void _MAXVAL_J ( DopeVectorType result,
DopeVectorType source,
_f_int *  dimp,
DopeVectorType mask 
)

Definition at line 231 of file maxval.c.

References __maxval(), DVSUBTYPE_INT64, and USE_INT8.

Here is the call graph for this function:

void _MAXVAL_S ( DopeVectorType result,
DopeVectorType source,
_f_int *  dimp,
DopeVectorType mask 
)

Definition at line 261 of file maxval.c.

References __maxval(), DVSUBTYPE_REAL64, and USE_REAL8.

Here is the call graph for this function:

void _MAXVAL_S4 ( DopeVectorType result,
DopeVectorType source,
_f_int *  dimp,
DopeVectorType mask 
)

Definition at line 793 of file maxval.c.

References __maxval(), DVSUBTYPE_REAL32, DVSUBTYPE_REAL64, and USE_REAL4.

Here is the call graph for this function:


Variable Documentation

const char USMID[] = "@(#) libfi/array/maxval.c 92.0 10/08/98 14:37:14" [static]

Definition at line 37 of file maxval.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines