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