Combo changes
- move eval_material to eval-simple.c - move phase_t to eval.h - init.c: add eval init - piece.h: add piece_midval/piece_endval - fen.c: add phase calculation - eval-simple: fix calc_phase
This commit is contained in:
@@ -88,7 +88,7 @@ void *alloc_aligned_hugepage(size_t size)
|
||||
/* round size (up) to alignment */
|
||||
size_t rounded = (size + PAGE_SIZE - 1) & -PAGE_SIZE;
|
||||
void *mem = alloc_aligned(PAGE_SIZE, rounded);
|
||||
printf("size=%zu rounded=%zu\n", size, rounded);
|
||||
//printf("size=%zu rounded=%zu\n", size, rounded);
|
||||
//void *mem = aligned_alloc(HUGE_PAGE_SIZE, size);
|
||||
if (mem) {
|
||||
if (madvise(mem, rounded, MADV_HUGEPAGE | MADV_RANDOM))
|
||||
|
Reference in New Issue
Block a user