2 * Copyright (C) 1995 Advanced RISC Machines Limited. All rights reserved.
4 * This software may be freely used, copied, modified, and distributed
5 * provided that the above copyright notice is preserved in all copies of the
10 Title: Code to support byte-sex independence
11 Copyright: (C) 1991, Advanced RISC Machines Ltd., Cambridge, England.
18 #ifndef angel_bytesex_h
19 #define angel_bytesex_h
23 void bytesex_reverse(int yes_or_no
);
25 * Turn sex-reversal on or off - 0 means off, non-0 means on.
28 int bytesex_reversing(void);
30 * Return non-0 if reversing the byte sex, else 0.
33 int32
bytesex_hostval(int32 v
);
35 * Return v or byte-reversed v, according to whether sex-reversval
39 int32
bytesex_hostval_16(int32 v
);
40 /* Return v or byte-reversed v for a 16 bit value */
This page took 0.029599 seconds and 4 git commands to generate.