Searched refs:rem (Results 1 - 25 of 136) sorted by last modified time

123456

/freebsd-9.3-release/lib/libc/net/
H A Dlinkaddr.c132 int namelen, i, rem; local
137 rem = sizeof(obuf);
141 rem -= namelen;
144 rem--;
151 while (in < inlim && rem > 1) {
154 rem--;
158 if (rem < 3)
162 rem -= 2;
164 if (rem < 2)
167 rem
[all...]
/freebsd-9.3-release/contrib/ntp/ntpd/
H A Drefclock_parse.c2484 size_t rem = len - (pos - buffer); local
2486 if (rem == 0)
2490 l = vsnprintf(pos, rem, fmt, va);
2494 rem--;
2495 if (rem >= (size_t)l)
2498 pos += rem;
/freebsd-9.3-release/crypto/openssl/fips/dsa/
H A Dfips_dssvs.c179 BIGNUM *rem = NULL; local
188 rem = BN_new();
189 if (!BN_mod(rem, p, q, ctx) || !BN_is_one(rem)
191 || !BN_mod_exp(rem, g, q, p, ctx) || !BN_is_one(rem)) {
192 BN_free(rem);
196 BN_free(rem);
/freebsd-9.3-release/crypto/openssl/crypto/des/
H A Ddes.c357 int num = 0, j, k, l, rem, ll, len, last, ex = 0; local
442 rem = 0;
446 num = l = fread(&(buf[rem]), 1, BUFSIZE, DES_IN);
447 l += rem;
448 num += rem;
455 rem = l % 8;
456 len = l - rem;
458 for (i = 7 - rem; i > 0; i--)
460 buf[l++] = rem;
462 len += rem;
630 int i, j, left, rem, ret = num; local
[all...]
H A Dcfb_enc.c79 register int num = numbits / 8, n = (numbits + 7) / 8, i, rem = local
132 if (rem == 0)
136 ovec[i] = ovec[i + num] << rem |
137 ovec[i + num + 1] >> (8 - rem);
175 if (rem == 0)
179 ovec[i] = ovec[i + num] << rem |
180 ovec[i + num + 1] >> (8 - rem);
/freebsd-9.3-release/crypto/openssl/crypto/bn/
H A Dbn.h454 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
456 # define BN_mod(rem,m,d,ctx) BN_div(NULL,(rem),(m),(d),(ctx))
540 const BIGNUM *add, const BIGNUM *rem,
552 const BIGNUM *rem, BN_GENCB *cb);
620 int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
H A Dbn_mod.c120 int BN_mod(BIGNUM *rem, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
122 return (BN_div(NULL, rem, m, d, ctx));
123 /* note that rem->neg == m->neg (unless the remainder is zero) */
H A Dbn_prime.c136 const BIGNUM *add, const BIGNUM *rem,
139 const BIGNUM *rem, BN_CTX *ctx);
164 const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb)
186 if (!probable_prime_dh_safe(ret, bits, add, rem, ctx))
189 if (!probable_prime_dh(ret, bits, add, rem, ctx))
411 const BIGNUM *add, const BIGNUM *rem,
424 /* we need ((rnd-rem) % add) == 0 */
430 if (rem == NULL) {
434 if (!BN_add(rnd, rnd, rem))
456 const BIGNUM *rem, BN_CT
163 BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb) argument
410 probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx) argument
455 probable_prime_dh_safe(BIGNUM *p, int bits, const BIGNUM *padd, const BIGNUM *rem, BN_CTX *ctx) argument
[all...]
H A Dbn_recp.c133 int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, argument
146 if (rem != NULL)
147 r = rem;
219 bn_check_top(rem);
H A Dbn_div.c66 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
81 if (rem != NULL) {
82 if (BN_copy(rem, m) == NULL)
94 if (rem == NULL)
95 rem = BN_CTX_get(ctx);
96 if (D == NULL || dv == NULL || rem == NULL)
103 if (BN_copy(rem, m) == NULL)
120 if (BN_ucmp(rem, D) >= 0) {
122 if (!BN_usub(rem, rem,
322 BN_ULONG n0, n1, rem = 0; local
564 BN_ULONG n0, n1, rem = 0; local
[all...]
H A Dbn_depr.c71 const BIGNUM *add, const BIGNUM *rem,
85 if (!BN_generate_prime_ex(rnd, bits, safe, add, rem, &cb))
70 BN_generate_prime(BIGNUM *ret, int bits, int safe, const BIGNUM *add, const BIGNUM *rem, void (*callback) (int, int, void *), void *cb_arg) argument
/freebsd-9.3-release/crypto/openssl/crypto/camellia/
H A Dcmll_cfb.c171 int n, rem, num; local
189 rem = nbits % 8;
191 if (rem == 0)
195 ivec[n] = ovec[n + num] << rem | ovec[n + num + 1] >> (8 - rem);
/freebsd-9.3-release/crypto/openssl/crypto/aes/
H A Daes_cfb.c169 int n, rem, num; local
187 rem = nbits % 8;
189 if (rem == 0)
193 ivec[n] = ovec[n + num] << rem | ovec[n + num + 1] >> (8 - rem);
/freebsd-9.3-release/contrib/ntp/util/
H A Dtimetrim.c49 char *rem; local
90 value = strtod(argv[0], &rem);
91 if (*rem != '\0') {
/freebsd-9.3-release/contrib/ntp/libntp/
H A Dtimetoa.c83 if (qr.rem < 0) {
85 qr.rem += fraclimit;
88 frac = qr.rem;
/freebsd-9.3-release/bin/pax/
H A Dbuf_subs.c672 int rem; local
686 rem = sz;
704 if ((res = file_write(ofd,bufpt,cnt,&rem,&isem,sz,fnm)) <= 0) {
761 int rem; local
781 rem = sz;
792 res = file_write(fd2, buf, cnt, &rem, &isem, sz, fnm);
H A Dfile_subs.c739 * rem: how many bytes left in this file system block
749 file_write(int fd, char *str, int cnt, int *rem, int *isempt, int sz, argument
761 if (!*rem) {
768 *rem = sz;
775 wcnt = MIN(cnt, *rem);
777 *rem -= wcnt;
/freebsd-9.3-release/bin/rcp/
H A Drcp.c83 int errs, rem; variable
170 rem = STDIN_FILENO; /* XXX */
190 rem = -1;
263 if (rem == -1) {
268 rem = rcmd_af(&host, port,
272 if (rem < 0)
276 if (setsockopt(rem, IPPROTO_IP, IP_TOS,
330 rem = rcmd_af(&host, port, pwd->pw_name, suser, bp, 0,
333 if (rem < 0) {
340 if (setsockopt(rem, IPPROTO_I
[all...]
/freebsd-9.3-release/lib/libedit/
H A Dmap.c1248 int ntype, rem; local
1263 key = rem = 0;
1284 rem = 1;
1322 if (rem) {
H A Drefresh.c237 size_t rem = (el->el_line.lastchar-el->el_line.buffer)%termsz; local
239 st = el->el_line.lastchar - rem
240 - (termsz - (((rem / el->el_term.t_size.v) - 1)
/freebsd-9.3-release/lib/libstand/
H A Dquad.h98 u_quad_t __qdivrem(u_quad_t u, u_quad_t v, u_quad_t *rem);
/freebsd-9.3-release/lib/libz/
H A Dadler32.c143 unsigned rem; local
151 rem = (unsigned)len2;
153 sum2 = rem * sum1;
156 sum2 += ((adler1 >> 16) & 0xffff) + ((adler2 >> 16) & 0xffff) + BASE - rem;
/freebsd-9.3-release/lib/libc/db/test/
H A Ddbtest.c65 void rem(DB *, DBT *);
211 rem(dbp, &key);
297 rem(dbp, &key);
420 rem(dbp, kp) function
428 err("line %lu: rem: %s", lineno, strerror(errno));
431 #define NOSUCHKEY "rem failed, no such key\n"
439 "%d: rem of cursor failed\n", lineno);
/freebsd-9.3-release/lib/libc/softfloat/bits64/
H A Dsoftfloat.c2083 bits64 rem, term; local
2113 rem = ( ( (bits64) aSig )<<32 ) - term;
2114 while ( (sbits64) rem < 0 ) {
2116 rem += ( ( (bits64) zSig )<<1 ) | 1;
2118 zSig |= ( rem != 0 );
/freebsd-9.3-release/lib/libc/stdlib/
H A Ddiv.c48 r.rem = num % denom;
58 * r.rem will have the same sign as denom and the opposite
60 * truncated towards -inf, r.rem will be positive (will
68 * if num >= 0, but r.rem < 0, we got the wrong answer.
70 * subtract denom from r.rem.
72 if (num >= 0 && r.rem < 0) {
74 r.rem -= denom;

Completed in 250 milliseconds

123456