Skip to content
Myr

update README with info about SSE2 on GCC

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent e88fff6 · Browse files · 2 files+32 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+32 added−0 removed

  • other:+32 added−0 removed

2 files+32 added−0 removed

modified:tools/README.footer.md+16 added
modified:README.md+16 added
56 unmodified lines
5758No, because it's public domain you can freely relicense it to whatever license your new59library wants to be.6061#### What's the deal with SSE support in GCC-based compilers?6263stb_image will either use SSE2 (if you compile with -msse2) or64will not use any SIMD at all, rather than trying to detect the65processor at runtime and handle it correctly. As I understand it,66the approved path in GCC for runtime-detection require67you to use multiple source files, one for each CPU configuration.68Because stb_image is a header-file library that compiles in only69one source file, there's no approved way to build both an70SSE-enabled and a non-SSE-enabled variation.7172While we've tried to work around it, we've had multiple issues over73the years due to specific versions of gcc breaking what we're doing,74so we've given up on it. See https://github.com/nothings/stb/issues/28075and https://github.com/nothings/stb/issues/410 for examples.7677#### Some of these libraries seem redundant to existing open source libraries. Are they better somehow?7879Generally they're only better in that they're easier to integrate,80easier to use, and easier to release (single file; good API; no
78 unmodified lines