mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-23 00:49:40 +00:00
53843934c0
byuu says: Changelog: - fixed a few TLCS900H CPU and disassembler bugs - hooked up a basic Neo Geo Pocket emulator skeleton and memory map; can run a few instructions from the BIOS - emulated the flash memory used by Neo Geo Pocket games - added sourcery to the higan source archives - fixed ternary expressions in sfc/ppu-fast [hex_usr]
21 lines
1.2 KiB
C++
21 lines
1.2 KiB
C++
#pragma once
|
|
|
|
namespace nall {
|
|
|
|
inline constexpr auto operator"" _Kibit(unsigned long long value) { return value * 1024 / 8; }
|
|
inline constexpr auto operator"" _Mibit(unsigned long long value) { return value * 1024 * 1024 / 8; }
|
|
inline constexpr auto operator"" _Gibit(unsigned long long value) { return value * 1024 * 1024 * 1024 / 8; }
|
|
inline constexpr auto operator"" _Tibit(unsigned long long value) { return value * 1024 * 1024 * 1024 * 1024 / 8; }
|
|
|
|
inline constexpr auto operator"" _KiB(unsigned long long value) { return value * 1024; }
|
|
inline constexpr auto operator"" _MiB(unsigned long long value) { return value * 1024 * 1024; }
|
|
inline constexpr auto operator"" _GiB(unsigned long long value) { return value * 1024 * 1024 * 1024; }
|
|
inline constexpr auto operator"" _TiB(unsigned long long value) { return value * 1024 * 1024 * 1024 * 1024; }
|
|
|
|
inline constexpr auto operator"" _KHz(unsigned long long value) { return value * 1000; }
|
|
inline constexpr auto operator"" _MHz(unsigned long long value) { return value * 1000 * 1000; }
|
|
inline constexpr auto operator"" _GHz(unsigned long long value) { return value * 1000 * 1000 * 1000; }
|
|
inline constexpr auto operator"" _THz(unsigned long long value) { return value * 1000 * 1000 * 1000 * 1000; }
|
|
|
|
}
|