Defines

cpl_port.h File Reference

#include "cpl_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include <time.h>
#include <errno.h>
#include <locale.h>
#include <strings.h>

Go to the source code of this file.

Defines

#define CPL_LSBINT16PTR(x)   ((*(GByte*)(x)) | ((*(GByte*)((x)+1)) << 8))
#define CPL_LSBINT32PTR(x)
#define CPL_LSBSINT16PTR(x)   ((GInt16) CPL_LSBINT16PTR(x))
#define CPL_LSBUINT16PTR(x)   ((GUInt16)CPL_LSBINT16PTR(x))
#define CPL_LSBSINT32PTR(x)   ((GInt32) CPL_LSBINT32PTR(x))
#define CPL_LSBUINT32PTR(x)   ((GUInt32)CPL_LSBINT32PTR(x))

Detailed Description

Core portability definitions for CPL.


Define Documentation

#define CPL_LSBINT16PTR (   x  )     ((*(GByte*)(x)) | ((*(GByte*)((x)+1)) << 8))

Return a Int16 from the 2 bytes ordered in LSB order at address x

#define CPL_LSBINT32PTR (   x  ) 
Value:
((*(GByte*)(x)) | ((*(GByte*)((x)+1)) << 8) | \
                              ((*(GByte*)((x)+2)) << 16) | ((*(GByte*)((x)+3)) << 24))

Return a Int32 from the 4 bytes ordered in LSB order at address x

#define CPL_LSBSINT16PTR (   x  )     ((GInt16) CPL_LSBINT16PTR(x))

Return a signed Int16 from the 2 bytes ordered in LSB order at address x

#define CPL_LSBSINT32PTR (   x  )     ((GInt32) CPL_LSBINT32PTR(x))

Return a signed Int32 from the 4 bytes ordered in LSB order at address x

#define CPL_LSBUINT16PTR (   x  )     ((GUInt16)CPL_LSBINT16PTR(x))

Return a unsigned Int16 from the 2 bytes ordered in LSB order at address x

#define CPL_LSBUINT32PTR (   x  )     ((GUInt32)CPL_LSBINT32PTR(x))

Return a unsigned Int32 from the 4 bytes ordered in LSB order at address x


Generated for GDAL by doxygen 1.7.1.