Home
last modified time | relevance | path

Searched refs:mp_result (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project-15.0.7/polly/lib/External/isl/imath/
H A Dimath.h40 typedef int mp_result; typedef
71 extern const mp_result MP_OK;
72 extern const mp_result MP_FALSE;
73 extern const mp_result MP_TRUE;
74 extern const mp_result MP_MEMORY;
75 extern const mp_result MP_RANGE;
76 extern const mp_result MP_UNDEF;
77 extern const mp_result MP_TRUNC;
78 extern const mp_result MP_BADARG;
79 extern const mp_result MP_MINERR;
[all …]
H A Dimrat.h59 mp_result mp_rat_init(mp_rat r);
69 mp_result mp_rat_reduce(mp_rat r);
80 mp_result mp_rat_init_copy(mp_rat r, mp_rat old);
98 mp_result mp_rat_numer(mp_rat r, mp_int z);
104 mp_result mp_rat_denom(mp_rat r, mp_int z);
115 mp_result mp_rat_copy(mp_rat a, mp_rat c);
121 mp_result mp_rat_abs(mp_rat a, mp_rat c);
124 mp_result mp_rat_neg(mp_rat a, mp_rat c);
128 mp_result mp_rat_recip(mp_rat a, mp_rat c);
131 mp_result mp_rat_add(mp_rat a, mp_rat b, mp_rat c);
[all …]
H A Dimrat.c53 mp_result res; in mp_rat_init()
80 mp_result res; in mp_rat_init_size()
94 mp_result res; in mp_rat_init_copy()
106 mp_result res; in mp_rat_set_value()
121 mp_result res; in mp_rat_set_uvalue()
163 mp_result res; in mp_rat_copy()
179 mp_result res; in mp_rat_abs()
190 mp_result res; in mp_rat_neg()
201 mp_result res; in mp_rat_recip()
229 mp_result res; in mp_rat_mul()
[all …]
H A Drsamath.h40 mp_result rsa_i2osp(mp_int z, unsigned char *out, int len);
43 mp_result rsa_os2ip(mp_int z, unsigned char *in, int len);
49 mp_result rsa_rsaep(mp_int msg, mp_int exp, mp_int mod, mp_int cipher);
52 mp_result rsa_rsadp(mp_int cipher, mp_int exp, mp_int mod, mp_int msg);
55 mp_result rsa_rsasp(mp_int msg, mp_int exp, mp_int mod, mp_int signature);
58 mp_result rsa_rsavp(mp_int signature, mp_int exp, mp_int mod, mp_int msg);
75 mp_result rsa_pkcs1v15_encode(unsigned char *buf, int msg_len,
88 mp_result rsa_pkcs1v15_decode(unsigned char *buf, int buf_len,
H A Dimdrover.c38 mp_result imath_errno;
438 mp_result expect; in test_init()
462 mp_result expect; in test_set()
484 mp_result expect; in test_neg()
499 mp_result expect; in test_abs()
515 mp_result expect; in test_add()
537 mp_result expect; in test_sub()
557 mp_result expect; in test_mul()
571 mp_result expect; in test_mulp2()
974 mp_result len; in test_tostr()
[all …]
H A Drsamath.c32 static mp_result s_rsa_transform(mp_int msg, mp_int exp, mp_int mod,
36 mp_result rsa_i2osp(mp_int z, unsigned char *out, int len) { in rsa_i2osp()
50 mp_result rsa_os2ip(mp_int z, unsigned char *in, int len) { in rsa_os2ip()
55 mp_result rsa_rsaep(mp_int msg, mp_int exp, mp_int mod, mp_int cipher) { in rsa_rsaep()
60 mp_result rsa_rsadp(mp_int cipher, mp_int exp, mp_int mod, mp_int msg) { in rsa_rsadp()
65 mp_result rsa_rsasp(mp_int msg, mp_int exp, mp_int mod, mp_int signature) { in rsa_rsasp()
70 mp_result rsa_rsavp(mp_int signature, mp_int exp, mp_int mod, mp_int msg) { in rsa_rsavp()
87 mp_result rsa_pkcs1v15_encode(unsigned char *buf, int msg_len, int buf_len, in rsa_pkcs1v15_encode()
114 mp_result rsa_pkcs1v15_decode(unsigned char *buf, int buf_len, int tag, in rsa_pkcs1v15_decode()
139 static mp_result s_rsa_transform(mp_int msg, mp_int exp, mp_int mod, in s_rsa_transform()
H A Dimath.c42 const mp_result MP_MINERR = -6;
366 mp_result mp_int_init(mp_int z) { in mp_int_init()
519 mp_result res; in mp_int_abs()
529 mp_result res; in mp_int_neg()
727 mp_result res = mp_int_copy(a, c); in mp_int_mul_pow2()
778 mp_result res = MP_OK; in mp_int_div()
889 mp_result res = MP_OK; in mp_int_div_pow2()
1214 mp_result res = MP_OK; in mp_int_egcd()
1449 mp_result res; in mp_int_to_string()
1560 mp_result mp_int_count_bits(mp_int z) { in mp_int_count_bits()
[all …]
H A Diprime.c45 mp_result mp_int_is_prime(mp_int z) { in mp_int_is_prime()
55 mp_result res; in mp_int_is_prime()
64 mp_result res; in mp_int_is_prime()
83 mp_result mp_int_find_prime(mp_int z) { in mp_int_find_prime()
84 mp_result res; in mp_int_find_prime()
H A Diprime.h40 mp_result mp_int_is_prime(mp_int z);
43 mp_result mp_int_find_prime(mp_int z);
H A Dgmp_compat.c351 mp_result res = mp_int_read_string(rop, base, str); in GMPZAPI()
359 mp_result resN; in GMPQAPI()
360 mp_result resD; in GMPQAPI()
423 mp_result res = mp_int_to_uint(op, &out); in GMPZAPI()
441 mp_result res = mp_int_to_int(op, &out); in GMPZAPI()
803 mp_result res; in GMPZAPI()
H A Dimtest.c161 extern mp_result imath_errno;
177 char *error_string(mp_result res);
419 char *error_string(mp_result res) { in error_string()
H A DREADME.md101 API functions return an `mp_result` value which can be used to detect various
H A Ddoc.md.in36 Most of the functions in the imath library return a value of type `mp_result`.
52 If you obtain a zero or negative value of an `mp_result`, you can use the
79 Unless otherwise noted, any API function that returns `mp_result` may be
/llvm-project-15.0.7/polly/lib/External/isl/imath/examples/
H A Dimcalc.c216 mp_result res; in main()
327 mp_result res; in read_number()
735 mp_result res; in cf_expt()
788 mp_result res; in cf_xgcd()
811 mp_result res; in cf_root()
822 mp_result res; in cf_cmplt()
832 mp_result res; in cf_cmpgt()
842 mp_result res; in cf_cmple()
852 mp_result res; in cf_cmpge()
862 mp_result res; in cf_cmpeq()
[all …]
H A Drandprime.c53 mp_result mp_int_randomize(mp_int a, mp_size n_bits);
56 mp_result find_prime(mp_int seed, FILE *fb);
57 mp_result find_strong_prime(mp_int seed, FILE *fb);
59 typedef mp_result (*find_f)(mp_int, FILE *);
64 mp_result res; in main()
151 mp_result mp_int_randomize(mp_int a, mp_size n_bits) { in mp_int_randomize()
154 mp_result res = MP_OK; in mp_int_randomize()
184 mp_result find_prime(mp_int seed, FILE *fb) { in find_prime()
185 mp_result res; in find_prime()
210 mp_result find_strong_prime(mp_int seed, FILE *fb) { in find_strong_prime()
[all …]
H A Drsakey.c62 mp_result mp_int_randomize(mp_int a, mp_size n_bits);
65 mp_result find_prime(mp_int seed, FILE *fb);
68 mp_result rsa_key_init(rsa_key *kp);
77 mp_result res; in main()
213 mp_result mp_int_randomize(mp_int a, mp_size n_bits) { in mp_int_randomize()
216 mp_result res = MP_OK; in mp_int_randomize()
246 mp_result find_prime(mp_int seed, FILE *fb) { in find_prime()
247 mp_result res; in find_prime()
266 mp_result rsa_key_init(rsa_key *kp) { in rsa_key_init()
H A Dpi.c39 mp_result arctan(mp_small radix, mp_small mul, mp_small x, mp_small prec,
45 mp_result res; in main()
125 mp_result arctan(mp_small radix, mp_small mul, mp_small x, mp_small prec, in arctan()
128 mp_result res; in arctan()
H A Dinput.c39 mp_result res; in main()
73 mp_result buf_size, res; in main()
H A Dbasecvt.c38 mp_result res; in main()
69 mp_result len; in main()
H A Dfindprime.c38 mp_result res; in main()
H A Drounding.c37 mp_result mode, len, res = 0; in main()
/llvm-project-15.0.7/polly/lib/External/isl/
H A Disl_imath.c20 mp_result res = mp_int_to_int(op, &out); in isl_imath_fits_slong_p()
29 mp_result res = mp_int_to_uint(op, &out); in isl_imath_fits_ulong_p()
H A Disl_test_imath.c30 mp_result retval; in test_imath_internals()
/llvm-project-15.0.7/polly/lib/External/isl/imath/tests/
H A Dbintest.c36 mp_result res; in main()
H A Drtest.c41 mp_result res; in main()

12