summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/sound
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-15 11:47:58 +0000
committerbde <bde@FreeBSD.org>1998-07-15 11:47:58 +0000
commitb38d9009d3260f9a56110b5860be90f05b708904 (patch)
tree822f048a40b1f4a0e30926d4df334145bedc68df /sys/i386/isa/sound
parentb17aa4794d69ef7f47c51c673dfc727354733228 (diff)
downloadFreeBSD-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/sound')
-rw-r--r--sys/i386/isa/sound/audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/sound/audio.c b/sys/i386/isa/sound/audio.c
index b7d25a4..31f952e 100644
--- a/sys/i386/isa/sound/audio.c
+++ b/sys/i386/isa/sound/audio.c
@@ -171,7 +171,7 @@ translate_bytes(const void *table, void *buff, int n)
"xlatb\n\t"
"stosb\n\t"
"loop 1b\n\t":
- :"b"((long) table), "c"(n), "D"((long) buff), "S"((long) buff)
+ :"b"(table), "c"(n), "D"(buff), "S"(buff)
:"bx", "cx", "di", "si", "ax");
}
}
OpenPOWER on IntegriCloud