Team-Fly
Previous Section Next Section

Appendix A: Directory of C Functions

A.1 Input/Output, Assignment, Conversions, Comparisons

void
cpy_l (CLINT dest_l,
     CLINT src_l);

assignment of src_l to dest_l

void
fswap_l (CLINT a_l,
     CLINT b_l);

exchange of a_l and b_l

int
equ_l (CLINT a_l, CLINT b_l);

test of equality of a_l and b_l

int
cmp_l (CLINT a_l, CLINT b_l);

size comparison of a_l and b_l

void
u2clint_l (CLINT num_l,
     USHORT ul);

convert USHORT to CLINT

void
ul2clint_l (CLINT num_l,
     ULONG ul);

convert ULONG to CLINT

UCHAR*
clint2byte_l (CLINT n_l,
     int *len);

convert CLINT to a byte vector (according to IEEE, P1363, 5.5.1)

int
byte2clint_l (CLINT n_l,
     char *bytes, int len);

convert a byte vector to CLINT (according to IEEE, P1363, 5.5.1)

char*
xclint2str_l (CLINT n_l,
     USHORT base,
     int showbase);

convert from CLINT into a character string to the base base, with or without prefix

int
str2clint_l (CLINT n_l,
     char *N, USHORT b);

convert a character string to the base b to CLINT

unsigned int
vcheck_l (CLINT n_l);

CLINT format check

clint*
setmax_l (CLINT n_l);

set a CLINT integer to the maximal value 2CLINTMAXBIT 1

char*
verstr_l ();

output the version of the FLINT/C library in a character string, with identifiers 'a' for assembler support and 's' for FLINT/C security mode


Team-Fly Previous Section Next Section