-
Notifications
You must be signed in to change notification settings - Fork 1
/
poplnkc.c
executable file
·31 lines (30 loc) · 1.14 KB
/
poplnkc.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <stdio.h>
#include <stdint.h>
int main() {
struct link {
struct link* next;
long long slot[8];
} stack;
struct link* sp = &stack;
struct link* free = &stack;
struct link* tmp = 0;
stack.next = &stack;
for (uint64_t i = 0; i < 8388608; ++i) {
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
tmp = sp->next, sp->next = free, free = sp, sp = tmp;
}
}