at_wini also needs a pci_reserve() for the pci compatability device, if
[minix3.git] / lib / math / ceil.c
blob15f6492885e72520ef6f53e30b10106c2bdedf47
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".
5 * Author: Ceriel J.H. Jacobs
6 */
7 /* $Header$ */
9 #include <math.h>
11 double
12 ceil(double x)
14 double val;
16 return modf(x, &val) > 0 ? val + 1.0 : val ;
17 /* this also works if modf always returns a positive
18 fractional part