aboutsummaryrefslogtreecommitdiff
path: root/gnu/libexec/uucp/libuucp/memchr.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1995-08-19 21:30:30 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1995-08-19 21:30:30 +0000
commit6ec4b3339bbd81ee311eb50fe25a13676e2a02a7 (patch)
treee1ea6a3b65e0f2e9f5d6e0f0f3956a82ada4b85b /gnu/libexec/uucp/libuucp/memchr.c
parentea76f9453e3fc27708741a121e0757ba0c87bd05 (diff)
Notes
Diffstat (limited to 'gnu/libexec/uucp/libuucp/memchr.c')
-rw-r--r--gnu/libexec/uucp/libuucp/memchr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gnu/libexec/uucp/libuucp/memchr.c b/gnu/libexec/uucp/libuucp/memchr.c
index fd6eb8335793..c74315421424 100644
--- a/gnu/libexec/uucp/libuucp/memchr.c
+++ b/gnu/libexec/uucp/libuucp/memchr.c
@@ -17,8 +17,8 @@ Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If
-not, write to the Free Software Foundation, Inc., 675 Mass Ave,
-Cambridge, MA 02139, USA.
+not, write to the Free Software Foundation, Inc., 59 Temple Place -
+Suite 330, Boston, MA 02111-1307, USA.
This file was modified slightly by Ian Lance Taylor, May 1992, for
Taylor UUCP. It assumes 32 bit longs. I'm willing to trust that any
@@ -53,9 +53,9 @@ memchr (s, c, n)
/* Bits 31, 24, 16, and 8 of this number are zero. Call these bits
the "holes." Note that there is a hole just to the left of
each byte, with an extra at the end:
-
+
bits: 01111110 11111110 11111110 11111111
- bytes: AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDD
+ bytes: AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDD
The 1-bits make sure that carries propagate to the next 0-bit.
The 0-bits provide holes for carries to fall into. */
@@ -108,10 +108,10 @@ memchr (s, c, n)
/* Add MAGIC_BITS to LONGWORD. */
if ((((longword + magic_bits)
-
+
/* Set those bits that were unchanged by the addition. */
^ ~longword)
-
+
/* Look at only the hole bits. If any of the hole bits
are unchanged, most likely one of the bytes was a
zero. */