[Openmp-commits] [PATCH] D28599: kmp_affinity: Fix check if specific bit is set
Jonas Hahnfeld via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jan 12 03:50:06 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL291764: kmp_affinity: Fix check if specific bit is set (authored by Hahnfeld).
Changed prior to commit:
https://reviews.llvm.org/D28599?vs=84085&id=84103#toc
Repository:
rL LLVM
https://reviews.llvm.org/D28599
Files:
openmp/trunk/runtime/src/kmp_affinity.cpp
Index: openmp/trunk/runtime/src/kmp_affinity.cpp
===================================================================
--- openmp/trunk/runtime/src/kmp_affinity.cpp
+++ openmp/trunk/runtime/src/kmp_affinity.cpp
@@ -1022,7 +1022,7 @@
// The apic id and max threads per pkg come from cpuid(1).
//
__kmp_x86_cpuid(1, 0, &buf);
- if (! (buf.edx >> 9) & 1) {
+ if (((buf.edx >> 9) & 1) == 0) {
__kmp_set_system_affinity(oldMask, TRUE);
__kmp_free(threadInfo);
KMP_CPU_FREE(oldMask);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28599.84103.patch
Type: text/x-patch
Size: 556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20170112/5833c12a/attachment.bin>
More information about the Openmp-commits
mailing list