Loading...
Searching...
No Matches
Go to the documentation of this file.
37#import <Foundation/Foundation.h>
54#define M_PI 3.14159265358979323846
57#define M_PI_2 1.57079632679489661923
60#define M_PI_4 0.78539816339744830962
63#define M_1_PI 0.31830988618379067154
66#define M_2_PI 0.63661977236758134308
69#define M_2_SQRTPI 1.12837916709551257390
72#define M_SQRT2 1.41421356237309504880
75#define M_SQRT1_2 0.70710678118654752440
78#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
80#define MIN(A, B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __a : __b; })
83#define MAX(A, B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __b : __a; })
86#define ABS(A) ({ __typeof__(A) __a = (A); __a < 0 ? -__a : __a; })
91#define MIN(A, B) ((A) < (B) ? (A) : (B))
94#define MAX(A, B) ((A) > (B) ? (A) : (B))
97#define ABS(A) ((A) < 0 ? (-(A)) : (A))