source: CIVL/include/headers/gnuc.h@ 1aaefd4

main test-branch
Last change on this file since 1aaefd4 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#ifndef _GNU_C_
2#define _GNU_C_
3
4/**************************** macros *****************************/
5#define __attribute__(X)
6#define __const const
7#define __inline inline
8#define __inline__ inline
9#define __restrict restrict
10#define __thread _Thread_local
11#define __extension__
12#define __asm__(X)
13#define __signed__ signed
14#define __volatile volatile
15#define __typeof__ typeof
16#define __PRETTY_FUNCTION__ (void*)0
17#define alloca(size) __builtin_alloca (size)
18
19// Common pre-defined macros;
20// see https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
21
22#define __SIZE_TYPE__ size_t
23
24
25/**************************** types *****************************/
26typedef struct {int id;} __builtin_va_list;
27typedef unsigned long int size_t;
28
29/**************************** functions *****************************/
30static inline unsigned int __builtin_bswap32 (unsigned int __bsx);
31static inline unsigned long int __builtin_bswap64 (unsigned long int __bsx__bsx);
32double __builtin_huge_val(void);
33float __builtin_huge_valf(void);
34long double __builtin_huge_vall(void);
35void* __builtin_alloca(size_t);
36size_t __builtin_strlen(const char *str);
37float __builtin_inff (void);
38float __builtin_nanf (const char *str);
39int __builtin_constant_p(int);
40#endif
Note: See TracBrowser for help on using the repository browser.