Home | History | Annotate | Line # | Download | only in mips64eb
      1 /* This file is automatically generated.  DO NOT EDIT! */
      2 /* Generated from: NetBSD: mknative-gcc,v 1.120 2025/09/16 04:18:30 mrg Exp  */
      3 /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
      4 
      5 /* Copyright (C) 2005-2024 Free Software Foundation, Inc.
      6    Contributed by Jakub Jelinek <jakub (at) 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
     41 typedef omp_lock_t *omp_lock_arg_t;
     42 # define omp_lock_arg(arg) (arg)
     43 #else
     44 typedef 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
     51 typedef omp_nest_lock_t *omp_nest_lock_arg_t;
     52 # define omp_nest_lock_arg(arg) (arg)
     53 #else
     54 typedef 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
     61 typedef omp_lock_25_t *omp_lock_25_arg_t;
     62 # define omp_lock_25_arg(arg) (arg)
     63 #else
     64 typedef 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
     71 typedef omp_nest_lock_25_t *omp_nest_lock_25_arg_t;
     72 # define omp_nest_lock_25_arg(arg) (arg)
     73 #else
     74 typedef 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 
     78 static inline void
     79 omp_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 	     || 4 != sizeof (omp_allocator_handle_t)
     88 	     || 4 != sizeof (omp_alloctrait_key_t)
     89 	     || 4 != sizeof (omp_alloctrait_value_t)
     90 	     || 4 != sizeof (omp_memspace_handle_t)
     91 	     || 8 != sizeof (omp_depend_t))
     92 	    ? -1 : 1] __attribute__ ((__unused__));
     93   char test2[(28 != sizeof (omp_lock_25_t)
     94 	     || 4 != __alignof (omp_lock_25_t)
     95 	     || 32 != sizeof (omp_nest_lock_25_t)
     96 	     || 4 != __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