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

Go to the source code of this file.

Defines

#define INCR_PAD()
#define ADD_INDEX(indx, off, rank)
#define INCR_SRC()
#define INCR_RES()
#define VALUE(size, ptr)   ((int) (*((_f_int *) (ptr))))

Functions

void _RESHAPE (DopeVectorType *result, DopeVectorType *source, DopeVectorType *shape, DopeVectorType *pad, DopeVectorType *order)

Variables

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

Define Documentation

#define ADD_INDEX (   indx,
  off,
  rank 
)
Value:
if (rank == 1) {                                                \
            indx = off[0];                                              \
        } else if (rank == 2) {                                         \
            indx = off[0] + off[1];                                     \
        } else if (rank == 3) {                                         \
            indx = off[0] + off[1] + off[2];                            \
        } else if (rank == 4) {                                         \
            indx = off[0] + off[1] + off[2] + off[3];                   \
        } else if (rank == 5) {                                         \
            indx = off[0] + off[1] + off[2] + off[3] + off[4];          \
        } else if (rank == 6) {                                         \
            indx = off[0] + off[1] + off[2] +                           \
                   off[3] + off[4] + off[5];                            \
        } else {                                                        \
            indx = off[0] + off[1] + off[2] + off[3] +                  \
                   off[4] + off[5] + off[6];                            \
        }

Definition at line 106 of file reshape.c.

Referenced by _RESHAPE().

#define INCR_PAD ( )

Definition at line 51 of file reshape.c.

Referenced by _RESHAPE().

#define INCR_RES ( )

Definition at line 182 of file reshape.c.

Referenced by _RESHAPE().

#define INCR_SRC ( )

Definition at line 130 of file reshape.c.

Referenced by _RESHAPE().

#define VALUE (   size,
  ptr 
)    ((int) (*((_f_int *) (ptr))))

Definition at line 233 of file reshape.c.

Referenced by _RESHAPE().


Function Documentation


Variable Documentation

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

Definition at line 37 of file reshape.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines