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