739
739
#define float4get(V,M) do { *((float *) &(V)) = *((float*) (M)); } while(0)
740
740
#define float8get(V,M) doubleget((V),(M))
741
#define float4store(V,M) memcpy((uchar*) V,(uchar*) (&M),sizeof(float))
742
#define floatstore(T,V) memcpy((uchar*)(T), (uchar*)(&V),sizeof(float))
743
#define floatget(V,M) memcpy((uchar*) &V,(uchar*) (M),sizeof(float))
741
#define float4store(V,M) memcpy(V, (&M), sizeof(float))
742
#define floatstore(T,V) memcpy((T), (&V), sizeof(float))
743
#define floatget(V,M) memcpy(&V, (M), sizeof(float))
744
744
#define float8store(V,M) doublestore((V),(M))
853
853
((uchar*) &def_temp)[7]=(M)[0];\
854
854
(V) = def_temp; } while(0)
856
#define float4get(V,M) memcpy((uchar*) &V,(uchar*) (M),sizeof(float))
857
#define float4store(V,M) memcpy((uchar*) V,(uchar*) (&M),sizeof(float))
856
#define float4get(V,M) memcpy(&V, (M), sizeof(float))
857
#define float4store(V,M) memcpy(V, (&M), sizeof(float))
859
859
#if defined(__FLOAT_WORD_ORDER) && (__FLOAT_WORD_ORDER == __BIG_ENDIAN)
860
860
#define doublestore(T,V) do { *(((char*)T)+0)=(char) ((uchar *) &V)[4];\
924
924
*(((char*)T)+1)=(((A) >> 16));\
925
925
*(((char*)T)+0)=(((A) >> 24)); } while(0)
927
#define floatget(V,M) memcpy((uchar*) &V,(uchar*) (M), sizeof(float))
928
#define floatstore(T,V) memcpy((uchar*) (T),(uchar*)(&V), sizeof(float))
929
#define doubleget(V,M) memcpy((uchar*) &V,(uchar*) (M), sizeof(double))
930
#define doublestore(T,V) memcpy((uchar*) (T),(uchar*) &V, sizeof(double))
931
#define int64_tget(V,M) memcpy((uchar*) &V,(uchar*) (M), sizeof(uint64_t))
932
#define int64_tstore(T,V) memcpy((uchar*) (T),(uchar*) &V, sizeof(uint64_t))
927
#define floatget(V,M) memcpy(&V, (M), sizeof(float))
928
#define floatstore(T, V) memcpy((T), (&V), sizeof(float))
929
#define doubleget(V, M) memcpy(&V, (M), sizeof(double))
930
#define doublestore(T, V) memcpy((T), &V, sizeof(double))
931
#define int64_tget(V, M) memcpy(&V, (M), sizeof(uint64_t))
932
#define int64_tstore(T, V) memcpy((T), &V, sizeof(uint64_t))
940
940
#define shortstore(T,V) int2store(T,V)
941
941
#define longstore(T,V) int4store(T,V)
942
942
#ifndef floatstore
943
#define floatstore(T,V) memcpy((uchar*) (T),(uchar*) (&V),sizeof(float))
944
#define floatget(V,M) memcpy((uchar*) &V, (uchar*) (M), sizeof(float))
943
#define floatstore(T,V) memcpy((T), (&V), sizeof(float))
944
#define floatget(V,M) memcpy(&V, (M), sizeof(float))
946
946
#ifndef doubleget
947
#define doubleget(V,M) memcpy((uchar*) &V,(uchar*) (M),sizeof(double))
948
#define doublestore(T,V) memcpy((uchar*) (T),(uchar*) &V,sizeof(double))
947
#define doubleget(V, M) memcpy(&V, (M), sizeof(double))
948
#define doublestore(T,V) memcpy((T), &V, sizeof(double))
949
949
#endif /* doubleget */
950
#define int64_tget(V,M) memcpy((uchar*) &V,(uchar*) (M),sizeof(uint64_t))
951
#define int64_tstore(T,V) memcpy((uchar*) (T),(uchar*) &V,sizeof(uint64_t))
950
#define int64_tget(V,M) memcpy(&V, (M), sizeof(uint64_t))
951
#define int64_tstore(T,V) memcpy((T), &V, sizeof(uint64_t))
953
953
#endif /* WORDS_BIGENDIAN */