equal
deleted
inserted
replaced
37 #include "runtime/os.hpp" |
37 #include "runtime/os.hpp" |
38 #include "utilities/align.hpp" |
38 #include "utilities/align.hpp" |
39 #include "utilities/debug.hpp" |
39 #include "utilities/debug.hpp" |
40 |
40 |
41 inline uint8_t ZPage::type_from_size(size_t size) const { |
41 inline uint8_t ZPage::type_from_size(size_t size) const { |
42 switch (size) { |
42 if (size == ZPageSizeSmall) { |
43 case ZPageSizeSmall: |
|
44 return ZPageTypeSmall; |
43 return ZPageTypeSmall; |
45 |
44 } else if (size == ZPageSizeMedium) { |
46 case ZPageSizeMedium: |
|
47 return ZPageTypeMedium; |
45 return ZPageTypeMedium; |
48 |
46 } else { |
49 default: |
|
50 return ZPageTypeLarge; |
47 return ZPageTypeLarge; |
51 } |
48 } |
52 } |
49 } |
53 |
50 |
54 inline const char* ZPage::type_to_string() const { |
51 inline const char* ZPage::type_to_string() const { |