aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/kmp_ftn_entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/src/kmp_ftn_entry.h')
-rw-r--r--runtime/src/kmp_ftn_entry.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/runtime/src/kmp_ftn_entry.h b/runtime/src/kmp_ftn_entry.h
index ccb673f..819a14b 100644
--- a/runtime/src/kmp_ftn_entry.h
+++ b/runtime/src/kmp_ftn_entry.h
@@ -77,7 +77,7 @@ int FTN_STDCALL FTN_GET_STACKSIZE(void) {
#else
if (!__kmp_init_serial) {
__kmp_serial_initialize();
- };
+ }
return (int)__kmp_stksize;
#endif
}
@@ -88,7 +88,7 @@ size_t FTN_STDCALL FTN_GET_STACKSIZE_S(void) {
#else
if (!__kmp_init_serial) {
__kmp_serial_initialize();
- };
+ }
return __kmp_stksize;
#endif
}
@@ -138,7 +138,7 @@ int FTN_STDCALL FTN_GET_BLOCKTIME(void) {
KF_TRACE(10, ("kmp_get_blocktime: T#%d(%d:%d), blocktime=%d\n", gtid,
team->t.t_id, tid, get__blocktime(team, tid)));
return get__blocktime(team, tid);
- };
+ }
#endif
}
@@ -548,7 +548,7 @@ int FTN_STDCALL xexpand(FTN_GET_THREAD_LIMIT)(void) {
#else
if (!__kmp_init_serial) {
__kmp_serial_initialize();
- };
+ }
/* global ICV */
return __kmp_cg_max_nth;
#endif
@@ -930,10 +930,10 @@ void FTN_STDCALL xexpand(FTN_SET_LOCK)(void **user_lock) {
#ifdef KMP_STUB
if (*((kmp_stub_lock_t *)user_lock) == UNINIT) {
// TODO: Issue an error.
- }; // if
+ }
if (*((kmp_stub_lock_t *)user_lock) != UNLOCKED) {
// TODO: Issue an error.
- }; // if
+ }
*((kmp_stub_lock_t *)user_lock) = LOCKED;
#else
__kmpc_set_lock(NULL, __kmp_entry_gtid(), user_lock);
@@ -944,7 +944,7 @@ void FTN_STDCALL xexpand(FTN_SET_NEST_LOCK)(void **user_lock) {
#ifdef KMP_STUB
if (*((kmp_stub_lock_t *)user_lock) == UNINIT) {
// TODO: Issue an error.
- }; // if
+ }
(*((int *)user_lock))++;
#else
__kmpc_set_nest_lock(NULL, __kmp_entry_gtid(), user_lock);
@@ -955,10 +955,10 @@ void FTN_STDCALL xexpand(FTN_UNSET_LOCK)(void **user_lock) {
#ifdef KMP_STUB
if (*((kmp_stub_lock_t *)user_lock) == UNINIT) {
// TODO: Issue an error.
- }; // if
+ }
if (*((kmp_stub_lock_t *)user_lock) == UNLOCKED) {
// TODO: Issue an error.
- }; // if
+ }
*((kmp_stub_lock_t *)user_lock) = UNLOCKED;
#else
__kmpc_unset_lock(NULL, __kmp_entry_gtid(), user_lock);
@@ -969,10 +969,10 @@ void FTN_STDCALL xexpand(FTN_UNSET_NEST_LOCK)(void **user_lock) {
#ifdef KMP_STUB
if (*((kmp_stub_lock_t *)user_lock) == UNINIT) {
// TODO: Issue an error.
- }; // if
+ }
if (*((kmp_stub_lock_t *)user_lock) == UNLOCKED) {
// TODO: Issue an error.
- }; // if
+ }
(*((int *)user_lock))--;
#else
__kmpc_unset_nest_lock(NULL, __kmp_entry_gtid(), user_lock);
@@ -983,10 +983,10 @@ int FTN_STDCALL xexpand(FTN_TEST_LOCK)(void **user_lock) {
#ifdef KMP_STUB
if (*((kmp_stub_lock_t *)user_lock) == UNINIT) {
// TODO: Issue an error.
- }; // if
+ }
if (*((kmp_stub_lock_t *)user_lock) == LOCKED) {
return 0;
- }; // if
+ }
*((kmp_stub_lock_t *)user_lock) = LOCKED;
return 1;
#else
@@ -998,7 +998,7 @@ int FTN_STDCALL xexpand(FTN_TEST_NEST_LOCK)(void **user_lock) {
#ifdef KMP_STUB
if (*((kmp_stub_lock_t *)user_lock) == UNINIT) {
// TODO: Issue an error.
- }; // if
+ }
return ++(*((int *)user_lock));
#else
return __kmpc_test_nest_lock(NULL, __kmp_entry_gtid(), user_lock);
@@ -1015,7 +1015,7 @@ double FTN_STDCALL xexpand(FTN_GET_WTIME)(void) {
// routine can be used to measure library initialization time on Linux* OS now
if (!__kmp_init_serial) {
__kmp_serial_initialize();
- };
+ }
#endif
__kmp_elapsed(&data);
return data;
@@ -1029,7 +1029,7 @@ double FTN_STDCALL xexpand(FTN_GET_WTICK)(void) {
double data;
if (!__kmp_init_serial) {
__kmp_serial_initialize();
- };
+ }
__kmp_elapsed_tick(&data);
return data;
#endif