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