mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
AK: Implement terabytes, petabytes, exabytes
This commit is contained in:
parent
7ffc6c371a
commit
607fac662d
3 changed files with 20 additions and 12 deletions
|
@ -74,9 +74,12 @@ using __ptrdiff_t = __PTRDIFF_TYPE__;
|
|||
|
||||
using FlatPtr = Conditional<sizeof(void*) == 8, u64, u32>::Type;
|
||||
|
||||
constexpr unsigned KiB = 1024;
|
||||
constexpr unsigned MiB = KiB * KiB;
|
||||
constexpr unsigned GiB = KiB * KiB * KiB;
|
||||
constexpr u64 KiB = 1024;
|
||||
constexpr u64 MiB = KiB * KiB;
|
||||
constexpr u64 GiB = KiB * KiB * KiB;
|
||||
constexpr u64 TiB = KiB * KiB * KiB * KiB;
|
||||
constexpr u64 PiB = KiB * KiB * KiB * KiB * KiB;
|
||||
constexpr u64 EiB = KiB * KiB * KiB * KiB * KiB * KiB;
|
||||
|
||||
namespace std {
|
||||
using nullptr_t = decltype(nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue