Skip to content

Commit

Permalink
Simplify preprocessor symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Jan 29, 2024
1 parent 678ee3d commit cf9b6f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions ref_app/src/app/benchmark/app_benchmark_non_std_decimal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <boost/decimal.hpp>

Expand Down
2 changes: 1 addition & 1 deletion ref_app/src/app/benchmark/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cf9b6f8

Please sign in to comment.