mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Removed the asm version of conv(). This is should be faster in its new
C form. See src/sys/i386/isa/sound/audio.c rev.1.23 Submitted by: bde
This commit is contained in:
parent
0513a1a1cb
commit
fe3f39d6d5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=53204
@ -182,18 +182,13 @@ static void pca_continue __P((void));
|
||||
static void pca_init __P((void));
|
||||
static void pca_pause __P((void));
|
||||
|
||||
static __inline void
|
||||
conv(const void *table, void *buff, unsigned int n)
|
||||
static void
|
||||
conv(const unsigned char *table, unsigned char *buff, unsigned n)
|
||||
{
|
||||
__asm__("1:\tmovb (%2), %3\n"
|
||||
"\txlatb\n"
|
||||
"\tmovb %3, (%2)\n"
|
||||
"\tinc %2\n"
|
||||
"\tdec %1\n"
|
||||
"\tjnz 1b\n"
|
||||
: "=b" (table), "=c" (n), "=D" (buff), "=a" ((char)n) /*all dummies*/
|
||||
: "0" (table), "1" (n), "2" (buff), "3" ((char)n)
|
||||
/* clobber list covered by matching out/in registers */ );
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; i < n; i++)
|
||||
buff[i] = table[buff[i]];
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user