Add missing internal names and weak aliases to assembly versions.
This commit is contained in:
parent
3c596b34a3
commit
3529d6d10f
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: llabs.S,v 1.1 2000/03/06 18:32:24 kleink Exp $ */
|
||||
/* $NetBSD: llabs.S,v 1.2 2001/05/29 13:03:01 kleink Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -40,10 +40,18 @@
|
||||
|
||||
#include <machine/asm.h>
|
||||
#if defined(LIBC_SCCS)
|
||||
RCSID("$NetBSD: llabs.S,v 1.1 2000/03/06 18:32:24 kleink Exp $")
|
||||
RCSID("$NetBSD: llabs.S,v 1.2 2001/05/29 13:03:01 kleink Exp $")
|
||||
#endif
|
||||
|
||||
#ifdef WEAK_ALIAS
|
||||
WEAK_ALIAS(llabs, llabs)
|
||||
#endif
|
||||
|
||||
#ifdef WEAK_ALIAS
|
||||
ENTRY(llabs)
|
||||
#else
|
||||
ENTRY(_llabs)
|
||||
#endif
|
||||
movl 8(%esp),%edx
|
||||
movl 4(%esp),%eax
|
||||
testl %edx,%edx
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: llabs.S,v 1.1 2000/03/06 18:32:25 kleink Exp $ */
|
||||
/* $NetBSD: llabs.S,v 1.2 2001/05/29 13:03:02 kleink Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -43,13 +43,20 @@
|
||||
#if 0
|
||||
RCSID("from: @(#)abs.s 5.1 (Berkeley) 5/12/90")
|
||||
#else
|
||||
RCSID("$NetBSD: llabs.S,v 1.1 2000/03/06 18:32:25 kleink Exp $")
|
||||
RCSID("$NetBSD: llabs.S,v 1.2 2001/05/29 13:03:02 kleink Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#ifdef WEAK_ALIAS
|
||||
WEAK_ALIAS(llabs, _llabs)
|
||||
#endif
|
||||
/* llabs - long long int absolute value */
|
||||
|
||||
#ifdef WEAK_ALIAS
|
||||
ENTRY(_llabs)
|
||||
#else
|
||||
ENTRY(llabs)
|
||||
#endif
|
||||
movl %sp@(8),%d1
|
||||
movl %sp@(4),%d0
|
||||
jge L1
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: llabs.S,v 1.1 2000/03/06 18:32:26 kleink Exp $ */
|
||||
/* $NetBSD: llabs.S,v 1.2 2001/05/29 13:03:02 kleink Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -44,14 +44,22 @@
|
||||
#if 0
|
||||
.asciz "from: @(#)abs.s 8.1 (Berkeley) 6/4/93"
|
||||
#else
|
||||
RCSID("$NetBSD: llabs.S,v 1.1 2000/03/06 18:32:26 kleink Exp $")
|
||||
RCSID("$NetBSD: llabs.S,v 1.2 2001/05/29 13:03:02 kleink Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#ifdef WEAK_ALIAS
|
||||
WEAK_ALIAS(llabs, _llabs)
|
||||
#endif
|
||||
|
||||
/* llabs - long long int absolute value */
|
||||
|
||||
|
||||
#ifdef WEAK_ALIAS
|
||||
ENTRY(_llabs)
|
||||
#else
|
||||
ENTRY(llabs)
|
||||
#endif
|
||||
tst %o0
|
||||
bge 1f
|
||||
nop
|
||||
|
Loading…
Reference in New Issue
Block a user