Lines Matching refs:A

60 static fInt fSubtract (fInt A, fInt B);                   /* Returns A-B - Sometimes easier than Ad…
62 static fInt fDivide (fInt A, fInt B); /* Returns A/B */
71 static bool GreaterThan(fInt A, fInt B); /* Returns true if A > B */
91 static int GetReal (fInt A); /* Internal function */
316 static bool Equal(fInt A, fInt B) in Equal() argument
318 if (A.full == B.full) in Equal()
324 static bool GreaterThan(fInt A, fInt B) in GreaterThan() argument
326 if (A.full > B.full) in GreaterThan()
377 static int ConvertBackToInteger (fInt A) /*THIS is the function that will be used to check with the… in ConvertBackToInteger() argument
381 scaledReal.full = GetReal(A) * uPow(10, PRECISION-1); /* DOUBLE CHECK THISSSS!!! */ in ConvertBackToInteger()
383 scaledDecimal.full = uGetScaledDecimal(A); in ConvertBackToInteger()
390 static fInt fGetSquare(fInt A) in fGetSquare() argument
392 return fMultiply(A,A); in fGetSquare()
453 static void SolveQuadracticEqn(fInt A, fInt B, fInt C, fInt Roots[]) in SolveQuadracticEqn() argument
462 …while(GreaterThan(A, f_CONSTANT100) || GreaterThan(B, f_CONSTANT100) || GreaterThan(C, f_CONSTANT1… in SolveQuadracticEqn()
463 A = fDivide(A, f_CONSTANT10); in SolveQuadracticEqn()
468 temp = fMultiply(ConvertToFraction(4), A); /* root = 4*A */ in SolveQuadracticEqn()
477 root_first = fDivide(root_first, A); /*[b +- Sqrt(b^2 - 4AC)]/[2*A] */ in SolveQuadracticEqn()
480 root_second = fDivide(root_second, A); /*[b +- Sqrt(b^2 - 4AC)]/[2*A] */ in SolveQuadracticEqn()
492 static int GetReal (fInt A) in GetReal() argument
494 return (A.full >> SHIFT_AMOUNT); in GetReal()
499 fInt A, B, Quotient; in Divide() local
501 A.full = X << SHIFT_AMOUNT; in Divide()
504 Quotient = fDivide(A, B); in Divide()
509 static int uGetScaledDecimal (fInt A) /*Converts the fractional portion to whole integers - Costly … in uGetScaledDecimal() argument
512 int i, scaledDecimal = 0, tmp = A.partial.decimal; in uGetScaledDecimal()
540 static fInt fRoundUpByStepSize(fInt A, fInt fStepSize, bool error_term) in fRoundUpByStepSize() argument
544 solution = fDivide(A, fStepSize); in fRoundUpByStepSize()