Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
p6math.h File Reference

Go to the source code of this file.

Namespaces

 P6R
 

Macros

#define P6LL_ADD(r, a, b)   ((r) = (a) + (b))
 
#define P6LL_AND(r, a, b)   ((r) = (a) & (b))
 
#define P6LL_CMP(a, op, b)   ((P6INT64 )(a) op (P6INT64 )(b))
 
#define P6LL_DIV(r, a, b)   ((r) = (a) / (b))
 
#define P6LL_EQ(a, b)   ((a) == (b))
 
#define P6LL_F2L(l, f)   ((l) = (P6INT64)(f))
 
#define P6LL_GE_ZERO(a)   ((a) >= 0)
 
#define P6LL_I2L(l, i)   ((l) = (P6INT64)(i))
 
#define P6LL_INIT(hiInt, loInt)   ((hiInt ## LL << 32) + loInt ## LL)
 
#define P6LL_IS_ZERO(a)   ((a) == 0)
 
#define P6LL_ISHL(r, a, b)   ((r) = (P6INT64 )(a) << (b))
 
#define P6LL_L2F(f, l)   ((f) = (P6FLOAT)(l))
 
#define P6LL_L2I(i, l)   ((i) = (P6INT32 )(l))
 
#define P6LL_L2UI(ui, l)   ((ui) = (P6UINT32)(l))
 
#define P6LL_MOD(r, a, b)   ((r) = (a) % (b))
 
#define P6LL_MUL(r, a, b)   ((r) = (a) * (b))
 
#define P6LL_NE(a, b)   ((a) != (b))
 
#define P6LL_NEG(r, a)   ((r) = -(a))
 
#define P6LL_NOT(r, a)   ((r) = ~(a))
 
#define P6LL_OR(r, a, b)   ((r) = (a) | (b))
 
#define P6LL_OR2(r, a)   ((r) = (r) | (a))
 
#define P6LL_SHL(r, a, b)   ((r) = (P6INT64 )(a) << (b))
 
#define P6LL_SHR(r, a, b)   ((r) = (P6INT64 )(a) >> (b))
 
#define P6LL_SUB(r, a, b)   ((r) = (a) - (b))
 
#define P6LL_UCMP(a, op, b)   ((P6UINT64)(a) op (P6UINT64)(b))
 
#define P6LL_UI2L(l, ui)   ((l) = (P6INT64)(ui))
 
#define P6LL_USHL(r, a, b)   ((r) = (P6UINT64)(a) << (b))
 
#define P6LL_USHR(r, a, b)   ((r) = (P6UINT64)(a) >> (b))
 
#define P6LL_XOR(r, a, b)   ((r) = (a) ^ (b))