Xenomai  3.0.8
arith.h
1 /*
2  * Generic arithmetic/conversion routines.
3  * Copyright © 2005 Stelian Pop.
4  * Copyright © 2005 Gilles Chanteperdrix.
5  *
6  * Xenomai is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
9  * USA; either version 2 of the License, or (at your option) any later
10  * version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20  */
21 #ifndef _COBALT_KERNEL_ARITH_H
22 #define _COBALT_KERNEL_ARITH_H
23 
24 #include <asm/byteorder.h>
25 #include <asm/div64.h>
26 
27 #ifdef __BIG_ENDIAN
28 #define endianstruct { unsigned int _h; unsigned int _l; }
29 #else /* __LITTLE_ENDIAN */
30 #define endianstruct { unsigned int _l; unsigned int _h; }
31 #endif
32 
33 #include <asm/xenomai/uapi/arith.h>
34 
35 #endif /* _COBALT_KERNEL_ARITH_H */