mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
pcm: dmix: assembly: fix the interface for safety (mmx)
- add mm0 in the clobber list if the compiler is aware of the mmx technology; - otherwise, add the mmx aliased x87 floating point registers in the clobbers; - the configure now checks if the compiler is aware of the MMX technology. The compiler assumes none of the mmx or x87 registers are used by the function. If it chooses to store some data in them, they will be overwritten by the chunk. Recall that any mmx instruction invalidate the whole set of x87 floating point registers. Note: currently does not impact the binary output. Signed-off-by: Frédéric Recoules <frederic.recoules@orange.fr> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
01d8a6e03a
commit
0fd7f0cdc5
3 changed files with 19 additions and 0 deletions
|
|
@ -516,6 +516,13 @@ if test -z "$gcc_have_atomics"; then
|
|||
fi
|
||||
AC_MSG_RESULT($gcc_have_atomics)
|
||||
|
||||
dnl check mmx register for pcm_dmix_i386
|
||||
|
||||
AC_TRY_LINK([],
|
||||
[__asm__ volatile ("" : : : "mm0");],
|
||||
[AC_DEFINE([HAVE_MMX], "1", [MMX technology is enabled])],
|
||||
[])
|
||||
|
||||
PCM_PLUGIN_LIST="copy linear route mulaw alaw adpcm rate plug multi shm file null empty share meter hooks lfloat ladspa dmix dshare dsnoop asym iec958 softvol extplug ioplug mmap_emul"
|
||||
|
||||
build_pcm_plugin="no"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue