33#ifndef MY_BYTEORDER_INCLUDED
34#error This file should never be #included directly; use my_byteorder.h.
47 (((
int32)(A[2]) << 16)) + (((
int32)(A[3]) << 24)));
72 const uint def_temp = A;
73 *(T) = (
uchar)(def_temp);
74 *(T + 1) = (
uchar)(def_temp >> 8);
79 *(T + 1) = (
uchar)(A >> 8);
80 *(T + 2) = (
uchar)(A >> 16);
81 *(T + 3) = (
uchar)(A >> 24);
86 *(T + 1) = (
uchar)(A >> 8);
87 *(T + 2) = (
uchar)(A >> 16);
88 *(T + 3) = (
uchar)(A >> 24);
89 *(T + 4) = (
uchar)(A >> 32);
90 *(T + 5) = (
uchar)(A >> 40);
91 *(T + 6) = (
uchar)(A >> 48);
95 const uint def_temp = (uint)A, def_temp2 = (uint)(A >> 32);
104 *(T) = ((
uchar *)&A)[3];
105 *((T) + 1) = (char)((
uchar *)&A)[2];
106 *((T) + 2) = (char)((
uchar *)&A)[1];
107 *((T) + 3) = (char)((
uchar *)&A)[0];
112 ((
uchar *)&def_temp)[0] = (
M)[3];
113 ((
uchar *)&def_temp)[1] = (
M)[2];
114 ((
uchar *)&def_temp)[2] = (
M)[1];
115 ((
uchar *)&def_temp)[3] = (
M)[0];
120 *(T) = ((
uchar *)&V)[7];
121 *((T) + 1) = (char)((
uchar *)&V)[6];
122 *((T) + 2) = (char)((
uchar *)&V)[5];
123 *((T) + 3) = (char)((
uchar *)&V)[4];
124 *((T) + 4) = (char)((
uchar *)&V)[3];
125 *((T) + 5) = (char)((
uchar *)&V)[2];
126 *((T) + 6) = (char)((
uchar *)&V)[1];
127 *((T) + 7) = (char)((
uchar *)&V)[0];
132 ((
uchar *)&def_temp)[0] = (
M)[7];
133 ((
uchar *)&def_temp)[1] = (
M)[6];
134 ((
uchar *)&def_temp)[2] = (
M)[5];
135 ((
uchar *)&def_temp)[3] = (
M)[4];
136 ((
uchar *)&def_temp)[4] = (
M)[3];
137 ((
uchar *)&def_temp)[5] = (
M)[2];
138 ((
uchar *)&def_temp)[6] = (
M)[1];
139 ((
uchar *)&def_temp)[7] = (
M)[0];
static double float8get(const uchar *M)
Definition: big_endian.h:130
static void int8store(uchar *T, ulonglong A)
Definition: big_endian.h:94
static void int4store(uchar *T, uint32 A)
Definition: big_endian.h:77
static void float8store(uchar *T, double V)
Definition: big_endian.h:119
static float float4get(const uchar *M)
Definition: big_endian.h:110
static void float4store(uchar *T, float A)
Definition: big_endian.h:103
static void int7store(uchar *T, ulonglong A)
Definition: big_endian.h:84
static int16 sint2korr(const uchar *A)
Definition: big_endian.h:41
static void int2store(uchar *T, uint16 A)
Definition: big_endian.h:71
static uint16 uint2korr(const uchar *A)
Definition: big_endian.h:50
static ulonglong uint8korr(const uchar *A)
Definition: big_endian.h:59
static uint32 uint4korr(const uchar *A)
Definition: big_endian.h:54
static int32 sint4korr(const uchar *A)
Definition: big_endian.h:45
static longlong sint8korr(const uchar *A)
Definition: big_endian.h:67
#define M
Definition: ctype-tis620.cc:73
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