xref: /minix3/external/gpl3/gcc/lib/libgomp/arch/or1k/libgomp_f.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc /* This file is automatically generated.  DO NOT EDIT! */
2*0a6a1f1dSLionel Sambuc /* Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp  */
3*0a6a1f1dSLionel Sambuc /* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc /* Copyright (C) 2005-2013 Free Software Foundation, Inc.
6*0a6a1f1dSLionel Sambuc    Contributed by Jakub Jelinek <jakub@redhat.com>.
7*0a6a1f1dSLionel Sambuc 
8*0a6a1f1dSLionel Sambuc    This file is part of the GNU OpenMP Library (libgomp).
9*0a6a1f1dSLionel Sambuc 
10*0a6a1f1dSLionel Sambuc    Libgomp is free software; you can redistribute it and/or modify it
11*0a6a1f1dSLionel Sambuc    under the terms of the GNU General Public License as published by
12*0a6a1f1dSLionel Sambuc    the Free Software Foundation; either version 3, or (at your option)
13*0a6a1f1dSLionel Sambuc    any later version.
14*0a6a1f1dSLionel Sambuc 
15*0a6a1f1dSLionel Sambuc    Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
16*0a6a1f1dSLionel Sambuc    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17*0a6a1f1dSLionel Sambuc    FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
18*0a6a1f1dSLionel Sambuc    more details.
19*0a6a1f1dSLionel Sambuc 
20*0a6a1f1dSLionel Sambuc    Under Section 7 of GPL version 3, you are granted additional
21*0a6a1f1dSLionel Sambuc    permissions described in the GCC Runtime Library Exception, version
22*0a6a1f1dSLionel Sambuc    3.1, as published by the Free Software Foundation.
23*0a6a1f1dSLionel Sambuc 
24*0a6a1f1dSLionel Sambuc    You should have received a copy of the GNU General Public License and
25*0a6a1f1dSLionel Sambuc    a copy of the GCC Runtime Library Exception along with this program;
26*0a6a1f1dSLionel Sambuc    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
27*0a6a1f1dSLionel Sambuc    <http://www.gnu.org/licenses/>.  */
28*0a6a1f1dSLionel Sambuc 
29*0a6a1f1dSLionel Sambuc /* This file contains prototypes of functions in the external ABI.
30*0a6a1f1dSLionel Sambuc    This file is included by files in the testsuite.  */
31*0a6a1f1dSLionel Sambuc 
32*0a6a1f1dSLionel Sambuc #ifndef LIBGOMP_F_H
33*0a6a1f1dSLionel Sambuc #define LIBGOMP_F_H 1
34*0a6a1f1dSLionel Sambuc 
35*0a6a1f1dSLionel Sambuc #include "libgomp.h"
36*0a6a1f1dSLionel Sambuc 
37*0a6a1f1dSLionel Sambuc #if (4 == 4) \
38*0a6a1f1dSLionel Sambuc     && (4 <= 4)
39*0a6a1f1dSLionel Sambuc # define OMP_LOCK_DIRECT
40*0a6a1f1dSLionel Sambuc typedef omp_lock_t *omp_lock_arg_t;
41*0a6a1f1dSLionel Sambuc # define omp_lock_arg(arg) (arg)
42*0a6a1f1dSLionel Sambuc #else
43*0a6a1f1dSLionel Sambuc typedef union { omp_lock_t *lock; uint64_t u; } *omp_lock_arg_t;
44*0a6a1f1dSLionel Sambuc # define omp_lock_arg(arg) ((arg)->lock)
45*0a6a1f1dSLionel Sambuc # endif
46*0a6a1f1dSLionel Sambuc 
47*0a6a1f1dSLionel Sambuc #if (12 == 8) \
48*0a6a1f1dSLionel Sambuc     && (4 <= 12)
49*0a6a1f1dSLionel Sambuc # define OMP_NEST_LOCK_DIRECT
50*0a6a1f1dSLionel Sambuc typedef omp_nest_lock_t *omp_nest_lock_arg_t;
51*0a6a1f1dSLionel Sambuc # define omp_nest_lock_arg(arg) (arg)
52*0a6a1f1dSLionel Sambuc #else
53*0a6a1f1dSLionel Sambuc typedef union { omp_nest_lock_t *lock; uint64_t u; } *omp_nest_lock_arg_t;
54*0a6a1f1dSLionel Sambuc # define omp_nest_lock_arg(arg) ((arg)->lock)
55*0a6a1f1dSLionel Sambuc # endif
56*0a6a1f1dSLionel Sambuc 
57*0a6a1f1dSLionel Sambuc #if (28 == 8) \
58*0a6a1f1dSLionel Sambuc     && (4 <= 28)
59*0a6a1f1dSLionel Sambuc # define OMP_LOCK_25_DIRECT
60*0a6a1f1dSLionel Sambuc typedef omp_lock_25_t *omp_lock_25_arg_t;
61*0a6a1f1dSLionel Sambuc # define omp_lock_25_arg(arg) (arg)
62*0a6a1f1dSLionel Sambuc #else
63*0a6a1f1dSLionel Sambuc typedef union { omp_lock_25_t *lock; uint64_t u; } *omp_lock_25_arg_t;
64*0a6a1f1dSLionel Sambuc # define omp_lock_25_arg(arg) ((arg)->lock)
65*0a6a1f1dSLionel Sambuc # endif
66*0a6a1f1dSLionel Sambuc 
67*0a6a1f1dSLionel Sambuc #if (32 == 8) \
68*0a6a1f1dSLionel Sambuc     && (4 <= 32)
69*0a6a1f1dSLionel Sambuc # define OMP_NEST_LOCK_25_DIRECT
70*0a6a1f1dSLionel Sambuc typedef omp_nest_lock_25_t *omp_nest_lock_25_arg_t;
71*0a6a1f1dSLionel Sambuc # define omp_nest_lock_25_arg(arg) (arg)
72*0a6a1f1dSLionel Sambuc #else
73*0a6a1f1dSLionel Sambuc typedef union { omp_nest_lock_25_t *lock; uint64_t u; } *omp_nest_lock_25_arg_t;
74*0a6a1f1dSLionel Sambuc # define omp_nest_lock_25_arg(arg) ((arg)->lock)
75*0a6a1f1dSLionel Sambuc # endif
76*0a6a1f1dSLionel Sambuc 
77*0a6a1f1dSLionel Sambuc static inline void
omp_check_defines(void)78*0a6a1f1dSLionel Sambuc omp_check_defines (void)
79*0a6a1f1dSLionel Sambuc {
80*0a6a1f1dSLionel Sambuc   char test[(4 != sizeof (omp_lock_t)
81*0a6a1f1dSLionel Sambuc 	     || 4 != __alignof (omp_lock_t)
82*0a6a1f1dSLionel Sambuc 	     || 12 != sizeof (omp_nest_lock_t)
83*0a6a1f1dSLionel Sambuc 	     || 4 != __alignof (omp_nest_lock_t)
84*0a6a1f1dSLionel Sambuc 	     || 4 != sizeof (*(omp_lock_arg_t) 0)
85*0a6a1f1dSLionel Sambuc 	     || 8 != sizeof (*(omp_nest_lock_arg_t) 0))
86*0a6a1f1dSLionel Sambuc 	    ? -1 : 1] __attribute__ ((__unused__));
87*0a6a1f1dSLionel Sambuc   char test2[(28 != sizeof (omp_lock_25_t)
88*0a6a1f1dSLionel Sambuc 	     || 4 != __alignof (omp_lock_25_t)
89*0a6a1f1dSLionel Sambuc 	     || 32 != sizeof (omp_nest_lock_25_t)
90*0a6a1f1dSLionel Sambuc 	     || 4 != __alignof (omp_nest_lock_25_t)
91*0a6a1f1dSLionel Sambuc 	     || 8 != sizeof (*(omp_lock_25_arg_t) 0)
92*0a6a1f1dSLionel Sambuc 	     || 8
93*0a6a1f1dSLionel Sambuc 		!= sizeof (*(omp_nest_lock_25_arg_t) 0))
94*0a6a1f1dSLionel Sambuc 	    ? -1 : 1] __attribute__ ((__unused__));
95*0a6a1f1dSLionel Sambuc }
96*0a6a1f1dSLionel Sambuc 
97*0a6a1f1dSLionel Sambuc #endif /* LIBGOMP_F_H */
98