2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
6 #include "mathieeesingbas_intern.h"
8 /*****************************************************************************
12 AROS_LH1(float, IEEESPCeil
,
15 AROS_LHA(float, y
, D0
),
18 struct LibHeader
*, MathIeeeSingBasBase
, 16, Mathieeesingbas
)
21 Calculate the least integer ieeesp-number
22 greater than or equal to y
29 negative : result is negative
41 *****************************************************************************/
45 if (y
== 0x7f880000) return y
;
47 /* Ceil(y) = -Floor(-y); */
48 y
= IEEESPFloor(y
^ IEEESPSign_Mask
);
50 else return (y
^ IEEESPSign_Mask
);