1#ifndef LITTLE_ENDIAN_INCLUDED
2#define LITTLE_ENDIAN_INCLUDED
33#ifndef MY_BYTEORDER_INCLUDED
34#error This file should never be #included directly; use my_byteorder.h.
51 memcpy(&ret, A,
sizeof(ret));
57 memcpy(&ret, A,
sizeof(ret));
63 memcpy(&ret, A,
sizeof(ret));
69 memcpy(&ret, A,
sizeof(ret));
75 memcpy(&ret, A,
sizeof(ret));
81 memcpy(&ret, A,
sizeof(ret));
92 memcpy(T, &A,
sizeof(A));
97 memcpy(&V, (
M),
sizeof(
float));
102 memcpy(V, (&
M),
sizeof(
float));
107 memcpy(&V,
M,
sizeof(
double));
112 memcpy(V, &
M,
sizeof(
double));
#define M
Definition: ctype-tis620.cc:74
static double float8get(const uchar *M)
Definition: little_endian.h:105
static void int8store(uchar *T, ulonglong A)
Definition: little_endian.h:91
static void int4store(uchar *T, uint32 A)
Definition: little_endian.h:87
static float float4get(const uchar *M)
Definition: little_endian.h:95
static void float8store(uchar *V, double M)
Definition: little_endian.h:111
static void int7store(uchar *T, ulonglong A)
Definition: little_endian.h:89
static int16 sint2korr(const uchar *A)
Definition: little_endian.h:49
static void int2store(uchar *T, uint16 A)
Definition: little_endian.h:85
static uint16 uint2korr(const uchar *A)
Definition: little_endian.h:61
static ulonglong uint8korr(const uchar *A)
Definition: little_endian.h:73
static uint32 uint4korr(const uchar *A)
Definition: little_endian.h:67
static int32 sint4korr(const uchar *A)
Definition: little_endian.h:55
static longlong sint8korr(const uchar *A)
Definition: little_endian.h:79
static void float4store(uchar *V, float M)
Definition: little_endian.h:101
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:56
unsigned char uchar
Definition: my_inttypes.h:52
long long int longlong
Definition: my_inttypes.h:55
int16_t int16
Definition: my_inttypes.h:64
int32_t int32
Definition: my_inttypes.h:66
uint16_t uint16
Definition: my_inttypes.h:65
uint32_t uint32
Definition: my_inttypes.h:67