OSDN Git Service

eff26d54ef90780a63dbccd8a8a68ccf243f3015
[uclinux-h8/uClibc.git] / libc / sysdeps / linux / c6x / bits / byteswap.h
1 /*
2  * Port of uClibc for TMS320C6000 DSP architecture
3  * Copyright (C) 2004 Texas Instruments Incorporated
4  * Author of TMS320C6000 port: Aurelien Jacquiot
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU Library General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or (at your
9  * option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License
14  * for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this program; if not, write to the Free Software Foundation,
18  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  *
20  */
21
22 #ifndef _ASM_BITS_BYTESWAP_H
23 #define _ASM_BITS_BYTESWAP_H 1
24
25 #if !defined _BYTESWAP_H && !defined _NETINET_IN_H
26 # error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."
27 #endif
28
29 #ifdef __GNUC__
30 #define __bswap_non_constant_32(x) __builtin_bswap32(x)
31 #endif
32
33 #include <bits/byteswap-common.h>
34
35 #endif