diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-09-29 17:05:29 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-09-29 17:05:29 +0000 |
commit | a6f0db1e7f620f23b4148d060496bee44db140ea (patch) | |
tree | d02a065e6bb9ce0911bcf78f271856e1e895c23e /media-libs/openal | |
parent | mark ~ppc thanks to Albert Zeyer (Bug #149519) (diff) | |
download | gentoo-2-a6f0db1e7f620f23b4148d060496bee44db140ea.tar.gz gentoo-2-a6f0db1e7f620f23b4148d060496bee44db140ea.tar.bz2 gentoo-2-a6f0db1e7f620f23b4148d060496bee44db140ea.zip |
Added patch for MMX and closing bug #145245.
(Portage version: 2.1.2_pre1-r4)
Diffstat (limited to 'media-libs/openal')
-rw-r--r-- | media-libs/openal/ChangeLog | 6 | ||||
-rw-r--r-- | media-libs/openal/files/0.0.8/003_all_mmx.patch | 27 |
2 files changed, 32 insertions, 1 deletions
diff --git a/media-libs/openal/ChangeLog b/media-libs/openal/ChangeLog index 39b6429e1381..ef1de0a7f520 100644 --- a/media-libs/openal/ChangeLog +++ b/media-libs/openal/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-libs/openal # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/openal/ChangeLog,v 1.67 2006/09/29 17:02:38 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/openal/ChangeLog,v 1.68 2006/09/29 17:05:29 wolf31o2 Exp $ + + 29 Sep 2006; Chris Gianelloni <wolf31o2@gentoo.org> + +files/0.0.8/003_all_mmx.patch: + Added patch for MMX and closing bug #145245. *openal-0.0.8-r1 (29 Sep 2006) diff --git a/media-libs/openal/files/0.0.8/003_all_mmx.patch b/media-libs/openal/files/0.0.8/003_all_mmx.patch new file mode 100644 index 000000000000..d1d9ec63eccd --- /dev/null +++ b/media-libs/openal/files/0.0.8/003_all_mmx.patch @@ -0,0 +1,27 @@ +--- src/arch/i386/x86_floatmul.c ++++ src/arch/i386/x86_floatmul.c +@@ -27,6 +27,7 @@ + /* MMX routine needs 16 */ + #define SCALING_POWER 16 + #define SCALING_FACTOR (1 << SCALING_POWER) ++#define MIN_ENTER_SIMD_LEN 48 + + void _alFloatMul(ALshort *bpt, ALfloat sa, ALuint len); + +@@ -34,6 +35,8 @@ + ALint scaled_sa = sa * SCALING_FACTOR; + ALint iter; + ++ if (len < MIN_ENTER_SIMD_LEN) ++ goto skip_simd; + #ifdef __MMX__ + if (_alHaveMMX()) { + union { +@@ -93,6 +96,7 @@ + __builtin_ia32_emms(); + } + #endif /* __MMX__ */ ++skip_simd: + + while(len--) { + iter = *bpt; |