Skip to content

Commit

Permalink
document XXH_NO_INLINE_HINTS as being useful for -Og
Browse files Browse the repository at this point in the history
some compiler versions may require it.
  • Loading branch information
Cyan4973 committed Dec 27, 2024
1 parent 5dd1197 commit 574aaba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 574aaba

Please sign in to comment.