#include <math.h>
#include <limits.h>
Go to the source code of this file.
◆ _USE_MATH_DEFINES
Definition at line 8 of file ceil.c.
◆ ceil()
Definition at line 18 of file ceil.c.
19{
20
21 unsigned long long u64 = *(
unsigned long long*)&
x;
22
23
24 if ((
u64 & ~(1ULL << 63)) > 0x7FF0000000000000ull)
25 {
26
27 u64 |= 0x0008000000000000ull;
28 return *(
double*)&
u64;
29 }
30
31
32 if ((
u64 & (1ULL << 63)) == 0)
33 {
34
36 {
37
38
40 return (
x >
y) ?
y + 1 :
y;
41 }
42 else
43 {
44
45
47 }
48 }
49 else
50 {
51
53 {
54
56 return (
x == 0.) ? -0.0 :
x;
57 }
58 else
59 {
60
61
63 }
64 }
65}
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
static const char mbstate_t *static wchar_t const char mbstate_t *static const wchar_t int *static double