Commit | Line | Data |
---|---|---|
586c39b1 DF |
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 | ||
2ce81398 DS |
7 | #ifdef LIBC_SCCS |
8 | .asciz "@(#)abs.s 5.3 (Berkeley) %G%" | |
9 | #endif LIBC_SCCS | |
586c39b1 | 10 | |
d0204a90 BJ |
11 | |
12 | /* abs - int absolute value */ | |
13 | ||
14 | #include "DEFS.h" | |
15 | ||
dadab5a2 | 16 | ENTRY(abs, 0) |
d0204a90 BJ |
17 | movl 4(ap),r0 |
18 | bgeq 1f | |
19 | mnegl r0,r0 | |
20 | 1: | |
21 | ret |