diff --git a/lib/libc/arch/i386/stdlib/llabs.S b/lib/libc/arch/i386/stdlib/llabs.S index 9e6739c7ae72..b4d065cc04b1 100644 --- a/lib/libc/arch/i386/stdlib/llabs.S +++ b/lib/libc/arch/i386/stdlib/llabs.S @@ -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 #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 diff --git a/lib/libc/arch/m68k/stdlib/llabs.S b/lib/libc/arch/m68k/stdlib/llabs.S index 311688e2aa41..ab5dc798c168 100644 --- a/lib/libc/arch/m68k/stdlib/llabs.S +++ b/lib/libc/arch/m68k/stdlib/llabs.S @@ -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 diff --git a/lib/libc/arch/sparc/stdlib/llabs.S b/lib/libc/arch/sparc/stdlib/llabs.S index 7bcab4a7468e..d06728d81aa2 100644 --- a/lib/libc/arch/sparc/stdlib/llabs.S +++ b/lib/libc/arch/sparc/stdlib/llabs.S @@ -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