184d9c625SLionel Sambuc /* This file is automatically generated. DO NOT EDIT! */ 2*0a6a1f1dSLionel Sambuc /* Generated from: NetBSD: mknative-gcc,v 1.70 2013/05/05 07:11:34 skrll Exp */ 3*0a6a1f1dSLionel Sambuc /* Generated from: NetBSD: mknative.common,v 1.8 2006/05/26 19:17:21 mrg Exp */ 484d9c625SLionel Sambuc 5*0a6a1f1dSLionel Sambuc /* Copyright (C) 2005-2013 Free Software Foundation, Inc. 684d9c625SLionel Sambuc Contributed by Jakub Jelinek <jakub@redhat.com>. 784d9c625SLionel Sambuc 884d9c625SLionel Sambuc This file is part of the GNU OpenMP Library (libgomp). 984d9c625SLionel Sambuc 1084d9c625SLionel Sambuc Libgomp is free software; you can redistribute it and/or modify it 1184d9c625SLionel Sambuc under the terms of the GNU General Public License as published by 1284d9c625SLionel Sambuc the Free Software Foundation; either version 3, or (at your option) 1384d9c625SLionel Sambuc any later version. 1484d9c625SLionel Sambuc 1584d9c625SLionel Sambuc Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY 1684d9c625SLionel Sambuc WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 1784d9c625SLionel Sambuc FOR A PARTICULAR PURPOSE. See the GNU General Public License for 1884d9c625SLionel Sambuc more details. 1984d9c625SLionel Sambuc 2084d9c625SLionel Sambuc Under Section 7 of GPL version 3, you are granted additional 2184d9c625SLionel Sambuc permissions described in the GCC Runtime Library Exception, version 2284d9c625SLionel Sambuc 3.1, as published by the Free Software Foundation. 2384d9c625SLionel Sambuc 2484d9c625SLionel Sambuc You should have received a copy of the GNU General Public License and 2584d9c625SLionel Sambuc a copy of the GCC Runtime Library Exception along with this program; 2684d9c625SLionel Sambuc see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 2784d9c625SLionel Sambuc <http://www.gnu.org/licenses/>. */ 2884d9c625SLionel Sambuc 2984d9c625SLionel Sambuc /* This file contains prototypes of functions in the external ABI. 3084d9c625SLionel Sambuc This file is included by files in the testsuite. */ 3184d9c625SLionel Sambuc 3284d9c625SLionel Sambuc #ifndef LIBGOMP_F_H 3384d9c625SLionel Sambuc #define LIBGOMP_F_H 1 3484d9c625SLionel Sambuc 3584d9c625SLionel Sambuc #include "libgomp.h" 3684d9c625SLionel Sambuc 3784d9c625SLionel Sambuc #if (4 == 4) \ 3884d9c625SLionel Sambuc && (4 <= 4) 3984d9c625SLionel Sambuc # define OMP_LOCK_DIRECT 4084d9c625SLionel Sambuc typedef omp_lock_t *omp_lock_arg_t; 4184d9c625SLionel Sambuc # define omp_lock_arg(arg) (arg) 4284d9c625SLionel Sambuc #else 4384d9c625SLionel Sambuc typedef union { omp_lock_t *lock; uint64_t u; } *omp_lock_arg_t; 4484d9c625SLionel Sambuc # define omp_lock_arg(arg) ((arg)->lock) 4584d9c625SLionel Sambuc # endif 4684d9c625SLionel Sambuc 4784d9c625SLionel Sambuc #if (12 == 8) \ 4884d9c625SLionel Sambuc && (4 <= 12) 4984d9c625SLionel Sambuc # define OMP_NEST_LOCK_DIRECT 5084d9c625SLionel Sambuc typedef omp_nest_lock_t *omp_nest_lock_arg_t; 5184d9c625SLionel Sambuc # define omp_nest_lock_arg(arg) (arg) 5284d9c625SLionel Sambuc #else 5384d9c625SLionel Sambuc typedef union { omp_nest_lock_t *lock; uint64_t u; } *omp_nest_lock_arg_t; 5484d9c625SLionel Sambuc # define omp_nest_lock_arg(arg) ((arg)->lock) 5584d9c625SLionel Sambuc # endif 5684d9c625SLionel Sambuc 5784d9c625SLionel Sambuc #if (24 == 8) \ 5884d9c625SLionel Sambuc && (4 <= 24) 5984d9c625SLionel Sambuc # define OMP_LOCK_25_DIRECT 6084d9c625SLionel Sambuc typedef omp_lock_25_t *omp_lock_25_arg_t; 6184d9c625SLionel Sambuc # define omp_lock_25_arg(arg) (arg) 6284d9c625SLionel Sambuc #else 6384d9c625SLionel Sambuc typedef union { omp_lock_25_t *lock; uint64_t u; } *omp_lock_25_arg_t; 6484d9c625SLionel Sambuc # define omp_lock_25_arg(arg) ((arg)->lock) 6584d9c625SLionel Sambuc # endif 6684d9c625SLionel Sambuc 6784d9c625SLionel Sambuc #if (28 == 8) \ 6884d9c625SLionel Sambuc && (4 <= 28) 6984d9c625SLionel Sambuc # define OMP_NEST_LOCK_25_DIRECT 7084d9c625SLionel Sambuc typedef omp_nest_lock_25_t *omp_nest_lock_25_arg_t; 7184d9c625SLionel Sambuc # define omp_nest_lock_25_arg(arg) (arg) 7284d9c625SLionel Sambuc #else 7384d9c625SLionel Sambuc typedef union { omp_nest_lock_25_t *lock; uint64_t u; } *omp_nest_lock_25_arg_t; 7484d9c625SLionel Sambuc # define omp_nest_lock_25_arg(arg) ((arg)->lock) 7584d9c625SLionel Sambuc # endif 7684d9c625SLionel Sambuc 7784d9c625SLionel Sambuc static inline void omp_check_defines(void)7884d9c625SLionel Sambucomp_check_defines (void) 7984d9c625SLionel Sambuc { 8084d9c625SLionel Sambuc char test[(4 != sizeof (omp_lock_t) 8184d9c625SLionel Sambuc || 4 != __alignof (omp_lock_t) 8284d9c625SLionel Sambuc || 12 != sizeof (omp_nest_lock_t) 8384d9c625SLionel Sambuc || 4 != __alignof (omp_nest_lock_t) 8484d9c625SLionel Sambuc || 4 != sizeof (*(omp_lock_arg_t) 0) 8584d9c625SLionel Sambuc || 8 != sizeof (*(omp_nest_lock_arg_t) 0)) 8684d9c625SLionel Sambuc ? -1 : 1] __attribute__ ((__unused__)); 8784d9c625SLionel Sambuc char test2[(24 != sizeof (omp_lock_25_t) 8884d9c625SLionel Sambuc || 4 != __alignof (omp_lock_25_t) 8984d9c625SLionel Sambuc || 28 != sizeof (omp_nest_lock_25_t) 9084d9c625SLionel Sambuc || 4 != __alignof (omp_nest_lock_25_t) 9184d9c625SLionel Sambuc || 8 != sizeof (*(omp_lock_25_arg_t) 0) 9284d9c625SLionel Sambuc || 8 9384d9c625SLionel Sambuc != sizeof (*(omp_nest_lock_25_arg_t) 0)) 9484d9c625SLionel Sambuc ? -1 : 1] __attribute__ ((__unused__)); 9584d9c625SLionel Sambuc } 9684d9c625SLionel Sambuc 9784d9c625SLionel Sambuc #endif /* LIBGOMP_F_H */ 98