XBinder
Version 2.9.x
|
#include "rtxsrc/rtxContext.h"
Go to the source code of this file.
Functions | |
int | rtxAddBigNum (const OSOCTET *a, OSSIZE szA, const OSOCTET *b, OSSIZE szB, OSOCTET *c, OSSIZE szC) |
Addition big numbers: a + b = c. More... | |
int | rtxSubBigNum (const OSOCTET *a, OSSIZE szA, const OSOCTET *b, OSSIZE szB, OSOCTET *c, OSSIZE szC) |
Substraction big numbers: a - b = c. More... | |
int | rtxMulBigNum (const OSOCTET *a, OSSIZE szA, const OSOCTET *b, OSSIZE szB, OSOCTET *c, OSSIZE szC) |
Multiplication big numbers: a * b = c. More... | |
int | rtxDivRemBigNum (const OSOCTET *a, OSSIZE szA, const OSOCTET *b, OSSIZE szB, OSOCTET *c, OSSIZE szC, OSOCTET *rem, OSSIZE szRem) |
Division big numbers with reminder: a / b = c. More... | |
int | rtxDivBigNum (const OSOCTET *a, OSSIZE szA, const OSOCTET *b, OSSIZE szB, OSOCTET *c, OSSIZE szC) |
Division big numbers: a / b = c. More... | |
int | rtxModBigNum (const OSOCTET *a, OSSIZE szA, const OSOCTET *b, OSSIZE szB, OSOCTET *rem, OSSIZE szRem) |
Division by module big numbers: a % b = rem. More... | |
int | rtxBigNumToStr (const OSOCTET *a, OSSIZE szA, char *str, OSSIZE szStr) |
Convert big number to string. More... | |
int | rtxStrToBigNum (const char *str, OSOCTET *a, OSSIZE szA) |
Convert string to big number. More... | |
int rtxAddBigNum | ( | const OSOCTET * | a, |
OSSIZE | szA, | ||
const OSOCTET * | b, | ||
OSSIZE | szB, | ||
OSOCTET * | c, | ||
OSSIZE | szC | ||
) |
Addition big numbers: a + b = c.
a | First addend. |
szA | Length of first addend in octets. |
b | Second addend. |
szB | Length of second addend in octets. |
c | Sum. |
szC | Length of sum buffer in octets. |
int rtxBigNumToStr | ( | const OSOCTET * | a, |
OSSIZE | szA, | ||
char * | str, | ||
OSSIZE | szStr | ||
) |
Convert big number to string.
a | Number. |
szA | Length of number in octets. |
str | Result string. |
szStr | Length of string buffer in octets. |
int rtxDivBigNum | ( | const OSOCTET * | a, |
OSSIZE | szA, | ||
const OSOCTET * | b, | ||
OSSIZE | szB, | ||
OSOCTET * | c, | ||
OSSIZE | szC | ||
) |
Division big numbers: a / b = c.
a | Divident. |
szA | Length of divident in octets. |
b | Divisor. |
szB | Length of divisor in octets. |
c | Quotient. |
szC | Length of quotient buffer in octets. |
int rtxDivRemBigNum | ( | const OSOCTET * | a, |
OSSIZE | szA, | ||
const OSOCTET * | b, | ||
OSSIZE | szB, | ||
OSOCTET * | c, | ||
OSSIZE | szC, | ||
OSOCTET * | rem, | ||
OSSIZE | szRem | ||
) |
Division big numbers with reminder: a / b = c.
a | Divident. |
szA | Length of divident in octets. |
b | Divisor. |
szB | Length of divisor in octets. |
c | Quotient. |
szC | Length of quotient buffer in octets. |
rem | Reminder. |
szRem | Length of reminder buffer in octets. |
int rtxModBigNum | ( | const OSOCTET * | a, |
OSSIZE | szA, | ||
const OSOCTET * | b, | ||
OSSIZE | szB, | ||
OSOCTET * | rem, | ||
OSSIZE | szRem | ||
) |
Division by module big numbers: a % b = rem.
a | Divident. |
szA | Length of divident in octets. |
b | Divisor. |
szB | Length of divisor in octets. |
rem | Reminder. |
szRem | Length of reminder buffer in octets. |
int rtxMulBigNum | ( | const OSOCTET * | a, |
OSSIZE | szA, | ||
const OSOCTET * | b, | ||
OSSIZE | szB, | ||
OSOCTET * | c, | ||
OSSIZE | szC | ||
) |
Multiplication big numbers: a * b = c.
a | Multiplicand. |
szA | Length of multiplicand in octets. |
b | Multiplier. |
szB | Length of multiplier in octets. |
c | Product. |
szC | Length of product buffer in octets. |
int rtxStrToBigNum | ( | const char * | str, |
OSOCTET * | a, | ||
OSSIZE | szA | ||
) |
Convert string to big number.
str | Input null terminated string. |
a | Result number. |
szA | Length of number buffer in octets. |
int rtxSubBigNum | ( | const OSOCTET * | a, |
OSSIZE | szA, | ||
const OSOCTET * | b, | ||
OSSIZE | szB, | ||
OSOCTET * | c, | ||
OSSIZE | szC | ||
) |
Substraction big numbers: a - b = c.
a | Minuend. |
szA | Length of minuend in octets. |
b | Substrahend. |
szB | Length of substrahend in octets. |
c | Difference. |
szC | Length of difference buffer in octets. |