Gems3k  3.1
GEMS3K standalone solver for geochemical equilibria
 All Classes Files Functions Variables Enumerations Enumerator
Defines | Functions
/Users/kulik/DevGEMS/trunk/standalone/GEMS3K/gdatastream.cpp File Reference

Implementation of stream binary file operations extended for endianness (e.g. More...

#include <algorithm>
#include <iostream>
#include <stdint.h>
#include "gdatastream.h"

Defines

#define __BIG_ENDIAN   4321
#define __BYTE_ORDER   1234

Functions

short SWAP (short x)
int32_t SWAP (int32_t x)
float SWAP (float x)
double SWAP (double x)

Detailed Description

Implementation of stream binary file operations extended for endianness (e.g.

for compatibility between Intel- and old Mac processors)