mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-14 16:40:48 +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!). |
||
---|---|---|
.. | ||
cl_avi.c | ||
cl_cgame.c | ||
cl_cin.c | ||
cl_console.c | ||
cl_curl.c | ||
cl_curl.h | ||
cl_input.c | ||
cl_keys.c | ||
cl_main.c | ||
cl_net_chan.c | ||
cl_parse.c | ||
cl_scrn.c | ||
cl_ui.c | ||
client.h | ||
keycodes.h | ||
keys.h | ||
libmumblelink.c | ||
libmumblelink.h | ||
qal.c | ||
qal.h | ||
snd_adpcm.c | ||
snd_altivec.c | ||
snd_codec.c | ||
snd_codec.h | ||
snd_codec_ogg.c | ||
snd_codec_opus.c | ||
snd_codec_wav.c | ||
snd_dma.c | ||
snd_local.h | ||
snd_main.c | ||
snd_mem.c | ||
snd_mix.c | ||
snd_openal.c | ||
snd_public.h | ||
snd_wavelet.c |