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 Richard Henderson <rth@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 #ifndef OMP_H 3084d9c625SLionel Sambuc #define OMP_H 1 3184d9c625SLionel Sambuc 3284d9c625SLionel Sambuc #ifndef _LIBGOMP_OMP_LOCK_DEFINED 3384d9c625SLionel Sambuc #define _LIBGOMP_OMP_LOCK_DEFINED 1 3484d9c625SLionel Sambuc /* These two structures get edited by the libgomp build process to 3584d9c625SLionel Sambuc reflect the shape of the two types. Their internals are private 3684d9c625SLionel Sambuc to the library. */ 3784d9c625SLionel Sambuc 3884d9c625SLionel Sambuc typedef struct 3984d9c625SLionel Sambuc { 4084d9c625SLionel Sambuc unsigned char _x[4] 4184d9c625SLionel Sambuc __attribute__((__aligned__(4))); 4284d9c625SLionel Sambuc } omp_lock_t; 4384d9c625SLionel Sambuc 4484d9c625SLionel Sambuc typedef struct 4584d9c625SLionel Sambuc { 4684d9c625SLionel Sambuc unsigned char _x[12] 4784d9c625SLionel Sambuc __attribute__((__aligned__(4))); 4884d9c625SLionel Sambuc } omp_nest_lock_t; 4984d9c625SLionel Sambuc #endif 5084d9c625SLionel Sambuc 5184d9c625SLionel Sambuc typedef enum omp_sched_t 5284d9c625SLionel Sambuc { 5384d9c625SLionel Sambuc omp_sched_static = 1, 5484d9c625SLionel Sambuc omp_sched_dynamic = 2, 5584d9c625SLionel Sambuc omp_sched_guided = 3, 5684d9c625SLionel Sambuc omp_sched_auto = 4 5784d9c625SLionel Sambuc } omp_sched_t; 5884d9c625SLionel Sambuc 5984d9c625SLionel Sambuc #ifdef __cplusplus 6084d9c625SLionel Sambuc extern "C" { 6184d9c625SLionel Sambuc # define __GOMP_NOTHROW throw () 6284d9c625SLionel Sambuc #else 6384d9c625SLionel Sambuc # define __GOMP_NOTHROW __attribute__((__nothrow__)) 6484d9c625SLionel Sambuc #endif 6584d9c625SLionel Sambuc 6684d9c625SLionel Sambuc extern void omp_set_num_threads (int) __GOMP_NOTHROW; 6784d9c625SLionel Sambuc extern int omp_get_num_threads (void) __GOMP_NOTHROW; 6884d9c625SLionel Sambuc extern int omp_get_max_threads (void) __GOMP_NOTHROW; 6984d9c625SLionel Sambuc extern int omp_get_thread_num (void) __GOMP_NOTHROW; 7084d9c625SLionel Sambuc extern int omp_get_num_procs (void) __GOMP_NOTHROW; 7184d9c625SLionel Sambuc 7284d9c625SLionel Sambuc extern int omp_in_parallel (void) __GOMP_NOTHROW; 7384d9c625SLionel Sambuc 7484d9c625SLionel Sambuc extern void omp_set_dynamic (int) __GOMP_NOTHROW; 7584d9c625SLionel Sambuc extern int omp_get_dynamic (void) __GOMP_NOTHROW; 7684d9c625SLionel Sambuc 7784d9c625SLionel Sambuc extern void omp_set_nested (int) __GOMP_NOTHROW; 7884d9c625SLionel Sambuc extern int omp_get_nested (void) __GOMP_NOTHROW; 7984d9c625SLionel Sambuc 8084d9c625SLionel Sambuc extern void omp_init_lock (omp_lock_t *) __GOMP_NOTHROW; 8184d9c625SLionel Sambuc extern void omp_destroy_lock (omp_lock_t *) __GOMP_NOTHROW; 8284d9c625SLionel Sambuc extern void omp_set_lock (omp_lock_t *) __GOMP_NOTHROW; 8384d9c625SLionel Sambuc extern void omp_unset_lock (omp_lock_t *) __GOMP_NOTHROW; 8484d9c625SLionel Sambuc extern int omp_test_lock (omp_lock_t *) __GOMP_NOTHROW; 8584d9c625SLionel Sambuc 8684d9c625SLionel Sambuc extern void omp_init_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 8784d9c625SLionel Sambuc extern void omp_destroy_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 8884d9c625SLionel Sambuc extern void omp_set_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 8984d9c625SLionel Sambuc extern void omp_unset_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 9084d9c625SLionel Sambuc extern int omp_test_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 9184d9c625SLionel Sambuc 9284d9c625SLionel Sambuc extern double omp_get_wtime (void) __GOMP_NOTHROW; 9384d9c625SLionel Sambuc extern double omp_get_wtick (void) __GOMP_NOTHROW; 9484d9c625SLionel Sambuc 9584d9c625SLionel Sambuc void omp_set_schedule (omp_sched_t, int) __GOMP_NOTHROW; 9684d9c625SLionel Sambuc void omp_get_schedule (omp_sched_t *, int *) __GOMP_NOTHROW; 9784d9c625SLionel Sambuc int omp_get_thread_limit (void) __GOMP_NOTHROW; 9884d9c625SLionel Sambuc void omp_set_max_active_levels (int) __GOMP_NOTHROW; 9984d9c625SLionel Sambuc int omp_get_max_active_levels (void) __GOMP_NOTHROW; 10084d9c625SLionel Sambuc int omp_get_level (void) __GOMP_NOTHROW; 10184d9c625SLionel Sambuc int omp_get_ancestor_thread_num (int) __GOMP_NOTHROW; 10284d9c625SLionel Sambuc int omp_get_team_size (int) __GOMP_NOTHROW; 10384d9c625SLionel Sambuc int omp_get_active_level (void) __GOMP_NOTHROW; 10484d9c625SLionel Sambuc 105*0a6a1f1dSLionel Sambuc int omp_in_final (void) __GOMP_NOTHROW; 106*0a6a1f1dSLionel Sambuc 10784d9c625SLionel Sambuc #ifdef __cplusplus 10884d9c625SLionel Sambuc } 10984d9c625SLionel Sambuc #endif 11084d9c625SLionel Sambuc 11184d9c625SLionel Sambuc #endif /* OMP_H */ 112