From cf9b6f8090e767f68a24bc911a4b12a13ef9ec92 Mon Sep 17 00:00:00 2001 From: Christopher Kormanyos Date: Mon, 29 Jan 2024 03:56:16 +0100 Subject: [PATCH] Simplify preprocessor symbols --- ref_app/src/app/benchmark/app_benchmark_non_std_decimal.cpp | 2 -- ref_app/src/app/benchmark/readme.md | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ref_app/src/app/benchmark/app_benchmark_non_std_decimal.cpp b/ref_app/src/app/benchmark/app_benchmark_non_std_decimal.cpp index f1556f717..38d8b621d 100644 --- a/ref_app/src/app/benchmark/app_benchmark_non_std_decimal.cpp +++ b/ref_app/src/app/benchmark/app_benchmark_non_std_decimal.cpp @@ -13,11 +13,9 @@ #if(APP_BENCHMARK_TYPE == APP_BENCHMARK_TYPE_NON_STD_DECIMAL) -#if (defined(__arm__) || defined(__AVR__)) #if !defined(BOOST_DECIMAL_DISABLE_CLIB) #define BOOST_DECIMAL_DISABLE_CLIB #endif -#endif #include diff --git a/ref_app/src/app/benchmark/readme.md b/ref_app/src/app/benchmark/readme.md index 1cb7e242b..d4aa859a7 100644 --- a/ref_app/src/app/benchmark/readme.md +++ b/ref_app/src/app/benchmark/readme.md @@ -32,7 +32,7 @@ - ![app_benchmark_boost_multiprecision_cbrt.cpp](./app_benchmark_boost_multiprecision_cbrt.cpp) via `#define APP_BENCHMARK_TYPE_BOOST_MULTIPRECISION_CBRT` uses [Boost.Multiprecision](https://www.boost.org/doc/libs/1_81_0/libs/multiprecision/doc/html/index.html) in combination with [Boost.Math](https://www.boost.org/doc/libs/1_81_0/libs/math/doc/html/index.html) to compute $101$ decimal digits of a cube root function. - ![app_benchmark_hash_sha256.cpp](./app_benchmark_hash_sha256.cpp) via `#define APP_BENCHMARK_TYPE_HASH_SHA256` computes a $256$-bit hash checksum of a short $3$-byte character-based message. - ![app_benchmark_ecc_generic_ecc.cpp](./app_benchmark_ecc_generic_ecc.cpp) via `#define APP_BENCHMARK_TYPE_ECC_GENERIC_ECC` provides an intuitive view on elliptic-curve algebra, depicting a well-known $256$-bit cryptographic key-gen/sign/verify method. This benchmark is actually too lengthy to run on most of our embedded targets (other than BBB or RPI-zero) and adaptions of OS/watchdog are required in order to run this benchmark on the metal. - - ![app_benchmark_non_std_decimal.cpp](./app_benchmark_non_std_decimal.cpp) via `#define APP_BENCHMARK_TYPE_NON_STD_DECIMAL` performs $64$-bit a decimal-floating point calculation of the exponential function using the contemporary [cpplliance/decimal](https://github.com/cppalliance/decimal) library. This benchmark does not, at the moment, run on the AVR target, but requires a larger microcontroller such as one of the $32$-bit ARM(R) devices. + - ![app_benchmark_non_std_decimal.cpp](./app_benchmark_non_std_decimal.cpp) via `#define APP_BENCHMARK_TYPE_NON_STD_DECIMAL` carries out a $64$-bit decimal-floating-point calculation of the exponential function using the contemporary [cpplliance/decimal](https://github.com/cppalliance/decimal) library. This benchmark does not, at the moment, run on the AVR target, but requires a larger microcontroller such as one of the $32$-bit ARM(R) devices. ## Performance classes