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:
David E. O'Brien 1999-11-15 23:27:40 +00:00
parent 0513a1a1cb
commit fe3f39d6d5
1 changed files with 6 additions and 11 deletions

View File

@ -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]];
}