diff options
author | bde <bde@FreeBSD.org> | 1998-07-15 11:47:58 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-15 11:47:58 +0000 |
commit | b38d9009d3260f9a56110b5860be90f05b708904 (patch) | |
tree | 822f048a40b1f4a0e30926d4df334145bedc68df /sys/i386/isa/snd/sound.c | |
parent | b17aa4794d69ef7f47c51c673dfc727354733228 (diff) | |
download | FreeBSD-src-b38d9009d3260f9a56110b5860be90f05b708904.zip FreeBSD-src-b38d9009d3260f9a56110b5860be90f05b708904.tar.gz |
Don't cast pointers to longs in asm statements.
These asm statments are not quite as pessimal as when I complained
about them in rev.1.9 of audio.c. They seem to be only 40% slower
than the C version on P5's and the same speed on K6's.
Diffstat (limited to 'sys/i386/isa/snd/sound.c')
-rw-r--r-- | sys/i386/isa/snd/sound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/snd/sound.c b/sys/i386/isa/snd/sound.c index 2e86e20..dc08ca8 100644 --- a/sys/i386/isa/snd/sound.c +++ b/sys/i386/isa/snd/sound.c @@ -1385,7 +1385,7 @@ translate_bytes (const void *table, void *buff, int n) " xlatb\n" " stosb\n" " loop 1b\n": - : "b" ((long) table), "c" (n), "D" ((long) buff), "S" ((long) buff) + : "b" (table), "c" (n), "D" (buff), "S" (buff) : "bx", "cx", "di", "si", "ax"); } } |