diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-09-05 16:54:42 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-09-05 16:54:42 +0000 |
commit | 1781b2b10cfcdd88b814ab250fbad234b8af23e7 (patch) | |
tree | 50d611fc5b812f4bea2cb707e99a84fad7b0c044 /sys | |
parent | 1f1a47eef4b54bda76f5d0f6c6f8b1907dd48121 (diff) |
No need to check for the size to be a multiple of 4 in the alpha-specific
code to process four samples at a time - we can do as much sets of 4 as possible
before falling back to the remainder processed one byte at a time.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/tc/bba.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/tc/bba.c b/sys/dev/tc/bba.c index dede148b92e..5ab8476457a 100644 --- a/sys/dev/tc/bba.c +++ b/sys/dev/tc/bba.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bba.c,v 1.1 2011/09/04 20:10:18 miod Exp $ */ +/* $OpenBSD: bba.c,v 1.2 2011/09/05 16:54:41 miod Exp $ */ /* $NetBSD: bba.c,v 1.38 2011/06/04 01:27:57 tsutsui Exp $ */ /* * Copyright (c) 2011 Miodrag Vallat. @@ -641,7 +641,7 @@ bba_input_conv(void *v, u_char *p, int cc) /* convert data from dma stream - one byte per longword<23:16> */ #ifdef __alpha__ /* try to avoid smaller than 32 bit accesses whenever possible */ - if ((cc & 3) == 0 && ((vaddr_t)p & 3) == 0) { + if (((vaddr_t)p & 3) == 0) { while (cc >= 4) { uint32_t fp; @@ -681,7 +681,7 @@ bba_output_conv(void *v, u_char *p, int cc) q += cc; #ifdef __alpha__ /* try to avoid smaller than 32 bit accesses whenever possible */ - if ((cc & 3) == 0 && ((vaddr_t)p & 3) == 0) { + if (((vaddr_t)p & 3) == 0) { while (cc >= 4) { uint32_t fp; |