Backed out changeset: 2bc36c43b15f

Former-commit-id: 0f14674ff1
This commit is contained in:
Vincent Herbet 2013-09-10 09:04:52 +02:00
parent dc607846a3
commit 878d68bb21

View File

@ -173,14 +173,10 @@ stock bool:operator<=(oper1, Float:oper2)
stock bool:operator!(Float:oper) stock bool:operator!(Float:oper)
return (_:oper & ((-1)/2)) == 0; /* -1 = all bits to 1; /2 = remove most significant bit (sign) return (_:oper & ((-1)/2)) == 0; /* -1 = all bits to 1; /2 = remove most significant bit (sign)
works on both 32bit and 64bit systems; no constant required */ works on both 32bit and 64bit systems; no constant required */
stock Float:operator=(oper)
return float(oper);
/* forbidden operations */ /* forbidden operations */
forward operator%(Float:oper1, Float:oper2); forward operator%(Float:oper1, Float:oper2);
forward operator%(Float:oper1, oper2); forward operator%(Float:oper1, oper2);
forward operator%(oper1, Float:oper2); forward operator%(oper1, Float:oper2);
forward operator=(Float:oper);
stock Float:floatmin(Float:ValueA, Float:ValueB) stock Float:floatmin(Float:ValueA, Float:ValueB)