aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/snd_mix.c
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-17 14:59:28 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-17 14:59:28 +0000
commitff4134a20ff8ff484bc1a9cfd98c4eebe1eadecf (patch)
tree8bb6ef50a80dd700d749216b705b0f212ad1485e /code/client/snd_mix.c
parent4683c255ae5ba1f858d1b010d46a42e662029794 (diff)
downloadioquake3-aero-ff4134a20ff8ff484bc1a9cfd98c4eebe1eadecf.tar.gz
ioquake3-aero-ff4134a20ff8ff484bc1a9cfd98c4eebe1eadecf.zip
apply altivec fixes from Emanuel Steen (#2383)
git-svn-id: svn://svn.icculus.org/quake3/trunk@93 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/snd_mix.c')
-rw-r--r--code/client/snd_mix.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/code/client/snd_mix.c b/code/client/snd_mix.c
index 02be59c..2915b43 100644
--- a/code/client/snd_mix.c
+++ b/code/client/snd_mix.c
@@ -22,6 +22,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// snd_mix.c -- portable code to mix sounds for snd_dma.c
#include "snd_local.h"
+#if idppc_altivec
+#include <altivec.h>
+#endif
static portable_samplepair_t paintbuffer[PAINTBUFFER_SIZE];
static int snd_vol;
@@ -301,9 +304,9 @@ static void S_PaintChannelFrom16( channel_t *ch, const sfx_t *sc, int count, int
vector signed int merge0, merge1;
vector signed int d0, d1, d2, d3;
vector unsigned char samplePermute0 =
- (vector unsigned char)(0, 1, 4, 5, 0, 1, 4, 5, 2, 3, 6, 7, 2, 3, 6, 7);
+ (vector unsigned char){0, 1, 4, 5, 0, 1, 4, 5, 2, 3, 6, 7, 2, 3, 6, 7};
vector unsigned char samplePermute1 =
- (vector unsigned char)(8, 9, 12, 13, 8, 9, 12, 13, 10, 11, 14, 15, 10, 11, 14, 15);
+ (vector unsigned char){8, 9, 12, 13, 8, 9, 12, 13, 10, 11, 14, 15, 10, 11, 14, 15};
vector unsigned char loadPermute0, loadPermute1;
// Rather than permute the vectors after we load them to do the sample