2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
6 #include "mathffp_intern.h"
8 /*****************************************************************************
12 AROS_LH1(float, SPCeil
,
15 AROS_LHA(float, y
, D0
),
18 struct LibHeader
*, MathBase
, 16, Mathffp
)
21 Calculate the least integer ffp-number
22 greater than or equal to fnum1
29 negative : result is negative
38 *****************************************************************************/
42 /* Ceil(y) = -Floor(-y) */
43 y
= SPFloor(y
^ FFPSign_Mask
);
44 return (y
^ FFPSign_Mask
);