diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1997-07-02 18:16:15 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1997-07-02 18:16:15 +0000 |
commit | b149e67a887edbe66c5159dcc09485862ff3cf55 (patch) | |
tree | 5be8990215f73919b29c461d86726e75001e7f07 /byterun/reverse.h | |
parent | f9ca4fbbeb38d1c1979300f68a9e37b409eb4c7e (diff) |
Nouveau module Marshal dans stdlib
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1633 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/reverse.h')
-rw-r--r-- | byterun/reverse.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/byterun/reverse.h b/byterun/reverse.h index 124b90888..7d112a124 100644 --- a/byterun/reverse.h +++ b/byterun/reverse.h @@ -11,21 +11,11 @@ /* $Id$ */ -/* Swap byte-order in 16-bit, 32-bit and 64-bit words */ +/* Swap byte-order in 32-bit integers and in words */ #ifndef _reverse_ #define _reverse_ - -#define Reverse_short(s) { \ - char * _p; \ - int _a; \ - _p = (char *) (s); \ - _a = _p[0]; \ - _p[0] = _p[1]; \ - _p[1] = _a; \ -} - #define Reverse_int32(w) { \ char * _p; \ int _a; \ @@ -56,12 +46,7 @@ _p[4] = _a; \ } -#ifdef ARCH_SIXTYFOUR -#define Reverse_word Reverse_int64 -#else -#define Reverse_word Reverse_int32 -#endif - #define Reverse_double Reverse_int64 + #endif /* _reverse_ */ |