Skip to content

Commit

Permalink
minor fix with nesting of preprocessor defines
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinzii committed Apr 6, 2024
1 parent 8e41d26 commit ba3fc87
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions include/ccmath/internal/types/uint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

#pragma once

// TODO: Currently this type is broken with gcc.

#include "ccmath/internal/predef/unlikely.hpp"
#include "ccmath/internal/predef/compiler_warnings_and_errors.hpp" // Required to disable -fpermissive
#include "ccmath/internal/support/bits.hpp"
Expand Down Expand Up @@ -73,13 +71,13 @@ namespace ccm
struct half_width<uint64_t> : ccm::type_identity<uint32_t>
{
};
#ifdef CCM_HAS_INT128
#endif // CCM_HAS_INT64
#ifdef CCM_HAS_INT128
template <>
struct half_width<__uint128_t> : ccm::type_identity<uint64_t>
{
};
#endif // CCM_HAS_INT128
#endif // CCM_HAS_INT64
#endif // CCM_HAS_INT128
template <typename T>
using half_width_t = typename half_width<T>::type;

Expand Down

0 comments on commit ba3fc87

Please sign in to comment.