aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-04-12 16:48:02 +0100
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-04-12 16:48:49 +0100
commit9d9d9f3826496d08f779936368755e01781a3aac (patch)
tree5916fd8aff13b662f0a95cacf72a733be5b27a0b /src
parentac876ed2ef1c12f58b3426ffb3cb9d405428c12c (diff)
downloadsst-9d9d9f3826496d08f779936368755e01781a3aac.tar.gz
sst-9d9d9f3826496d08f779936368755e01781a3aac.zip
Update info in the readme and a few comments
Diffstat (limited to 'src')
-rw-r--r--src/fastfwd.h2
-rw-r--r--src/langext.h2
-rw-r--r--src/x86.c2
-rw-r--r--src/x86.h2
4 files changed, 4 insertions, 4 deletions
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);