summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-09-05 16:54:41 +0000
committermiod <miod@openbsd.org>2011-09-05 16:54:41 +0000
commit30e576c4eeb257ba6ec8768ec1af8ca60c705d90 (patch)
tree178ed779dd0d87498e36af9356123482a64e924c
parentknock out a useless Ns; (diff)
downloadwireguard-openbsd-30e576c4eeb257ba6ec8768ec1af8ca60c705d90.tar.xz
wireguard-openbsd-30e576c4eeb257ba6ec8768ec1af8ca60c705d90.zip
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.
-rw-r--r--sys/dev/tc/bba.c6
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;