Commit cb8af015 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

port.h: Add INFINITY macro.

parent 7d24e592
......@@ -199,6 +199,15 @@ struct statvfs
#define M_PI_2 1.570796326794896619
#endif
#ifndef INFINITY
static inline float __port_infinity(void)
{
static const unsigned __inf_bytes = 0x7f800000;
return *(const float *)&__inf_bytes;
}
#define INFINITY __port_infinity()
#endif
#ifndef NAN
static inline float __port_nan(void)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment