mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
5909b9a1cf
Moved all the code using Altivec intrinsics to separate files. This means we can optionally use GCC's -maltivec on just these files, which are chosen at runtime if the CPU supports Altivec, and compile the rest without it, making a single binary that has Altivec optimizations but can still work on G3. Unlike SSE and similar extensions on x86, there does not seem to be a way to enable conditional, targeted use of Altivec based on runtime detection (which is what ioquake3 wants to do) without also giving the compiler permission to use Altivec in code generation; so to not crash on CPUs that do not implement Altivec, we'll have to turn it off altogether, except in translation units that are only entered when runtime Altivec detection is successful. This has been tested on Linux PPC (on an Altivec-enabled CPU), but we may need further work after testing trickles out to other PowerPC devices and ancient Mac OS X builds. I did a little work on this patch, but the majority of the effort belongs to Simon McVittie (thanks!). |
||
---|---|---|
.. | ||
AL | ||
asm | ||
autoupdater | ||
botlib | ||
cgame | ||
client | ||
curl-7.54.0/include | ||
game | ||
jpeg-8c | ||
libogg-1.3.3 | ||
libs | ||
libvorbis-1.3.6 | ||
null | ||
opus-1.2.1 | ||
opusfile-0.9 | ||
q3_ui | ||
qcommon | ||
renderercommon | ||
renderergl1 | ||
renderergl2 | ||
sdl | ||
SDL2 | ||
server | ||
sys | ||
tools | ||
ui | ||
zlib |