Searched refs:rem (Results 1 - 25 of 171) sorted by relevance

1234567

/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/builtins/
H A Ddivmoddi4.c15 // Returns: a / b, *rem = a % b
17 COMPILER_RT_ABI di_int __divmoddi4(di_int a, di_int b, di_int *rem) { argument
19 *rem = a - (d * b);
H A Ddivmodsi4.c16 // Returns: a / b, *rem = a % b
18 COMPILER_RT_ABI si_int __divmodsi4(si_int a, si_int b, si_int *rem) { argument
20 *rem = a - (d * b);
H A Dudivmodsi4.c15 // Returns: a / b, *rem = a % b
17 COMPILER_RT_ABI su_int __udivmodsi4(su_int a, su_int b, su_int *rem) { argument
19 *rem = a - (d * b);
H A Dudivmoddi4.c15 // Effects: if rem != 0, *rem = a % b
27 COMPILER_RT_ABI du_int __udivmoddi4(du_int a, du_int b, du_int *rem) { argument
43 if (rem)
44 *rem = n.s.low % d.s.low;
50 if (rem)
51 *rem = n.s.low;
60 if (rem)
61 *rem = n.s.high % d.s.low;
69 if (rem) {
[all...]
/freebsd-13-stable/lib/libc/stdlib/
H A Dlldiv.c41 retval.rem = numer % denom;
43 if (numer >= 0 && retval.rem < 0) {
45 retval.rem -= denom;
H A Ddiv.c50 r.rem = num % denom;
61 * r.rem will have the same sign as denom and the opposite
63 * truncated towards -inf, r.rem will be positive (will
71 * if num >= 0, but r.rem < 0, we got the wrong answer.
73 * subtract denom from r.rem.
75 if (num >= 0 && r.rem < 0) {
77 r.rem -= denom;
H A Dimaxdiv.c41 retval.rem = numer % denom;
43 if (numer >= 0 && retval.rem < 0) {
45 retval.rem -= denom;
H A Dldiv.c52 r.rem = num % denom;
54 if (num >= 0 && r.rem < 0) {
56 r.rem -= denom;
/freebsd-13-stable/crypto/heimdal/lib/roken/
H A Dnet_read.c49 size_t rem = nbytes; local
51 while (rem > 0) {
52 count = read (fd, cbuf, rem);
62 rem -= count;
74 size_t rem = nbytes; local
80 while (rem > 0) {
83 count = _read (sock, cbuf, rem);
85 count = recv (sock, cbuf, rem, 0);
93 count = _read (sock, cbuf, rem);
96 count = recv (sock, cbuf, rem,
[all...]
H A Dnet_write.c49 size_t rem = nbytes; local
51 while (rem > 0) {
52 count = write (fd, cbuf, rem);
60 rem -= count;
72 size_t rem = nbytes; local
77 while (rem > 0) {
80 count = _write (sock, cbuf, rem);
82 count = send (sock, cbuf, rem, 0);
90 count = _write (sock, cbuf, rem);
93 count = send (sock, cbuf, rem,
[all...]
/freebsd-13-stable/contrib/unbound/compat/
H A Dgmtime_r.c51 long rem; local
57 rem = *timep % SECSPERDAY;
58 rem += (offset);
59 while (rem < 0) {
60 rem += SECSPERDAY;
63 while (rem >= SECSPERDAY) {
64 rem -= SECSPERDAY;
67 tmp->tm_hour = (int) (rem / SECSPERHOUR);
68 rem = rem
[all...]
/freebsd-13-stable/contrib/unbound/contrib/
H A Dcreate_unbound_ad_servers.cmd2 rem Convert the Yoyo.org anti-ad server listing
3 rem into an unbound dns spoof redirection list.
4 rem Written by Y.Voinov (c) 2014
6 rem Note: Wget required!
8 rem Variables
14 rem Check Wget installed
29 rem then add an include line to your unbound.conf pointing to the full path of
30 rem the unbound_ad_servers file:
31 rem
32 rem includ
[all...]
H A Dunbound_cache.cmd2 rem --------------------------------------------------------------
3 rem -- DNS cache save/load script
4 rem --
5 rem -- Version 1.2
6 rem -- By Yuri Voinov (c) 2014
7 rem --------------------------------------------------------------
9 rem Variables
15 rem Check Unbound installed
22 rem arg1 - command (optional)
23 rem arg
[all...]
/freebsd-13-stable/sys/libkern/arm/
H A Dldivmod_helper.c43 __kern_ldivmod(long long n, long long m, long long *rem) argument
48 *rem = n - m * q;
/freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/
H A Dtime.h47 long rem; local
56 rem = nsec % NSEC_PER_SEC;
57 if (rem < 0) {
59 rem += NSEC_PER_SEC;
61 tv.tv_usec = rem / 1000;
102 int32_t rem; local
111 rem = nsec % NSEC_PER_SEC;
112 if (rem < 0) {
114 rem += NSEC_PER_SEC;
116 ts.tv_nsec = rem;
[all...]
/freebsd-13-stable/lib/libsysdecode/
H A Dflags.c132 uintmax_t rem; local
134 rem = *valp;
136 if ((table->val & rem) == table->val) {
145 rem &= ~table->val;
149 *valp = rem;
155 * rem is not NULL, *rem holds any bits not decoded if something was
156 * printed. If nothing was printed and rem is not NULL, *rem holds
160 print_mask_int(FILE *fp, struct name_table *table, int ival, int *rem) argument
177 print_mask_0(FILE *fp, struct name_table *table, int val, int *rem) argument
193 print_mask_0ul(FILE *fp, struct name_table *table, u_long lval, u_long *rem) argument
256 sysdecode_atflags(FILE *fp, int flag, int *rem) argument
298 sysdecode_semget_flags(FILE *fp, int flag, int *rem) argument
350 sysdecode_vmprot(FILE *fp, int type, int *rem) argument
361 sysdecode_socket_type(FILE *fp, int type, int *rem) argument
382 sysdecode_access_mode(FILE *fp, int mode, int *rem) argument
397 sysdecode_cap_fcntlrights(FILE *fp, uint32_t rights, uint32_t *rem) argument
418 sysdecode_open_flags(FILE *fp, int flags, int *rem) argument
457 sysdecode_fcntl_fileflags(FILE *fp, int flags, int *rem) argument
481 sysdecode_flock_operation(FILE *fp, int operation, int *rem) argument
533 int rem; local
602 sysdecode_kevent_flags(FILE *fp, int flags, int *rem) argument
651 sysdecode_mlockall_flags(FILE *fp, int flags, int *rem) argument
658 sysdecode_mmap_prot(FILE *fp, int prot, int *rem) argument
675 sysdecode_fileflags(FILE *fp, fflags_t flags, fflags_t *rem) argument
682 sysdecode_filemode(FILE *fp, int mode, int *rem) argument
689 sysdecode_mount_flags(FILE *fp, int flags, int *rem) argument
696 sysdecode_msync_flags(FILE *fp, int flags, int *rem) argument
714 sysdecode_pipe2_flags(FILE *fp, int flags, int *rem) argument
764 sysdecode_reboot_howto(FILE *fp, int howto, int *rem) argument
784 sysdecode_rfork_flags(FILE *fp, int flags, int *rem) argument
805 sysdecode_sendfile_flags(FILE *fp, int flags, int *rem) argument
812 sysdecode_shmat_flags(FILE *fp, int flags, int *rem) argument
931 sysdecode_thr_create_flags(FILE *fp, int flags, int *rem) argument
945 sysdecode_umtx_op_flags(FILE *fp, int op, int *rem) argument
966 sysdecode_wait4_options(FILE *fp, int options, int *rem) argument
992 sysdecode_wait6_options(FILE *fp, int options, int *rem) argument
1033 int rem; local
1058 sysdecode_mmap_flags(FILE *fp, int flags, int *rem) argument
1110 sysdecode_msg_flags(FILE *fp, int flags, int *rem) argument
1151 sysdecode_umtx_cvwait_flags(FILE *fp, u_long flags, u_long *rem) argument
1158 sysdecode_umtx_rwlock_flags(FILE *fp, u_long flags, u_long *rem) argument
1239 sysdecode_sctp_snd_flags(FILE *fp, int flags, int *rem) argument
1250 sysdecode_sctp_rcv_flags(FILE *fp, int flags, int *rem) argument
1261 sysdecode_sctp_nxt_flags(FILE *fp, int flags, int *rem) argument
1276 int rem; local
1296 sysdecode_shmflags(FILE *fp, int flags, int *rem) argument
[all...]
/freebsd-13-stable/lib/libc/net/
H A Dlinkaddr.c131 int namelen, i, rem; local
136 rem = sizeof(obuf);
140 rem -= namelen;
143 rem--;
150 while (in < inlim && rem > 1) {
153 rem--;
157 if (rem < 3)
161 rem -= 2;
163 if (rem < 2)
166 rem
[all...]
/freebsd-13-stable/crypto/openssl/crypto/modes/asm/
H A Dghash-parisc.pl70 $rem="%r29";
115 ldi 3,$rem
117 andcm $rem_4bit,$rem,$rem_4bit
123 ldi 31,$rem
124 mtctl $rem,%cr11
125 extrd,u,*= $rem,%sar,1,$rem ; executes on PA-RISC 1.0
141 depd,z $Zll,60,4,$rem
153 ldd $rem($rem_4bit),$rem
[all...]
H A Dghash-ia64.pl66 (p19) dep rem=Zlo,rem_4bitp,3,4 }
71 { .mfi; (p19) ld8 rem=[rem]
76 { .mib; (p19) xor Hhi=Hhi,rem
80 (p18) dep rem=Zlo,rem_4bitp,3,4 }
85 { .mfi; (p18) ld8 rem=[rem]
90 { .mib; (p18) xor Hhi=Hhi,rem
102 rem=r22; rem_4bitp=r23;
264 @rem
[all...]
/freebsd-13-stable/lib/msun/tests/
H A Drem_test.c145 long double rem; local
148 rem = remainderl(x, y);
149 ATF_CHECK(rem == expected_rem);
150 ATF_CHECK(!signbit(rem) == !signbit(expected_rem));
151 rem = remquol(x, y, &q);
152 ATF_CHECK(rem == expected_rem);
153 ATF_CHECK(!signbit(rem) == !signbit(expected_rem));
167 double rem; local
170 rem = remainder(x, y);
171 ATF_CHECK(rem
189 float rem; local
[all...]
/freebsd-13-stable/crypto/openssh/
H A Datomicio.c105 size_t pos = 0, rem; local
138 rem = (size_t)res;
139 pos += rem;
141 while (iovcnt > 0 && rem >= iov[0].iov_len) {
142 rem -= iov[0].iov_len;
147 if (rem > 0 && (iovcnt <= 0 || rem > iov[0].iov_len)) {
154 iov[0].iov_base = ((char *)iov[0].iov_base) + rem;
155 iov[0].iov_len -= rem;
/freebsd-13-stable/crypto/heimdal/lib/krb5/
H A Dnet_write.c57 size_t rem = len; local
85 count = send (fd, cbuf, rem, 0);
101 count = write (fd, cbuf, rem);
113 rem -= count;
115 } while (rem > 0);
/freebsd-13-stable/contrib/bearssl/mk/
H A DmkT0.cmd3 rem =====================================================================
4 rem This script uses the command-line C# compiler csc.exe, which is
5 rem provided with the .NET framework. We need framework 3.5 or later
6 rem (some of the code uses features not available in the language version
7 rem implemented in the compiler provided with framework 2.0.50727).
8 rem =====================================================================
/freebsd-13-stable/crypto/openssl/crypto/evp/
H A Dm_sha3.c67 size_t num, rem; local
73 rem = bsz - num;
75 if (len < rem) {
82 * buffer. So we append |rem| bytes and process the block,
85 memcpy(ctx->buf + num, inp, rem);
86 inp += rem, len -= rem;
93 rem = SHA3_absorb(ctx->A, inp, len, bsz);
95 rem = len;
97 if (rem) {
244 size_t num, rem; local
[all...]
/freebsd-13-stable/crypto/openssl/crypto/bn/
H A Dbn_div.c17 int BN_div(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, const BIGNUM *d,
32 if (rem != NULL) {
33 if (BN_copy(rem, m) == NULL)
45 if (rem == NULL)
46 rem = BN_CTX_get(ctx);
47 if (D == NULL || dv == NULL || rem == NULL)
54 if (BN_copy(rem, m) == NULL)
71 if (BN_ucmp(rem, D) >= 0) {
73 if (!BN_usub(rem, rem,
347 BN_ULONG n0, n1, rem = 0; local
[all...]

Completed in 136 milliseconds

1234567