Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
scatgath.c File Reference
#include <memory.h>
#include <cray/nassert.h>
Include dependency graph for scatgath.c:

Go to the source code of this file.

Defines

#define GET_PTR(ptr)   ( (long long) ptr )
#define PTR_ALIGNED(ptr, type)   ( ( GET_PTR(ptr) & (sizeof(type) - 1) ) == 0)
#define SIZE_ALIGNED(len, type)   ( ( len & (sizeof(type) - 1) ) == 0)
#define LARGE   long
#define MEDIUM   int
#define SMALL   short

Functions

void _gather_data (void *buf, long items, long inc, int len, void *ptr)
void _scatter_data (void *ptr, long items, long inc, int len, void *buf)

Define Documentation

#define GET_PTR (   ptr)    ( (long long) ptr )

Definition at line 50 of file scatgath.c.

#define LARGE   long

Definition at line 85 of file scatgath.c.

Referenced by _gather_data(), and _scatter_data().

#define MEDIUM   int

Definition at line 89 of file scatgath.c.

Referenced by _gather_data(), and _scatter_data().

#define PTR_ALIGNED (   ptr,
  type 
)    ( ( GET_PTR(ptr) & (sizeof(type) - 1) ) == 0)

Definition at line 53 of file scatgath.c.

Referenced by _gather_data(), and _scatter_data().

#define SIZE_ALIGNED (   len,
  type 
)    ( ( len & (sizeof(type) - 1) ) == 0)

Definition at line 55 of file scatgath.c.

Referenced by _gather_data(), and _scatter_data().

#define SMALL   short

Definition at line 90 of file scatgath.c.

Referenced by _gather_data(), and _scatter_data().


Function Documentation

void _gather_data ( void *  buf,
long  items,
long  inc,
int  len,
void *  ptr 
)

Definition at line 112 of file scatgath.c.

References LARGE, len, MEDIUM, PTR_ALIGNED, SIZE_ALIGNED, SMALL, and sp.

Referenced by _iochunk().

void _scatter_data ( void *  ptr,
long  items,
long  inc,
int  len,
void *  buf 
)

Definition at line 289 of file scatgath.c.

References LARGE, len, MEDIUM, PTR_ALIGNED, SIZE_ALIGNED, SMALL, and sp.

Referenced by _iochunk().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines