Lines Matching refs:fInt

47 } fInt;  typedef
53 static fInt ConvertToFraction(int); /* Use this to convert an INT to a FINT */
54 static fInt Convert_ULONG_ToFraction(uint32_t); /* Use this to convert an uint32_t to a F…
55 static fInt GetScaledFraction(int, int); /* Use this to convert an INT to a FINT a…
56 static int ConvertBackToInteger(fInt); /* Convert a FINT back to an INT that is …
58 static fInt fNegate(fInt); /* Returns -1 * input fInt value */
59 static fInt fAdd (fInt, fInt); /* Returns the sum of two fInt numbers */
60 static fInt fSubtract (fInt A, fInt B); /* Returns A-B - Sometimes easier than Ad…
61 static fInt fMultiply (fInt, fInt); /* Returns the product of two fInt number…
62 static fInt fDivide (fInt A, fInt B); /* Returns A/B */
63 static fInt fGetSquare(fInt); /* Returns the square of a fInt number */
64 static fInt fSqrt(fInt); /* Returns the Square Root of a fInt numb…
69 static void SolveQuadracticEqn(fInt, fInt, fInt, fInt[]); /* Returns the 2 roots via the array */
70 static bool Equal(fInt, fInt); /* Returns true if two fInts are equal to…
71 static bool GreaterThan(fInt A, fInt B); /* Returns true if A > B */
73 static fInt fExponential(fInt exponent); /* Can be used to calculate e^exponent */
74 static fInt fNaturalLog(fInt value); /* Can be used to calculate ln(value) */
79 static fInt fDecodeLinearFuse(uint32_t fuse_value, fInt f_min, fInt f_range, uint32_t bitlength);
80 static fInt fDecodeLogisticFuse(uint32_t fuse_value, fInt f_average, fInt f_range, uint32_t bitleng…
81 static fInt fDecodeLeakageID (uint32_t leakageID_fuse, fInt ln_max_div_min, fInt f_min, uint32_t bi…
87 static fInt Divide (int, int); /* Divide two INTs and return result as F…
88 static fInt fNegate(fInt);
90 static int uGetScaledDecimal (fInt); /* Internal function */
91 static int GetReal (fInt A); /* Internal function */
108 static fInt fExponential(fInt exponent) /*Can be used to calculate e^exponent*/ in fExponential()
113 fInt fPositiveOne = ConvertToFraction(1); in fExponential()
114 fInt fZERO = ConvertToFraction(0); in fExponential()
116 fInt lower_bound = Divide(78, 10000); in fExponential()
117 fInt solution = fPositiveOne; /*Starting off with baseline of 1 */ in fExponential()
118 fInt error_term; in fExponential()
147 static fInt fNaturalLog(fInt value) in fNaturalLog()
150 fInt upper_bound = Divide(8, 1000); in fNaturalLog()
151 fInt fNegativeOne = ConvertToFraction(-1); in fNaturalLog()
152 fInt solution = ConvertToFraction(0); /*Starting off with baseline of 0 */ in fNaturalLog()
153 fInt error_term; in fNaturalLog()
172 static fInt fDecodeLinearFuse(uint32_t fuse_value, fInt f_min, fInt f_range, uint32_t bitlength) in fDecodeLinearFuse()
174 fInt f_fuse_value = Convert_ULONG_ToFraction(fuse_value); in fDecodeLinearFuse()
175 fInt f_bit_max_value = Convert_ULONG_ToFraction((uPow(2, bitlength)) - 1); in fDecodeLinearFuse()
177 fInt f_decoded_value; in fDecodeLinearFuse()
187 static fInt fDecodeLogisticFuse(uint32_t fuse_value, fInt f_average, fInt f_range, uint32_t bitleng… in fDecodeLogisticFuse()
189 fInt f_fuse_value = Convert_ULONG_ToFraction(fuse_value); in fDecodeLogisticFuse()
190 fInt f_bit_max_value = Convert_ULONG_ToFraction((uPow(2, bitlength)) - 1); in fDecodeLogisticFuse()
192 fInt f_CONSTANT_NEG13 = ConvertToFraction(-13); in fDecodeLogisticFuse()
193 fInt f_CONSTANT1 = ConvertToFraction(1); in fDecodeLogisticFuse()
195 fInt f_decoded_value; in fDecodeLogisticFuse()
205 static fInt fDecodeLeakageID (uint32_t leakageID_fuse, fInt ln_max_div_min, fInt f_min, uint32_t bi… in fDecodeLeakageID()
207 fInt fLeakage; in fDecodeLeakageID()
208 fInt f_bit_max_value = Convert_ULONG_ToFraction((uPow(2, bitlength)) - 1); in fDecodeLeakageID()
218 static fInt ConvertToFraction(int X) /*Add all range checking here. Is it possible to make fInt a p… in ConvertToFraction()
220 fInt temp; in ConvertToFraction()
230 static fInt fNegate(fInt X) in fNegate()
232 fInt CONSTANT_NEGONE = ConvertToFraction(-1); in fNegate()
236 static fInt Convert_ULONG_ToFraction(uint32_t X) in Convert_ULONG_ToFraction()
238 fInt temp; in Convert_ULONG_ToFraction()
248 static fInt GetScaledFraction(int X, int factor) in GetScaledFraction()
252 fInt fValue; in GetScaledFraction()
297 static fInt fAdd (fInt X, fInt Y) in fAdd()
299 fInt Sum; in fAdd()
307 static fInt fSubtract (fInt X, fInt Y) in fSubtract()
309 fInt Difference; in fSubtract()
316 static bool Equal(fInt A, fInt B) in Equal()
324 static bool GreaterThan(fInt A, fInt B) in GreaterThan()
332 static fInt fMultiply (fInt X, fInt Y) /* Uses 64-bit integers (int64_t) */ in fMultiply()
334 fInt Product; in fMultiply()
356 static fInt fDivide (fInt X, fInt Y) in fDivide()
358 fInt fZERO, fQuotient; in fDivide()
377 static int ConvertBackToInteger (fInt A) /*THIS is the function that will be used to check with the… in ConvertBackToInteger()
379 fInt fullNumber, scaledDecimal, scaledReal; in ConvertBackToInteger()
390 static fInt fGetSquare(fInt A) in fGetSquare()
396 static fInt fSqrt(fInt num) in fSqrt()
398 fInt F_divide_Fprime, Fprime; in fSqrt()
399 fInt test; in fSqrt()
400 fInt twoShifted; in fSqrt()
402 fInt x_new, x_old, C, y; in fSqrt()
404 fInt fZERO = ConvertToFraction(0); in fSqrt()
453 static void SolveQuadracticEqn(fInt A, fInt B, fInt C, fInt Roots[]) in SolveQuadracticEqn()
455 fInt *pRoots = &Roots[0]; in SolveQuadracticEqn()
456 fInt temp, root_first, root_second; in SolveQuadracticEqn()
457 fInt f_CONSTANT10, f_CONSTANT100; in SolveQuadracticEqn()
492 static int GetReal (fInt A) in GetReal()
497 static fInt Divide (int X, int Y) in Divide()
499 fInt A, B, Quotient; in Divide()
509 static int uGetScaledDecimal (fInt A) /*Converts the fractional portion to whole integers - Costly … in uGetScaledDecimal()
540 static fInt fRoundUpByStepSize(fInt A, fInt fStepSize, bool error_term) in fRoundUpByStepSize()
542 fInt solution; in fRoundUpByStepSize()