libgomp_f.h revision 1.6
1/* This file is automatically generated. DO NOT EDIT! */ 2/* Generated from: NetBSD: mknative-gcc,v 1.117 2023/07/31 01:48:37 mrg Exp */ 3/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */ 4 5/* Copyright (C) 2005-2022 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 (8 == 8) \ 39 && (8 <= 8) 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 (24 == 8) \ 49 && (8 <= 24) 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 (40 == 8) \ 59 && (8 <= 40) 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 (48 == 8) \ 69 && (8 <= 48) 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[(8 != sizeof (omp_lock_t) 82 || 8 != __alignof (omp_lock_t) 83 || 24 != sizeof (omp_nest_lock_t) 84 || 8 != __alignof (omp_nest_lock_t) 85 || 8 != sizeof (*(omp_lock_arg_t) 0) 86 || 8 != sizeof (*(omp_nest_lock_arg_t) 0) 87 || 8 != sizeof (omp_allocator_handle_t) 88 || 4 != sizeof (omp_alloctrait_key_t) 89 || 8 != sizeof (omp_alloctrait_value_t) 90 || 8 != sizeof (omp_memspace_handle_t) 91 || 16 != sizeof (omp_depend_t)) 92 ? -1 : 1] __attribute__ ((__unused__)); 93 char test2[(40 != sizeof (omp_lock_25_t) 94 || 8 != __alignof (omp_lock_25_t) 95 || 48 != sizeof (omp_nest_lock_25_t) 96 || 8 != __alignof (omp_nest_lock_25_t) 97 || 8 != sizeof (*(omp_lock_25_arg_t) 0) 98 || 8 99 != sizeof (*(omp_nest_lock_25_arg_t) 0)) 100 ? -1 : 1] __attribute__ ((__unused__)); 101} 102 103#endif /* LIBGOMP_F_H */ 104