Pull across arm32 rev 1.5:
ALTENTRY() must die.
This commit is contained in:
parent
72014988d6
commit
0b45f78538
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: byte_swap_2.S,v 1.3 2000/12/14 19:33:00 bjh21 Exp $ */
|
/* $NetBSD: byte_swap_2.S,v 1.4 2000/12/16 14:38:06 bjh21 Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
@ -38,9 +38,10 @@
|
|||||||
|
|
||||||
#include <machine/asm.h>
|
#include <machine/asm.h>
|
||||||
|
|
||||||
ENTRY(bswap16)
|
_ENTRY(_C_LABEL(bswap16))
|
||||||
ALTENTRY(ntohs)
|
_ENTRY(_C_LABEL(ntohs))
|
||||||
ALTENTRY(htons)
|
_ENTRY(_C_LABEL(htons))
|
||||||
|
_PROF_PROLOGUE
|
||||||
and r1, r0, #0xFF00
|
and r1, r0, #0xFF00
|
||||||
mov r0, r0, lsl #8
|
mov r0, r0, lsl #8
|
||||||
orr r0, r0, r1, lsr #8
|
orr r0, r0, r1, lsr #8
|
||||||
|
Loading…
Reference in New Issue
Block a user