]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: dmix: assembly: fix the interface for safety (mmx)
authorFrédéric Recoules <frederic.recoules@orange.fr>
Wed, 6 May 2020 17:19:22 +0000 (19:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 May 2020 20:26:04 +0000 (22:26 +0200)
commit0fd7f0cdc5e663e69486d17b0207434396620be6
treec36d45d2c20e1eee9ddb65d0b8fa243928da1d40
parent01d8a6e03a4c1055e5c0ef6d5b6cfdadce545007
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>
configure.ac
src/pcm/pcm_dmix_i386.h
src/pcm/pcm_dmix_x86_64.h