From 574aabad87b2ab9440403e92e1075ef48554eb87 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 26 Dec 2024 17:06:27 -0800 Subject: [PATCH] document XXH_NO_INLINE_HINTS as being useful for -Og some compiler versions may require it. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index de0ece67..806c902f 100644 --- a/README.md +++ b/README.md @@ -157,7 +157,7 @@ The following macros can be set at compilation time to modify `libxxhash`'s beha Defining this macro to 1 will mark all internal functions as `static`, allowing the compiler to decide whether to inline a function or not. This is very useful when optimizing for smallest binary size, and is automatically defined when compiling with `-O0`, `-Os`, `-Oz`, or `-fno-inline` on GCC and Clang. - This might also increase performance depending on compiler and architecture. + It may also be required to successfully compile using `-Og`, depending on compiler version. - `XXH_SIZE_OPT`: `0`: default, optimize for speed `1`: default for `-Os` and `-Oz`: disables some speed hacks for size optimization `2`: makes code as small as possible, performance may cry