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