| /llvm-project-15.0.7/polly/lib/External/isl/imath/ |
| H A D | imath.h | 40 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 D | imrat.h | 59 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 D | imrat.c | 53 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 D | rsamath.h | 40 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 D | imdrover.c | 38 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 D | rsamath.c | 32 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 D | imath.c | 42 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 D | iprime.c | 45 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 D | iprime.h | 40 mp_result mp_int_is_prime(mp_int z); 43 mp_result mp_int_find_prime(mp_int z);
|
| H A D | gmp_compat.c | 351 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 D | imtest.c | 161 extern mp_result imath_errno; 177 char *error_string(mp_result res); 419 char *error_string(mp_result res) { in error_string()
|
| H A D | README.md | 101 API functions return an `mp_result` value which can be used to detect various
|
| H A D | doc.md.in | 36 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 D | imcalc.c | 216 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 D | randprime.c | 53 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 D | rsakey.c | 62 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 D | pi.c | 39 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 D | input.c | 39 mp_result res; in main() 73 mp_result buf_size, res; in main()
|
| H A D | basecvt.c | 38 mp_result res; in main() 69 mp_result len; in main()
|
| H A D | findprime.c | 38 mp_result res; in main()
|
| H A D | rounding.c | 37 mp_result mode, len, res = 0; in main()
|
| /llvm-project-15.0.7/polly/lib/External/isl/ |
| H A D | isl_imath.c | 20 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 D | isl_test_imath.c | 30 mp_result retval; in test_imath_internals()
|
| /llvm-project-15.0.7/polly/lib/External/isl/imath/tests/ |
| H A D | bintest.c | 36 mp_result res; in main()
|
| H A D | rtest.c | 41 mp_result res; in main()
|