#include <extdef.h>
-#include <assert.h>
-#include <string.h>
-#include <stdlib.h>
+#include <cassert>
+#include <cstring>
+#include <cstdlib>
#include <cmath>
#include "logic.hpp"
// Slide right and zoom out at the beginnings of mip-map
// blocks until we encounter a change
- while (1) {
+ while (true) {
const int level_scale_power =
(level + 1) * MipMapScalePower;
const uint64_t offset =
// Zoom in, and slide right until we encounter a change,
// and repeat until we reach min_level
- while (1) {
+ while (true) {
assert(mip_map_[level].data);
const int level_scale_power =