2 terminatorX - realtime audio scratching software
3 Copyright (C) 1999-2016 Alexander König
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 Description: header to tX_endian.c
28 # ifdef WORDS_BIGENDIAN
29 # define BIG_ENDIAN_MACHINE 1
31 # undef BIG_ENDIAN_MACHINE
35 #ifdef WORDS_BIGENDIAN
36 # include "tX_types.h"
38 #define swapbuffer(b, s) swab((void *) b, (void *) b, (ssize_t) s<<1)
40 static inline void swap32_inline(int32_t *val) {
42 int8_t *p=(int8_t *) val;
55 # endif /* __cplusplus */
57 extern void swap16(int16_t * val);
58 extern void swap32(int32_t * val);
62 # endif /* __cplusplus */
64 #endif /* WORDS_BIGENDIAN */
66 #endif /* _H_TX_ENDIAN_ */