COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Macros | Functions
istreamFTN.cpp File Reference
#include <covise/covise.h>
#include "istreamFTN.h"
Include dependency graph for istreamFTN.cpp:

Macros

#define SWAP(x)
 change this if unsigned/int != 32 bit More...
 
#define SWAP_N(data, len)
 

Functions

int min (int i, int k)
 

Macro Definition Documentation

#define SWAP (   x)
Value:
x = ((x & 0x000000ff) << 24) \
| ((x & 0x0000ff00) << 8) \
| ((x & 0x00ff0000) >> 8) \
| ((x & 0xff000000) >> 24)
GLint GLint GLint GLint GLint x
Definition: khronos-glext.h:6346

change this if unsigned/int != 32 bit

#define SWAP_N (   data,
  len 
)
Value:
do \
{ \
int i, num = (len) >> 2; \
unsigned int val; \
unsigned int *udata = (unsigned int *)(data); \
for (i = 0; i < num; i++) \
{ \
val = udata[i]; \
udata[i] = ((val & 0x000000ff) << 24) | ((val & 0x0000ff00) << 8) | ((val & 0x00ff0000) >> 8) | ((val & 0xff000000) >> 24); \
} \
} while (false)
GLuint GLuint num
Definition: khronos-glext.h:10593
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: khronos-glext.h:6354
GLuint GLfloat * val
Definition: khronos-glext.h:7898
GLenum GLsizei len
Definition: khronos-glext.h:7440

Function Documentation

int min ( int  i,
int  k 
)
inline