source:
trunk/minix/lib/ack/libm2/absd.c@
16
Last change on this file since 16 was 9, checked in by , 14 years ago | |
---|---|
File size: 400 bytes |
Rev | Line | |
---|---|---|
[9] | 1 | /* |
2 | (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands. | |
3 | See the copyright notice in the ACK home directory, in the file "Copyright". | |
4 | */ | |
5 | ||
6 | /* | |
7 | Module: double abs function | |
8 | Author: Ceriel J.H. Jacobs | |
9 | Version: $Header: /cvsup/minix/src/lib/ack/libm2/absd.c,v 1.1 2005/10/10 15:27:46 beng Exp $ | |
10 | */ | |
11 | #ifndef NOFLOAT | |
12 | double | |
13 | absd(i) | |
14 | double i; | |
15 | { | |
16 | return i >= 0 ? i : -i; | |
17 | } | |
18 | #endif |
Note:
See TracBrowser
for help on using the repository browser.