ALTENTRY() must die.

This commit is contained in:
mycroft 2000-12-14 22:00:20 +00:00
parent 1c726aab7f
commit 6d9be19e76
4 changed files with 22 additions and 18 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: byte_swap_2.S,v 1.4 2000/12/12 17:53:20 mycroft Exp $ */
/* $NetBSD: byte_swap_2.S,v 1.5 2000/12/14 22:00:20 mycroft Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -38,9 +38,10 @@
#include <machine/asm.h>
ENTRY(bswap16)
ALTENTRY(ntohs)
ALTENTRY(htons)
_ENTRY(_C_LABEL(bswap16))
_ENTRY(_C_LABEL(ntohs))
_ENTRY(_C_LABEL(htons))
_PROF_PROLOGUE
and r1, r0, #0xFF00
mov r0, r0, lsl #8
orr r0, r0, r1, lsr #8

View File

@ -1,4 +1,4 @@
/* $NetBSD: byte_swap_4.S,v 1.3 2000/12/12 17:53:20 mycroft Exp $ */
/* $NetBSD: byte_swap_4.S,v 1.4 2000/12/14 22:00:20 mycroft Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -38,9 +38,10 @@
#include <machine/asm.h>
ENTRY(bswap32)
ALTENTRY(ntohl)
ALTENTRY(htonl)
_ENTRY(_C_LABEL(bswap32))
_ENTRY(_C_LABEL(ntohl))
_ENTRY(_C_LABEL(htonl))
_PROF_PROLOGUE
eor r1, r0, r0, ror #16
bic r1, r1, #0x00FF0000
mov r0, r0, ror #8

View File

@ -1,4 +1,4 @@
/* $NetBSD: byte_swap_2.S,v 1.1 1999/01/15 13:31:30 bouyer Exp $ */
/* $NetBSD: byte_swap_2.S,v 1.2 2000/12/14 22:00:20 mycroft Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -40,12 +40,13 @@
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: byte_swap_2.S,v 1.1 1999/01/15 13:31:30 bouyer Exp $")
RCSID("$NetBSD: byte_swap_2.S,v 1.2 2000/12/14 22:00:20 mycroft Exp $")
#endif
ENTRY(bswap16)
ALTENTRY(ntohs)
ALTENTRY(htons)
_ENTRY(_C_LABEL(bswap16))
_ENTRY(_C_LABEL(ntohs))
_ENTRY(_C_LABEL(htons))
_PROF_PROLOGUE
movzwl 4(%esp),%eax
rorw $8,%ax
ret

View File

@ -1,4 +1,4 @@
/* $NetBSD: byte_swap_4.S,v 1.1 1999/01/15 13:31:30 bouyer Exp $ */
/* $NetBSD: byte_swap_4.S,v 1.2 2000/12/14 22:00:20 mycroft Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -40,12 +40,13 @@
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: byte_swap_4.S,v 1.1 1999/01/15 13:31:30 bouyer Exp $")
RCSID("$NetBSD: byte_swap_4.S,v 1.2 2000/12/14 22:00:20 mycroft Exp $")
#endif
ENTRY(bswap32)
ALTENTRY(ntohl)
ALTENTRY(htonl)
_ENTRY(_C_LABEL(bswap32))
_ENTRY(_C_LABEL(ntohl))
_ENTRY(_C_LABEL(htonl))
_PROF_PROLOGUE
movl 4(%esp),%eax
rorw $8,%ax
roll $16,%eax