@@ -34,12 +34,11 @@ static_assert(std::numeric_limits<builtin_float_type>::digits == 53,
3434
3535
3636#if 0
37- GCC11 , arm-none-eabi, float-abi=soft, -O2
37+ GCC14.2 , arm-none-eabi, float-abi=soft, -O2
3838
3939Calculation exp() via Pade approximation approx. 15 decimal digits.
4040Code-size includes about 2kb for startup, clock-init, skinny MCAL and cooperative time-scheduler.
4141
42-
4342target-specific flags
4443---------------------
4544-O2
@@ -52,15 +51,14 @@ target-specific flags
5251-mno-unaligned-access
5352-mno-long-calls
5453
55- // TBD: These are very old numbers. Today's decimal is expected
56- // to be significantly speedier. Update these numbers sometime.
57-
54+ // These are the updated numbers from boost::decimal Git-hash 0b474bf05f339f21d87dd1902dc6294bb9914254.
5855
59- | Type | runtime [us] | relative | code-size [kb] |
60- |--------------------------------|---------------|------------|-------------------|
61- | double (built-in, no FPU) | 22 | 1.0 | 5.6 |
62- | ::math::softfloat::float64_t | 27 | 1.2 | 8.5 |
63- | boost::decimal::decimal64_t | 490 | 22 | 20 |
56+ | Type | runtime [us] | relative | code-size [kb] |
57+ |------------------------------------|---------------|------------|-------------------|
58+ | `double` (built-in, no FPU) | $22$ | $1.0$ | $5.6$ |
59+ | `::math::softfloat::float64_t` | $27$ | $1.2$ | $8.5$ |
60+ | `boost::decimal::decimal_fast64_t` | $170$ | $7.7$ | $18$ |
61+ | `boost::decimal::decimal64_t` | $200$ | $9.1$ | $20$ |
6462#endif
6563
6664namespace local
0 commit comments