136ac495dSmrg /* This file is automatically generated. DO NOT EDIT! */ 2*a2dc1f3fSmrg /* Generated from: NetBSD: mknative-gcc,v 1.101 2019/02/23 06:54:45 mrg Exp */ 336ac495dSmrg /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */ 436ac495dSmrg 5*a2dc1f3fSmrg /* Copyright (C) 2005-2018 Free Software Foundation, Inc. 636ac495dSmrg Contributed by Richard Henderson <rth@redhat.com>. 736ac495dSmrg 836ac495dSmrg This file is part of the GNU Offloading and Multi Processing Library 936ac495dSmrg (libgomp). 1036ac495dSmrg 1136ac495dSmrg Libgomp is free software; you can redistribute it and/or modify it 1236ac495dSmrg under the terms of the GNU General Public License as published by 1336ac495dSmrg the Free Software Foundation; either version 3, or (at your option) 1436ac495dSmrg any later version. 1536ac495dSmrg 1636ac495dSmrg Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY 1736ac495dSmrg WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 1836ac495dSmrg FOR A PARTICULAR PURPOSE. See the GNU General Public License for 1936ac495dSmrg more details. 2036ac495dSmrg 2136ac495dSmrg Under Section 7 of GPL version 3, you are granted additional 2236ac495dSmrg permissions described in the GCC Runtime Library Exception, version 2336ac495dSmrg 3.1, as published by the Free Software Foundation. 2436ac495dSmrg 2536ac495dSmrg You should have received a copy of the GNU General Public License and 2636ac495dSmrg a copy of the GCC Runtime Library Exception along with this program; 2736ac495dSmrg see the files COPYING3 and COPYING.RUNTIME respectively. If not, see 2836ac495dSmrg <http://www.gnu.org/licenses/>. */ 2936ac495dSmrg 3036ac495dSmrg #ifndef _OMP_H 3136ac495dSmrg #define _OMP_H 1 3236ac495dSmrg 3336ac495dSmrg #ifndef _LIBGOMP_OMP_LOCK_DEFINED 3436ac495dSmrg #define _LIBGOMP_OMP_LOCK_DEFINED 1 3536ac495dSmrg /* These two structures get edited by the libgomp build process to 3636ac495dSmrg reflect the shape of the two types. Their internals are private 3736ac495dSmrg to the library. */ 3836ac495dSmrg 3936ac495dSmrg typedef struct 4036ac495dSmrg { 4136ac495dSmrg unsigned char _x[4] 4236ac495dSmrg __attribute__((__aligned__(4))); 4336ac495dSmrg } omp_lock_t; 4436ac495dSmrg 4536ac495dSmrg typedef struct 4636ac495dSmrg { 4736ac495dSmrg unsigned char _x[12] 4836ac495dSmrg __attribute__((__aligned__(4))); 4936ac495dSmrg } omp_nest_lock_t; 5036ac495dSmrg #endif 5136ac495dSmrg 5236ac495dSmrg typedef enum omp_sched_t 5336ac495dSmrg { 5436ac495dSmrg omp_sched_static = 1, 5536ac495dSmrg omp_sched_dynamic = 2, 5636ac495dSmrg omp_sched_guided = 3, 5736ac495dSmrg omp_sched_auto = 4 5836ac495dSmrg } omp_sched_t; 5936ac495dSmrg 6036ac495dSmrg typedef enum omp_proc_bind_t 6136ac495dSmrg { 6236ac495dSmrg omp_proc_bind_false = 0, 6336ac495dSmrg omp_proc_bind_true = 1, 6436ac495dSmrg omp_proc_bind_master = 2, 6536ac495dSmrg omp_proc_bind_close = 3, 6636ac495dSmrg omp_proc_bind_spread = 4 6736ac495dSmrg } omp_proc_bind_t; 6836ac495dSmrg 6936ac495dSmrg typedef enum omp_lock_hint_t 7036ac495dSmrg { 7136ac495dSmrg omp_lock_hint_none = 0, 7236ac495dSmrg omp_lock_hint_uncontended = 1, 7336ac495dSmrg omp_lock_hint_contended = 2, 7436ac495dSmrg omp_lock_hint_nonspeculative = 4, 7536ac495dSmrg omp_lock_hint_speculative = 8, 7636ac495dSmrg } omp_lock_hint_t; 7736ac495dSmrg 7836ac495dSmrg #ifdef __cplusplus 7936ac495dSmrg extern "C" { 8036ac495dSmrg # define __GOMP_NOTHROW throw () 8136ac495dSmrg #else 8236ac495dSmrg # define __GOMP_NOTHROW __attribute__((__nothrow__)) 8336ac495dSmrg #endif 8436ac495dSmrg 8536ac495dSmrg extern void omp_set_num_threads (int) __GOMP_NOTHROW; 8636ac495dSmrg extern int omp_get_num_threads (void) __GOMP_NOTHROW; 8736ac495dSmrg extern int omp_get_max_threads (void) __GOMP_NOTHROW; 8836ac495dSmrg extern int omp_get_thread_num (void) __GOMP_NOTHROW; 8936ac495dSmrg extern int omp_get_num_procs (void) __GOMP_NOTHROW; 9036ac495dSmrg 9136ac495dSmrg extern int omp_in_parallel (void) __GOMP_NOTHROW; 9236ac495dSmrg 9336ac495dSmrg extern void omp_set_dynamic (int) __GOMP_NOTHROW; 9436ac495dSmrg extern int omp_get_dynamic (void) __GOMP_NOTHROW; 9536ac495dSmrg 9636ac495dSmrg extern void omp_set_nested (int) __GOMP_NOTHROW; 9736ac495dSmrg extern int omp_get_nested (void) __GOMP_NOTHROW; 9836ac495dSmrg 9936ac495dSmrg extern void omp_init_lock (omp_lock_t *) __GOMP_NOTHROW; 10036ac495dSmrg extern void omp_init_lock_with_hint (omp_lock_t *, omp_lock_hint_t) 10136ac495dSmrg __GOMP_NOTHROW; 10236ac495dSmrg extern void omp_destroy_lock (omp_lock_t *) __GOMP_NOTHROW; 10336ac495dSmrg extern void omp_set_lock (omp_lock_t *) __GOMP_NOTHROW; 10436ac495dSmrg extern void omp_unset_lock (omp_lock_t *) __GOMP_NOTHROW; 10536ac495dSmrg extern int omp_test_lock (omp_lock_t *) __GOMP_NOTHROW; 10636ac495dSmrg 10736ac495dSmrg extern void omp_init_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 10836ac495dSmrg extern void omp_init_nest_lock_with_hint (omp_nest_lock_t *, omp_lock_hint_t) 10936ac495dSmrg __GOMP_NOTHROW; 11036ac495dSmrg extern void omp_destroy_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 11136ac495dSmrg extern void omp_set_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 11236ac495dSmrg extern void omp_unset_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 11336ac495dSmrg extern int omp_test_nest_lock (omp_nest_lock_t *) __GOMP_NOTHROW; 11436ac495dSmrg 11536ac495dSmrg extern double omp_get_wtime (void) __GOMP_NOTHROW; 11636ac495dSmrg extern double omp_get_wtick (void) __GOMP_NOTHROW; 11736ac495dSmrg 11836ac495dSmrg extern void omp_set_schedule (omp_sched_t, int) __GOMP_NOTHROW; 11936ac495dSmrg extern void omp_get_schedule (omp_sched_t *, int *) __GOMP_NOTHROW; 12036ac495dSmrg extern int omp_get_thread_limit (void) __GOMP_NOTHROW; 12136ac495dSmrg extern void omp_set_max_active_levels (int) __GOMP_NOTHROW; 12236ac495dSmrg extern int omp_get_max_active_levels (void) __GOMP_NOTHROW; 12336ac495dSmrg extern int omp_get_level (void) __GOMP_NOTHROW; 12436ac495dSmrg extern int omp_get_ancestor_thread_num (int) __GOMP_NOTHROW; 12536ac495dSmrg extern int omp_get_team_size (int) __GOMP_NOTHROW; 12636ac495dSmrg extern int omp_get_active_level (void) __GOMP_NOTHROW; 12736ac495dSmrg 12836ac495dSmrg extern int omp_in_final (void) __GOMP_NOTHROW; 12936ac495dSmrg 13036ac495dSmrg extern int omp_get_cancellation (void) __GOMP_NOTHROW; 13136ac495dSmrg extern omp_proc_bind_t omp_get_proc_bind (void) __GOMP_NOTHROW; 13236ac495dSmrg extern int omp_get_num_places (void) __GOMP_NOTHROW; 13336ac495dSmrg extern int omp_get_place_num_procs (int) __GOMP_NOTHROW; 13436ac495dSmrg extern void omp_get_place_proc_ids (int, int *) __GOMP_NOTHROW; 13536ac495dSmrg extern int omp_get_place_num (void) __GOMP_NOTHROW; 13636ac495dSmrg extern int omp_get_partition_num_places (void) __GOMP_NOTHROW; 13736ac495dSmrg extern void omp_get_partition_place_nums (int *) __GOMP_NOTHROW; 13836ac495dSmrg 13936ac495dSmrg extern void omp_set_default_device (int) __GOMP_NOTHROW; 14036ac495dSmrg extern int omp_get_default_device (void) __GOMP_NOTHROW; 14136ac495dSmrg extern int omp_get_num_devices (void) __GOMP_NOTHROW; 14236ac495dSmrg extern int omp_get_num_teams (void) __GOMP_NOTHROW; 14336ac495dSmrg extern int omp_get_team_num (void) __GOMP_NOTHROW; 14436ac495dSmrg 14536ac495dSmrg extern int omp_is_initial_device (void) __GOMP_NOTHROW; 14636ac495dSmrg extern int omp_get_initial_device (void) __GOMP_NOTHROW; 14736ac495dSmrg extern int omp_get_max_task_priority (void) __GOMP_NOTHROW; 14836ac495dSmrg 14936ac495dSmrg extern void *omp_target_alloc (__SIZE_TYPE__, int) __GOMP_NOTHROW; 15036ac495dSmrg extern void omp_target_free (void *, int) __GOMP_NOTHROW; 15136ac495dSmrg extern int omp_target_is_present (void *, int) __GOMP_NOTHROW; 15236ac495dSmrg extern int omp_target_memcpy (void *, void *, __SIZE_TYPE__, __SIZE_TYPE__, 15336ac495dSmrg __SIZE_TYPE__, int, int) __GOMP_NOTHROW; 15436ac495dSmrg extern int omp_target_memcpy_rect (void *, void *, __SIZE_TYPE__, int, 15536ac495dSmrg const __SIZE_TYPE__ *, 15636ac495dSmrg const __SIZE_TYPE__ *, 15736ac495dSmrg const __SIZE_TYPE__ *, 15836ac495dSmrg const __SIZE_TYPE__ *, 15936ac495dSmrg const __SIZE_TYPE__ *, int, int) 16036ac495dSmrg __GOMP_NOTHROW; 16136ac495dSmrg extern int omp_target_associate_ptr (void *, void *, __SIZE_TYPE__, 16236ac495dSmrg __SIZE_TYPE__, int) __GOMP_NOTHROW; 16336ac495dSmrg extern int omp_target_disassociate_ptr (void *, int) __GOMP_NOTHROW; 16436ac495dSmrg 16536ac495dSmrg #ifdef __cplusplus 16636ac495dSmrg } 16736ac495dSmrg #endif 16836ac495dSmrg 16936ac495dSmrg #endif /* _OMP_H */ 170