blob: e4cc28840b56664fe6d5fe9c39d72b1cdc3223f1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <euler/heap.hpp>
void operator delete(void *ptr) {
euler::dealloc((uint8_t *)ptr - 8, *(uint64_t *)((uint8_t *)ptr - 8));
}
void operator delete(void *ptr, uint64_t) {
euler::dealloc((uint8_t *)ptr - 8, *(uint64_t *)((uint8_t *)ptr - 8));
}
void operator delete[](void *ptr) {
euler::dealloc((uint8_t *)ptr - 8, *(uint64_t *)((uint8_t *)ptr - 8));
}
void operator delete[](void *ptr, uint64_t) {
euler::dealloc((uint8_t *)ptr - 8, *(uint64_t *)((uint8_t *)ptr - 8));
}
|