66| Github Actions | [ ![ CI] ( https://github.com/cppalliance/decimal/actions/workflows/ci.yml/badge.svg?branch=master )] ( https://github.com/cppalliance/decimal/actions/workflows/ci.yml ) | [ ![ CI] ( https://github.com/cppalliance/decimal/actions/workflows/ci.yml/badge.svg?branch=develop )] ( https://github.com/cppalliance/decimal/actions/workflows/ci.yml )
77| Codecov | [ ![ codecov] ( https://codecov.io/gh/cppalliance/decimal/branch/master/graph/badge.svg?token=drvY8nnV5S )] ( https://codecov.io/gh/cppalliance/decimal ) | [ ![ codecov] ( https://codecov.io/gh/cppalliance/decimal/graph/badge.svg?token=drvY8nnV5S )] ( https://codecov.io/gh/cppalliance/decimal ) |
88| Fuzzing | [ ![ Fuzzing] ( https://github.com/cppalliance/decimal/actions/workflows/fuzz.yml/badge.svg?branch=master )] ( https://github.com/cppalliance/decimal/actions/workflows/fuzz.yml ) | [ ![ Fuzzing] ( https://github.com/cppalliance/decimal/actions/workflows/fuzz.yml/badge.svg?branch=develop )] ( https://github.com/cppalliance/decimal/actions/workflows/fuzz.yml ) |
9+ | Metal | [ ![ Metal] ( https://github.com/cppalliance/decimal/actions/workflows/metal.yml/badge.svg?branch=master )] ( https://github.com/cppalliance/decimal/actions/workflows/metal.yml ) | [ ![ Metal] ( https://github.com/cppalliance/decimal/actions/workflows/metal.yml/badge.svg?branch=develop )] ( https://github.com/cppalliance/decimal/actions/workflows/metal.yml ) |
910
1011---
1112
@@ -51,12 +52,12 @@ conan create decimal/conan --build missing
5152
5253# Supported Platforms
5354
54- Boost.Decimal is tested natively on Ubuntu (x86_64, s390x, and aarch64), macOS (x86_64, and Apple Silicon), and Windows (x32 and x64);
55- as well as emulated PPC64LE and STM32 using QEMU with the following compilers:
55+ Boost.Decimal is tested natively on Ubuntu (x86_64, s390x, and aarch64), macOS (x86_64, and Apple Silicon),
56+ and Windows (x32 and x64); as well as emulated PPC64LE and ARM Cortex-M using QEMU with the following compilers:
5657
5758* GCC 7 and later
5859* Clang 6 and later
59- * Visual Studio 2017 and later
60+ * Visual Studio 2019 and later
6061* Intel OneAPI DPC++
6162
6263# Synopsis
@@ -67,9 +68,9 @@ Decimal provides 3 IEEE-754 compliant types:
6768namespace boost {
6869namespace decimal {
6970
70- class decimal32 ;
71- class decimal64 ;
72- class decimal128 ;
71+ class decimal32_t ;
72+ class decimal64_t ;
73+ class decimal128_t ;
7374
7475} //namespace decimal
7576} //namespace boost
@@ -81,9 +82,9 @@ and also 3 similar but non-compliant types with improved runtime performance:
8182namespace boost {
8283namespace decimal {
8384
84- class decimal32_fast ;
85- class decimal64_fast ;
86- class decimal128_fast ;
85+ class decimal_fast32_t ;
86+ class decimal_fast64_t ;
87+ class decimal_fast128_t ;
8788
8889} //namespace decimal
8990} //namespace boost
@@ -103,10 +104,10 @@ Using the decimal types is simple.
103104
104105int main ()
105106{
106- using boost::decimal::decimal32 ;
107+ using boost::decimal::decimal32_t ;
107108
108- constexpr decimal32 a {2, -1}; // Constructs the number 0.2
109- constexpr decimal32 b {1, -1}; // Constructs the number 0.1
109+ constexpr decimal32_t a {2, -1}; // Constructs the number 0.2
110+ constexpr decimal32_t b {1, -1}; // Constructs the number 0.1
110111 auto sum {a + b};
111112
112113 std::cout << sum << std::endl; // prints 0.3
@@ -122,7 +123,7 @@ int main()
122123```
123124
124125This intuitive straightforwardness is the same when using Standard-Library
125- functions (such as STL functions, ` <cmath> ` -like functions and the like).
126+ functions (such as STL functions, ` <cmath> ` functions and the like).
126127
127128``` cpp
128129#include < boost/decimal.hpp>
@@ -133,15 +134,15 @@ int main()
133134{
134135 using namespace boost::decimal;
135136
136- decimal64 val {-0.25}; // Construction from a double
137+ decimal64_t val {-0.25}; // Construction from a double
137138 val = abs(val); // DO NOT call std::abs
138139
139140 char buffer[256];
140141 auto r_to = to_chars(buffer, buffer + sizeof(buffer) - 1, val);
141142 assert (r_to); // checks std::errc()
142143 * r_to.ptr = '\0';
143144
144- decimal64 return_value;
145+ decimal64_t return_value;
145146 auto r_from = from_chars(buffer, buffer + std::strlen(buffer), return_value);
146147
147148 assert (val == return_value);
0 commit comments