summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-08-16 18:01:32 +0100
committerSam James <sam@gentoo.org>2024-08-16 18:21:21 +0100
commit87168789d59316975dc42b65a198babfbe816192 (patch)
tree8d6bda5d60bd569d3e0088fa2b897ba3c3317d13 /eclass
parenttoolchain-funcs.eclass: use generic filename for linker test (diff)
downloadgentoo-87168789d59316975dc42b65a198babfbe816192.tar.gz
gentoo-87168789d59316975dc42b65a198babfbe816192.tar.bz2
gentoo-87168789d59316975dc42b65a198babfbe816192.zip
toolchain-funcs.eclass: _tc-has-openmp: tweak style a bit
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/toolchain-funcs.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 563eb5e191cf..5c15f4fb93a1 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -632,8 +632,9 @@ _tc-has-openmp() {
int nthreads, tid, ret = 0;
#pragma omp parallel private(nthreads, tid)
{
- tid = omp_get_thread_num();
- nthreads = omp_get_num_threads(); ret += tid + nthreads;
+ tid = omp_get_thread_num();
+ nthreads = omp_get_num_threads();
+ ret += tid + nthreads;
}
return ret;
}