mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 04:12:39 +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!). |
||
---|---|---|
.. | ||
tr_altivec.c | ||
tr_animation.c | ||
tr_backend.c | ||
tr_bsp.c | ||
tr_cmds.c | ||
tr_curve.c | ||
tr_flares.c | ||
tr_image.c | ||
tr_init.c | ||
tr_light.c | ||
tr_local.h | ||
tr_main.c | ||
tr_marks.c | ||
tr_mesh.c | ||
tr_model.c | ||
tr_model_iqm.c | ||
tr_scene.c | ||
tr_shade.c | ||
tr_shade_calc.c | ||
tr_shader.c | ||
tr_shadows.c | ||
tr_sky.c | ||
tr_subs.c | ||
tr_surface.c | ||
tr_world.c |