From 5e40840d16315b978bd57684ae8634eb23e3a1c4 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Sun, 11 Jun 2023 11:41:49 +0600 Subject: [PATCH] Force 'page_in_evict_list' to be always inlined --- src/include/86box/mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/86box/mem.h b/src/include/86box/mem.h index 8915b149c..102e9f449 100644 --- a/src/include/86box/mem.h +++ b/src/include/86box/mem.h @@ -229,7 +229,7 @@ typedef struct page_t { extern uint32_t purgable_page_list_head; static inline int -page_in_evict_list(page_t *p) +page_in_evict_list(page_t *p) __attribute__((always_inline)) { return (p->evict_prev != EVICT_NOT_IN_LIST); }