xref: /csrg-svn/lib/libc/sparc/stdlib/abs.s (revision 61172)
154398Storek/*
2*61172Sbostic * Copyright (c) 1992, 1993
3*61172Sbostic *	The Regents of the University of California.  All rights reserved.
454398Storek *
554398Storek * This software was developed by the Computer Systems Engineering group
654398Storek * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
754398Storek * contributed to Berkeley.
854398Storek *
954398Storek * %sccs.include.redist.c%
1054398Storek *
1154398Storek * from: $Header: abs.s,v 1.1 91/07/06 18:01:57 torek Exp $
1254398Storek */
1354398Storek
1454398Storek#if defined(LIBC_SCCS) && !defined(lint)
15*61172Sbostic	.asciz "@(#)abs.s	8.1 (Berkeley) 06/04/93"
1654398Storek#endif /* LIBC_SCCS and not lint */
1754398Storek
1854398Storek/* abs - int absolute value */
1954398Storek
2054398Storek#include "DEFS.h"
2154398Storek
2254398StorekENTRY(abs)
2354398Storek	tst	%o0
2454398Storek	bl,a	1f
2554398Storek	neg	%o0
2654398Storek1:	retl
2754398Storek	nop
28