From 9d9d9f3826496d08f779936368755e01781a3aac Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 12 Apr 2025 16:48:02 +0100 Subject: Update info in the readme and a few comments --- src/fastfwd.h | 2 +- src/langext.h | 2 +- src/x86.c | 2 +- src/x86.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/fastfwd.h b/src/fastfwd.h index 6313e0c..e76c92c 100644 --- a/src/fastfwd.h +++ b/src/fastfwd.h @@ -20,7 +20,7 @@ /* * Fast-forwards in-game time by a number of seconds, ignoring the usual * host_framerate and host_timescale settings. timescale controls how many - * seconds of game pass per real-time second. + * seconds of game time pass per real-time second. */ void fastfwd(float seconds, float timescale); diff --git a/src/langext.h b/src/langext.h index 0a17cb2..de96ef5 100644 --- a/src/langext.h +++ b/src/langext.h @@ -26,7 +26,7 @@ #define assume(x) ((void)(__assume(x), 0)) #define cold __declspec(noinline) #else -static inline _Noreturn void _invoke_ub(void) {} +static inline _Noreturn void _invoke_ub() {} #define unreachable (_invoke_ub()) #define assume(x) ((void)(!!(x) || (_invoke_ub(), 0))) #define cold diff --git a/src/x86.c b/src/x86.c index 5bd9e4c..b017a70 100644 --- a/src/x86.c +++ b/src/x86.c @@ -18,7 +18,7 @@ #include "x86.h" static int mrmsib(const uchar *p, int addrlen) { - // I won't lie: I thought I almost understood this, but after Bill walked me + // I won't lie: I thought I almost understood this, but after bill walked me // through correcting a bunch of wrong cases I now realise that I don't // really understand it at all. If it helps, I used this as a reference: // https://github.com/Nomade040/length-disassembler/blob/e8b34546/ldisasm.cpp#L14 diff --git a/src/x86.h b/src/x86.h index 04418d6..92e4ccb 100644 --- a/src/x86.h +++ b/src/x86.h @@ -558,7 +558,7 @@ enum { * Returns the length of an instruction, or -1 if it's a "known unknown" or * invalid instruction. Doesn't handle unknown unknowns: may explode or hang on * arbitrary untrusted data. Also doesn't handle, among other things, 3DNow!, - * SSE, MMX, AVX, and such. Aims to be small and fast rather than comprehensive. + * SSE3+, MMX, AVX, and such. Aims to be small and fast, not comprehensive. */ int x86_len(const void *insn); -- cgit v1.2.3-54-g00ecf