Use WEAK_ALIAS.

Add imaxabs weak alias.
This commit is contained in:
matt 2008-08-04 20:21:26 +00:00
parent 3a8b66906e
commit e796a34c9c
1 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: labs.S,v 1.1 2001/06/19 00:25:04 fvdl Exp $ */
/* $NetBSD: labs.S,v 1.2 2008/08/04 20:21:26 matt Exp $ */
/*
* Written by Frank van der Linden (fvdl@wasabisystems.com)
@ -8,11 +8,22 @@
#include <machine/asm.h>
#if defined(LIBC_SCCS)
RCSID("$NetBSD: labs.S,v 1.1 2001/06/19 00:25:04 fvdl Exp $")
RCSID("$NetBSD: labs.S,v 1.2 2008/08/04 20:21:26 matt Exp $")
#endif
#ifdef WEAK_ALIAS
WEAK_ALIAS(imaxabs, _llabs)
WEAK_ALIAS(llabs, _llabs)
WEAK_ALIAS(labs, _labs)
#endif
#ifdef WEAK_ALIAS
ENTRY(_llabs)
ENTRY(_labs)
#else
ENTRY(llabs)
ENTRY(labs)
#endif
movq %rdi,%rax
testq %rax,%rax
jns 1f