Move C/C++ sources to src subdirectory

This commit is contained in:
Vitaliy Filippov
2021-02-25 23:59:03 +03:00
parent 08aed962de
commit bf9a175efc
87 changed files with 194 additions and 189 deletions
+21
View File
@@ -0,0 +1,21 @@
// Copyright (c) Vitaliy Filippov, 2019+
// License: VNPL-1.1 (see README.md for details)
#include <stdio.h>
#include "allocator.h"
int main(int narg, char *args[])
{
allocator a(8192);
for (int i = 0; i < 8192; i++)
{
uint64_t x = a.find_free();
if (x == UINT64_MAX)
{
printf("ran out of space %d\n", i);
return 1;
}
a.set(x, true);
}
return 0;
}