mirror of
https://gitee.com/openharmony/third_party_benchmark
synced 2024-11-23 15:30:48 +00:00
Fix release builds
This commit is contained in:
parent
66f0b5d0ed
commit
7e290fb965
@ -16,9 +16,11 @@
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
int ATTRIBUTE_NOINLINE Factorial(uint32_t n) {
|
int ATTRIBUTE_NOINLINE Factorial(uint32_t n) {
|
||||||
return (n == 1) ? 1 : n * Factorial(n - 1);
|
return (n == 1) ? 1 : n * Factorial(n - 1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
double CalculatePi(int depth) {
|
double CalculatePi(int depth) {
|
||||||
double pi = 0.0;
|
double pi = 0.0;
|
||||||
|
Loading…
Reference in New Issue
Block a user