1 |
32 |
redbear |
#ifndef __ALT_TYPES_H__
|
2 |
|
|
#define __ALT_TYPES_H__
|
3 |
|
|
|
4 |
|
|
/*
|
5 |
|
|
* Copyright Altera Corporation (C) 2012-2014. All rights reserved
|
6 |
|
|
*
|
7 |
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
8 |
|
|
*
|
9 |
|
|
* Redistribution and use in source and binary forms, with or without
|
10 |
|
|
* modification, are permitted provided that the following conditions are met:
|
11 |
|
|
* * Redistributions of source code must retain the above copyright
|
12 |
|
|
* notice, this list of conditions and the following disclaimer.
|
13 |
|
|
* * Redistributions in binary form must reproduce the above copyright
|
14 |
|
|
* notice, this list of conditions and the following disclaimer in the
|
15 |
|
|
* documentation and/or other materials provided with the distribution.
|
16 |
|
|
* * Neither the name of Altera Corporation nor the
|
17 |
|
|
* names of its contributors may be used to endorse or promote products
|
18 |
|
|
* derived from this software without specific prior written permission.
|
19 |
|
|
*
|
20 |
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
21 |
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
22 |
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
23 |
|
|
* DISCLAIMED. IN NO EVENT SHALL ALTERA CORPORATION BE LIABLE FOR ANY
|
24 |
|
|
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
25 |
|
|
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
26 |
|
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
27 |
|
|
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
28 |
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
29 |
|
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
30 |
|
|
*/
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
/*
|
34 |
|
|
* Don't declare these typedefs if this file is included by assembly source.
|
35 |
|
|
*/
|
36 |
|
|
#ifndef ALT_ASM_SRC
|
37 |
|
|
typedef signed char alt_8;
|
38 |
|
|
typedef unsigned char alt_u8;
|
39 |
|
|
typedef signed short alt_16;
|
40 |
|
|
typedef unsigned short alt_u16;
|
41 |
|
|
typedef signed long alt_32;
|
42 |
|
|
typedef unsigned long alt_u32;
|
43 |
|
|
typedef long long alt_64;
|
44 |
|
|
typedef unsigned long long alt_u64;
|
45 |
|
|
#endif
|
46 |
|
|
|
47 |
|
|
#define ALT_INLINE __inline__
|
48 |
|
|
#define ALT_ALWAYS_INLINE __attribute__ ((always_inline))
|
49 |
|
|
#define ALT_WEAK __attribute__((weak))
|
50 |
|
|
|
51 |
|
|
#endif /* __ALT_TYPES_H__ */
|