aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/CPUUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/CPUUtils.cpp')
-rw-r--r--src/runtime/CPUUtils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/CPUUtils.cpp b/src/runtime/CPUUtils.cpp
index 5860720d3b..e632787e86 100644
--- a/src/runtime/CPUUtils.cpp
+++ b/src/runtime/CPUUtils.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2019 ARM Limited.
+ * Copyright (c) 2018-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -402,7 +402,7 @@ unsigned int get_threads_hint()
{
unsigned int num_threads_hint = 1;
-#ifndef BARE_METAL
+#if !defined(BARE_METAL)
std::map<std::string, unsigned int> cpu_part_occurrence_map;
// CPU part regex
@@ -447,7 +447,7 @@ unsigned int get_threads_hint()
// Set thread hint
num_threads_hint = cpu_part_occurrence_map.empty() ? std::thread::hardware_concurrency() : min_common_cores->second;
-#endif /* BARE_METAL */
+#endif /* !defined(BARE_METAL) */
return num_threads_hint;
}