Skip to content

Commit

Permalink
Fixed a inline constexpr std::uint32_t operator_MB
Browse files Browse the repository at this point in the history
  • Loading branch information
silhavyj committed Jan 21, 2024
1 parent 650ff54 commit d211361
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/core/soc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,18 +60,8 @@ namespace zero_mate::soc

} // namespace sections

// -------------------------------------------------------------------------------------------------------------
/// Helper function to convert a number of bytes to megabytes.
/// \param size Number of bytes to convert
/// \return Number of megabytes
// -------------------------------------------------------------------------------------------------------------
inline constexpr std::uint32_t operator""_MB(std::size_t size)
{
return static_cast<std::uint32_t>(size * 1024 * 1024);
}

/// Default RAM size
inline constexpr std::uint32_t RAM_Size = 512_MB; // 512 MB
inline constexpr std::uint32_t RAM_Size = (512 * 1024 * 1024); // 512 MB

/// Default RAM map address (where it is found in the address space)
inline constexpr std::uint32_t RAM_Address = 0x0;
Expand Down

0 comments on commit d211361

Please sign in to comment.