1*84d9c625SLionel Sambuc /* This file is automatically generated. DO NOT EDIT! */ 2*84d9c625SLionel Sambuc /* Generated from: NetBSD: mknative-gcc,v 1.68 2012/09/25 06:55:10 skrll Exp */ 3*84d9c625SLionel Sambuc /* Generated from: NetBSD: mknative.common,v 1.9 2007/02/05 18:26:01 apb Exp */ 4*84d9c625SLionel Sambuc 5*84d9c625SLionel Sambuc /* Copyright (C) 2005, 2007, 2008, 2009 Free Software Foundation, Inc. 6*84d9c625SLionel Sambuc Contributed by Richard Henderson <rth@redhat.com>. 7*84d9c625SLionel Sambuc 8*84d9c625SLionel Sambuc This file is part of the GNU OpenMP Library (libgomp). 9*84d9c625SLionel Sambuc 10*84d9c625SLionel Sambuc Libgomp is free software; you can redistribute it and/or modify it 11*84d9c625SLionel Sambuc under the terms of the GNU General Public License as published by 12*84d9c625SLionel Sambuc the Free Software Foundation; either version 3, or (at your option) 13*84d9c625SLionel Sambuc any later version. 14*84d9c625SLionel Sambuc 15*84d9c625SLionel Sambuc Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY 16*84d9c625SLionel Sambuc WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 17*84d9c625SLionel Sambuc FOR A PARTICULAR PURPOSE. See the GNU General Public License for 18*84d9c625SLionel Sambuc more details. 19*84d9c625SLionel Sambuc 20*84d9c625SLionel Sambuc Under Section 7 of GPL version 3, you are granted additional 21*84d9c625SLionel Sambuc permissions described in the GCC Runtime Library Exception, version 22*84d9c625SLionel Sambuc 3.1, as published by the Free Software Foundation. 23*84d9c625SLionel Sambuc 24*84d9c625SLionel Sambuc You should have received a copy of the GNU General Public License and 25*84d9c625SLionel Sambuc a copy of the GCC Runtime Library Exception along with this program; 26*84d9c625SLionel Sambuc see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 27*84d9c625SLionel Sambuc <http://www.gnu.org/licenses/>. */ 28*84d9c625SLionel Sambuc 29*84d9c625SLionel Sambuc #ifndef OMP_H 30*84d9c625SLionel Sambuc #define OMP_H 1 31*84d9c625SLionel Sambuc 32*84d9c625SLionel Sambuc #ifndef _LIBGOMP_OMP_LOCK_DEFINED 33*84d9c625SLionel Sambuc #define _LIBGOMP_OMP_LOCK_DEFINED 1 34*84d9c625SLionel Sambuc /* These two structures get edited by the libgomp build process to 35*84d9c625SLionel Sambuc reflect the shape of the two types. Their internals are private 36*84d9c625SLionel Sambuc to the library. */ 37*84d9c625SLionel Sambuc 38*84d9c625SLionel Sambuc typedef struct 39*84d9c625SLionel Sambuc { 40*84d9c625SLionel Sambuc unsigned char _x[4] 41*84d9c625SLionel Sambuc __attribute__((__aligned__(4))); 42*84d9c625SLionel Sambuc } omp_lock_t; 43*84d9c625SLionel Sambuc 44*84d9c625SLionel Sambuc typedef struct 45*84d9c625SLionel Sambuc { 46*84d9c625SLionel Sambuc unsigned char _x[12] 47*84d9c625SLionel Sambuc __attribute__((__aligned__(4))); 48*84d9c625SLionel Sambuc } omp_nest_lock_t; 49*84d9c625SLionel Sambuc #endif 50*84d9c625SLionel Sambuc 51*84d9c625SLionel Sambuc typedef enum omp_sched_t 52*84d9c625SLionel Sambuc { 53*84d9c625SLionel Sambuc omp_sched_static = 1, 54*84d9c625SLionel Sambuc omp_sched_dynamic = 2, 55*84d9c625SLionel Sambuc omp_sched_guided = 3, 56*84d9c625SLionel Sambuc omp_sched_auto = 4 57*84d9c625SLionel Sambuc } omp_sched_t; 58*84d9c625SLionel Sambuc 59*84d9c625SLionel Sambuc #ifdef __cplusplus 60*84d9c625SLionel Sambuc extern "C" { 61*84d9c625SLionel Sambuc # define __GOMP_NOTHROW throw () 62*84d9c625SLionel Sambuc #else 63*84d9c625SLionel Sambuc # define __GOMP_NOTHROW __attribute__((__nothrow__)) 64*84d9c625SLionel Sambuc #endif 65*84d9c625SLionel Sambuc 66*84d9c625SLionel Sambuc extern void omp_set_num_threads (int) __GOMP_NOTHROW; 67*84d9c625SLionel Sambuc extern int omp_get_num_threads (void) __GOMP_NOTHROW; 68*84d9c625SLionel Sambuc extern int omp_get_max_threads (void) __GOMP_NOTHROW; 69*84d9c625SLionel Sambuc extern int omp_get_thread_num (void) __GOMP_NOTHROW; 70*84d9c625SLionel Sambuc extern int omp_get_num_procs (void) __GOMP_NOTHROW; 71*84d9c625SLionel Sambuc 72*84d9c625SLionel Sambuc extern int omp_in_parallel (void) __GOMP_NOTHROW; 73*84d9c625SLionel Sambuc 74*84d9c625SLionel Sambuc extern void omp_set_dynamic (int) __GOMP_NOTHROW; 75*84d9c625SLionel Sambuc extern int omp_get_dynamic (void) __GOMP_NOTHROW; 76*84d9c625SLionel Sambuc 77*84d9c625SLionel Sambuc extern void omp_set_nested (int) __GOMP_NOTHROW; 78*84d9c625SLionel Sambuc extern int omp_get_nested (void) __GOMP_NOTHROW; 79*84d9c625SLionel Sambuc 80*84d9c625SLionel Sambuc extern void omp_init_lock (omp_lock_t *) __GOMP_NOTHROW; 81*84d9c625SLionel Sambuc extern void omp_destroy_lock (omp_lock_t *) __GOMP_NOTHROW; 82*84d9c625SLionel Sambuc extern void omp_set_lock (omp_lock_t *) __GOMP_NOTHROW; 83*84d9c625SLionel Sambuc extern void omp_unset_lock (omp_lock_t *) __GOMP_NOTHROW; 84*84d9c625SLionel Sambuc extern int omp_test_lock (omp_lock_t *) __GOMP_NOTHROW; 85*84d9c625SLionel Sambuc 86*84d9c625SLionel Sambuc extern void omp_init_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 87*84d9c625SLionel Sambuc extern void omp_destroy_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 88*84d9c625SLionel Sambuc extern void omp_set_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 89*84d9c625SLionel Sambuc extern void omp_unset_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 90*84d9c625SLionel Sambuc extern int omp_test_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 91*84d9c625SLionel Sambuc 92*84d9c625SLionel Sambuc extern double omp_get_wtime (void) __GOMP_NOTHROW; 93*84d9c625SLionel Sambuc extern double omp_get_wtick (void) __GOMP_NOTHROW; 94*84d9c625SLionel Sambuc 95*84d9c625SLionel Sambuc void omp_set_schedule (omp_sched_t, int) __GOMP_NOTHROW; 96*84d9c625SLionel Sambuc void omp_get_schedule (omp_sched_t *, int *) __GOMP_NOTHROW; 97*84d9c625SLionel Sambuc int omp_get_thread_limit (void) __GOMP_NOTHROW; 98*84d9c625SLionel Sambuc void omp_set_max_active_levels (int) __GOMP_NOTHROW; 99*84d9c625SLionel Sambuc int omp_get_max_active_levels (void) __GOMP_NOTHROW; 100*84d9c625SLionel Sambuc int omp_get_level (void) __GOMP_NOTHROW; 101*84d9c625SLionel Sambuc int omp_get_ancestor_thread_num (int) __GOMP_NOTHROW; 102*84d9c625SLionel Sambuc int omp_get_team_size (int) __GOMP_NOTHROW; 103*84d9c625SLionel Sambuc int omp_get_active_level (void) __GOMP_NOTHROW; 104*84d9c625SLionel Sambuc 105*84d9c625SLionel Sambuc #ifdef __cplusplus 106*84d9c625SLionel Sambuc } 107*84d9c625SLionel Sambuc #endif 108*84d9c625SLionel Sambuc 109*84d9c625SLionel Sambuc #endif /* OMP_H */ 110