Mercurial > games > semicongine
diff fuhtark_test/include/winapi/omp.h @ 1500:91c8c3b7cbf0
add: futhark tests for generating vulkan api
| author | sam <sam@basx.dev> |
|---|---|
| date | Wed, 26 Nov 2025 21:36:48 +0700 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fuhtark_test/include/winapi/omp.h Wed Nov 26 21:36:48 2025 +0700 @@ -0,0 +1,51 @@ +/** + * This file has no copyright assigned and is placed in the Public Domain. + * This file is part of the w64 mingw-runtime package. + * No warranty is given; refer to the file DISCLAIMER within this package. + */ +#if defined(__cplusplus) +extern "C" { +#endif + +#define _OMPAPI __cdecl + +#if !defined(_OMP_LOCK_T) +#define _OMP_LOCK_T + typedef void *omp_lock_t; +#endif + +#if !defined(_OMP_NEST_LOCK_T) +#define _OMP_NEST_LOCK_T + typedef void *omp_nest_lock_t; +#endif + +#if !defined(_OMPIMP) +#define _OMPIMP __declspec(dllimport) +#endif + + _OMPIMP void _OMPAPI omp_set_num_threads(int _Num_threads); + _OMPIMP int _OMPAPI omp_get_num_threads(void); + _OMPIMP int _OMPAPI omp_get_max_threads(void); + _OMPIMP int _OMPAPI omp_get_thread_num(void); + _OMPIMP int _OMPAPI omp_get_num_procs(void); + _OMPIMP void _OMPAPI omp_set_dynamic(int _Dynamic_threads); + _OMPIMP int _OMPAPI omp_get_dynamic(void); + _OMPIMP int _OMPAPI omp_in_parallel(void); + _OMPIMP void _OMPAPI omp_set_nested(int _Nested); + _OMPIMP int _OMPAPI omp_get_nested(void); + _OMPIMP void _OMPAPI omp_init_lock(omp_lock_t *_Lock); + _OMPIMP void _OMPAPI omp_destroy_lock(omp_lock_t *_Lock); + _OMPIMP void _OMPAPI omp_set_lock(omp_lock_t *_Lock); + _OMPIMP void _OMPAPI omp_unset_lock(omp_lock_t *_Lock); + _OMPIMP int _OMPAPI omp_test_lock(omp_lock_t *_Lock); + _OMPIMP void _OMPAPI omp_init_nest_lock(omp_nest_lock_t *_Lock); + _OMPIMP void _OMPAPI omp_destroy_nest_lock(omp_nest_lock_t *_Lock); + _OMPIMP void _OMPAPI omp_set_nest_lock(omp_nest_lock_t *_Lock); + _OMPIMP void _OMPAPI omp_unset_nest_lock(omp_nest_lock_t *_Lock); + _OMPIMP int _OMPAPI omp_test_nest_lock(omp_nest_lock_t *_Lock); + _OMPIMP double _OMPAPI omp_get_wtime(void); + _OMPIMP double _OMPAPI omp_get_wtick(void); + +#if defined(__cplusplus) +} +#endif
