From b08d537d57b90e3469ad293d89383ad8e4d9caee Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 16 Feb 2024 15:38:31 +0100 Subject: Just use 64 instead of UINT64_WIDTH --- make.c | 2 -- src/ahoy/emulator.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/make.c b/make.c index 53860cd..f1ac06a 100644 --- a/make.c +++ b/make.c @@ -24,8 +24,6 @@ #define CC "cc" #ifdef __GLIBC__ # define CFLAGS WARN, "-std=c2x", "-D_GNU_SOURCE" -#elifdef __APPLE__ /* TODO: Improve this check */ -# define CFLAGS WARN, "-std=c2x", "-DUINT64_WIDTH=64" #else # define CFLAGS WARN, "-std=c2x" #endif diff --git a/src/ahoy/emulator.c b/src/ahoy/emulator.c index edb3512..ff7f97d 100644 --- a/src/ahoy/emulator.c +++ b/src/ahoy/emulator.c @@ -214,7 +214,7 @@ opexec(uint16_t op) if (scr_row >= lengthof(c8.screen)) break; - msk = ((uint64_t)spr_row << (UINT64_WIDTH - 8)) >> c8.V[x]; + msk = ((uint64_t)spr_row << (64 - 8)) >> c8.V[x]; c8.V[0xF] = (bool)(c8.screen[scr_row] & msk); c8.screen[scr_row] ^= msk; } -- cgit v1.2.3