Skip to content

Commit

Permalink
Minor adjustments to float type
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinzii committed Apr 5, 2024
1 parent 80f4c59 commit 1fce9f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/ccmath/internal/support/floating_point_bits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace ccm::support
template <>
struct FPLayout<FPType::eBinary128>
{
using StorageType = ccm::uint128;
using StorageType = ccm::uint128_t;
inline static constexpr int SIGN_LEN = 1;
inline static constexpr int EXP_LEN = 15;
inline static constexpr int SIG_LEN = 112;
Expand All @@ -70,7 +70,7 @@ namespace ccm::support
template <>
struct FPLayout<FPType::eBinary80_x86>
{
using StorageType = ccm::uint128;
using StorageType = ccm::uint128_t;
inline static constexpr int SIGN_LEN = 1;
inline static constexpr int EXP_LEN = 15;
inline static constexpr int SIG_LEN = 64;
Expand Down
8 changes: 4 additions & 4 deletions include/ccmath/internal/types/uint128.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
namespace ccm
{
#ifdef CCM_HAS_INT128
using uint128 = __uint128_t;
using int128 = __int128_t;
using uint128_t = __uint128_t;
using int128_t = __int128_t;
#else
using uint128 = ccm::UInt<128>;
using int128 = ccm::Int<128>;
using uint128_t = ccm::UInt<128>;
using int128_t = ccm::Int<128>;
#endif // CCM_HAS_INT128

} // namespace ccm

0 comments on commit 1fce9f5

Please sign in to comment.