diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-06-04 17:29:13 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-06-04 17:29:13 +0000 |
commit | 1e7a1ddcee54477d84ed286e4a3932db0fd682a5 (patch) | |
tree | 6db0e013c4a93e8c053e7e49de63790fa9bf47b7 /openmp/runtime/src/z_Windows_NT_util.c | |
parent | 185579bf0cc4bb44fade923231d8db65535b5dd6 (diff) | |
download | bcm5719-llvm-1e7a1ddcee54477d84ed286e4a3932db0fd682a5.tar.gz bcm5719-llvm-1e7a1ddcee54477d84ed286e4a3932db0fd682a5.zip |
Fix some sign compare warnings.
This change changes kmp_bstate.old_tid to sign integer instead of unsigned integer.
It also defines two new macros KMP_NSEC_PER_SEC and KMP_USEC_PER_SEC which lets us take
control of the sign (we want them to be longs). Also, in kmp_wait_release.h, the byteref()
function's return type is changed from char to unsigned char.
llvm-svn: 239057
Diffstat (limited to 'openmp/runtime/src/z_Windows_NT_util.c')
-rw-r--r-- | openmp/runtime/src/z_Windows_NT_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/runtime/src/z_Windows_NT_util.c b/openmp/runtime/src/z_Windows_NT_util.c index d60f3c50905..bfeb1b18b63 100644 --- a/openmp/runtime/src/z_Windows_NT_util.c +++ b/openmp/runtime/src/z_Windows_NT_util.c @@ -799,7 +799,7 @@ __kmp_read_cpu_time( void ) sec += KernelTime.dwLowDateTime; sec += UserTime.dwLowDateTime; - cpu_time += (sec * 100.0) / NSEC_PER_SEC; + cpu_time += (sec * 100.0) / KMP_NSEC_PER_SEC; } return cpu_time; |