xref: /csrg-svn/lib/libc/vax/stdlib/abs.s (revision 22290)
1/*
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved.  The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
7#ifndef lint
8	.asciz	"@(#)abs.s	5.2 (Berkeley) 06/05/85"
9#endif not lint
10
11
12/* abs - int absolute value */
13
14#include "DEFS.h"
15
16ENTRY(abs, 0)
17	movl	4(ap),r0
18	bgeq	1f
19	mnegl	r0,r0
201:
21	ret
22