(Re-)use the assembly version for labs() as well.
This commit is contained in:
parent
986d236119
commit
b94df6841c
|
@ -1,7 +1,7 @@
|
|||
# $NetBSD: Makefile.inc,v 1.2 1997/12/07 00:19:36 matthias Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.3 2000/02/06 13:14:51 kleink Exp $
|
||||
|
||||
# objects built from assembler sources (need lint stubs)
|
||||
ASSRCS+=abs.S
|
||||
ASSRCS+=abs.S labs.S
|
||||
|
||||
# objects built from C sources
|
||||
SRCS+= div.c labs.c ldiv.c
|
||||
SRCS+= div.c ldiv.c
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/* $NetBSD: labs.S,v 1.1 2000/02/06 13:14:51 kleink Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992 Helsinki University of Technology
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Permission to use, copy, modify and distribute this software and its
|
||||
* documentation is hereby granted, provided that both the copyright
|
||||
* notice and this permission notice appear in all copies of the
|
||||
* software, derivative works or modified versions, and any portions
|
||||
* thereof, and that both notices appear in supporting documentation.
|
||||
*
|
||||
* HELSINKI UNIVERSITY OF TECHNOLOGY ALLOWS FREE USE OF THIS SOFTWARE IN
|
||||
* ITS "AS IS" CONDITION. HELSINKI UNIVERSITY OF TECHNOLOGY DISCLAIMS ANY
|
||||
* LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
|
||||
* USE OF THIS SOFTWARE.
|
||||
*/
|
||||
/*
|
||||
* HISTORY
|
||||
* 29-Apr-92 Johannes Helander (jvh) at Helsinki University of Technology
|
||||
* Created.
|
||||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
|
||||
#if defined(LIBC_SCCS)
|
||||
RCSID("$NetBSD: labs.S,v 1.1 2000/02/06 13:14:51 kleink Exp $")
|
||||
#endif
|
||||
|
||||
ENTRY(labs)
|
||||
absd S_ARG0,r0
|
||||
ret 0
|
Loading…
Reference in New Issue