xref: /minix/external/gpl3/gcc/lib/libgomp/arch/m68000/omp.h (revision 0a6a1f1d)
118a5822eSThomas Veerman /* 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  */
418a5822eSThomas Veerman 
5*0a6a1f1dSLionel Sambuc /* Copyright (C) 2005-2013 Free Software Foundation, Inc.
618a5822eSThomas Veerman    Contributed by Richard Henderson <rth@redhat.com>.
718a5822eSThomas Veerman 
818a5822eSThomas Veerman    This file is part of the GNU OpenMP Library (libgomp).
918a5822eSThomas Veerman 
1018a5822eSThomas Veerman    Libgomp is free software; you can redistribute it and/or modify it
1118a5822eSThomas Veerman    under the terms of the GNU General Public License as published by
1218a5822eSThomas Veerman    the Free Software Foundation; either version 3, or (at your option)
1318a5822eSThomas Veerman    any later version.
1418a5822eSThomas Veerman 
1518a5822eSThomas Veerman    Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
1618a5822eSThomas Veerman    WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1718a5822eSThomas Veerman    FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
1818a5822eSThomas Veerman    more details.
1918a5822eSThomas Veerman 
2018a5822eSThomas Veerman    Under Section 7 of GPL version 3, you are granted additional
2118a5822eSThomas Veerman    permissions described in the GCC Runtime Library Exception, version
2218a5822eSThomas Veerman    3.1, as published by the Free Software Foundation.
2318a5822eSThomas Veerman 
2418a5822eSThomas Veerman    You should have received a copy of the GNU General Public License and
2518a5822eSThomas Veerman    a copy of the GCC Runtime Library Exception along with this program;
2618a5822eSThomas Veerman    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
2718a5822eSThomas Veerman    <http://www.gnu.org/licenses/>.  */
2818a5822eSThomas Veerman 
2918a5822eSThomas Veerman #ifndef OMP_H
3018a5822eSThomas Veerman #define OMP_H 1
3118a5822eSThomas Veerman 
3218a5822eSThomas Veerman #ifndef _LIBGOMP_OMP_LOCK_DEFINED
3318a5822eSThomas Veerman #define _LIBGOMP_OMP_LOCK_DEFINED 1
3418a5822eSThomas Veerman /* These two structures get edited by the libgomp build process to
3518a5822eSThomas Veerman    reflect the shape of the two types.  Their internals are private
3618a5822eSThomas Veerman    to the library.  */
3718a5822eSThomas Veerman 
3818a5822eSThomas Veerman typedef struct
3918a5822eSThomas Veerman {
4018a5822eSThomas Veerman   unsigned char _x[4]
4118a5822eSThomas Veerman     __attribute__((__aligned__(4)));
4218a5822eSThomas Veerman } omp_lock_t;
4318a5822eSThomas Veerman 
4418a5822eSThomas Veerman typedef struct
4518a5822eSThomas Veerman {
4618a5822eSThomas Veerman   unsigned char _x[12]
4718a5822eSThomas Veerman     __attribute__((__aligned__(4)));
4818a5822eSThomas Veerman } omp_nest_lock_t;
4918a5822eSThomas Veerman #endif
5018a5822eSThomas Veerman 
5118a5822eSThomas Veerman typedef enum omp_sched_t
5218a5822eSThomas Veerman {
5318a5822eSThomas Veerman   omp_sched_static = 1,
5418a5822eSThomas Veerman   omp_sched_dynamic = 2,
5518a5822eSThomas Veerman   omp_sched_guided = 3,
5618a5822eSThomas Veerman   omp_sched_auto = 4
5718a5822eSThomas Veerman } omp_sched_t;
5818a5822eSThomas Veerman 
5918a5822eSThomas Veerman #ifdef __cplusplus
6018a5822eSThomas Veerman extern "C" {
6118a5822eSThomas Veerman # define __GOMP_NOTHROW throw ()
6218a5822eSThomas Veerman #else
6318a5822eSThomas Veerman # define __GOMP_NOTHROW __attribute__((__nothrow__))
6418a5822eSThomas Veerman #endif
6518a5822eSThomas Veerman 
6618a5822eSThomas Veerman extern void omp_set_num_threads (int) __GOMP_NOTHROW;
6718a5822eSThomas Veerman extern int omp_get_num_threads (void) __GOMP_NOTHROW;
6818a5822eSThomas Veerman extern int omp_get_max_threads (void) __GOMP_NOTHROW;
6918a5822eSThomas Veerman extern int omp_get_thread_num (void) __GOMP_NOTHROW;
7018a5822eSThomas Veerman extern int omp_get_num_procs (void) __GOMP_NOTHROW;
7118a5822eSThomas Veerman 
7218a5822eSThomas Veerman extern int omp_in_parallel (void) __GOMP_NOTHROW;
7318a5822eSThomas Veerman 
7418a5822eSThomas Veerman extern void omp_set_dynamic (int) __GOMP_NOTHROW;
7518a5822eSThomas Veerman extern int omp_get_dynamic (void) __GOMP_NOTHROW;
7618a5822eSThomas Veerman 
7718a5822eSThomas Veerman extern void omp_set_nested (int) __GOMP_NOTHROW;
7818a5822eSThomas Veerman extern int omp_get_nested (void) __GOMP_NOTHROW;
7918a5822eSThomas Veerman 
8018a5822eSThomas Veerman extern void omp_init_lock (omp_lock_t *) __GOMP_NOTHROW;
8118a5822eSThomas Veerman extern void omp_destroy_lock (omp_lock_t *) __GOMP_NOTHROW;
8218a5822eSThomas Veerman extern void omp_set_lock (omp_lock_t *) __GOMP_NOTHROW;
8318a5822eSThomas Veerman extern void omp_unset_lock (omp_lock_t *) __GOMP_NOTHROW;
8418a5822eSThomas Veerman extern int omp_test_lock (omp_lock_t *) __GOMP_NOTHROW;
8518a5822eSThomas Veerman 
8618a5822eSThomas Veerman extern void omp_init_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW;
8718a5822eSThomas Veerman extern void omp_destroy_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW;
8818a5822eSThomas Veerman extern void omp_set_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW;
8918a5822eSThomas Veerman extern void omp_unset_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW;
9018a5822eSThomas Veerman extern int omp_test_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW;
9118a5822eSThomas Veerman 
9218a5822eSThomas Veerman extern double omp_get_wtime (void) __GOMP_NOTHROW;
9318a5822eSThomas Veerman extern double omp_get_wtick (void) __GOMP_NOTHROW;
9418a5822eSThomas Veerman 
9518a5822eSThomas Veerman void omp_set_schedule (omp_sched_t, int) __GOMP_NOTHROW;
9618a5822eSThomas Veerman void omp_get_schedule (omp_sched_t *, int *) __GOMP_NOTHROW;
9718a5822eSThomas Veerman int omp_get_thread_limit (void) __GOMP_NOTHROW;
9818a5822eSThomas Veerman void omp_set_max_active_levels (int) __GOMP_NOTHROW;
9918a5822eSThomas Veerman int omp_get_max_active_levels (void) __GOMP_NOTHROW;
10018a5822eSThomas Veerman int omp_get_level (void) __GOMP_NOTHROW;
10118a5822eSThomas Veerman int omp_get_ancestor_thread_num (int) __GOMP_NOTHROW;
10218a5822eSThomas Veerman int omp_get_team_size (int) __GOMP_NOTHROW;
10318a5822eSThomas Veerman int omp_get_active_level (void) __GOMP_NOTHROW;
10418a5822eSThomas Veerman 
105*0a6a1f1dSLionel Sambuc int omp_in_final (void) __GOMP_NOTHROW;
106*0a6a1f1dSLionel Sambuc 
10718a5822eSThomas Veerman #ifdef __cplusplus
10818a5822eSThomas Veerman }
10918a5822eSThomas Veerman #endif
11018a5822eSThomas Veerman 
11118a5822eSThomas Veerman #endif /* OMP_H */
112