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

123

/illumos-gate/usr/src/lib/libc/port/gen/
H A Ddiv.c55 r.rem = num % denom;
65 * r.rem will have the same sign as denom and the opposite
67 * truncated towards -inf, r.rem will be positive (will
75 * if num >= 0, but r.rem < 0, we got the wrong answer.
77 * subtract denom from r.rem.
79 if (num >= 0 && r.rem < 0) {
81 r.rem -= denom;
95 r.rem = num % denom;
96 if (num >= 0 && r.rem < 0) {
98 r.rem
[all...]
H A Dlldiv.c45 sd.rem = numer % denom;
/illumos-gate/usr/src/uts/common/os/
H A Dsctp_crc32.c129 int rem; local
131 rem = 4 - ((uintptr_t)buf) & 3;
132 if (rem != 0) {
133 if (len < rem) {
134 rem = len;
136 sctp_crc_byte(&crc32, buf, rem);
137 buf = buf + rem;
138 len = len - rem;
145 rem = len & 3;
146 if (rem !
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_igmp.c132 int rem = ilen; local
143 rem -= sizeof (*qry);
152 while (srccnt > 0 && rem >= sizeof (*src)) {
153 rem -= sizeof (*src);
181 int rem = ilen, auxlen; local
196 rem -= sizeof (*rpt);
197 while (grhcnt > 0 && rem >= sizeof (*grh)) {
198 rem -= sizeof (*grh);
210 while (srccnt > 0 && rem >= sizeof (*src)) {
211 rem
[all...]
/illumos-gate/usr/src/cmd/mdb/common/libstand/
H A Dctime.c37 long rem; local
45 rem = *clock % SECS_PER_DAY;
46 while (rem < 0) {
47 rem += SECS_PER_DAY;
50 while (rem >= SECS_PER_DAY) {
51 rem -= SECS_PER_DAY;
54 tmp->tm_hour = (int)(rem / SECS_PER_HOUR);
55 rem = rem % SECS_PER_HOUR;
56 tmp->tm_min = (int)(rem / SECS_PER_MI
[all...]
/illumos-gate/usr/src/stand/lib/sa/
H A Dtime.c95 int rem; local
102 rem = *clock % SECS_PER_DAY;
103 while (rem < 0) {
104 rem += SECS_PER_DAY;
107 while (rem >= SECS_PER_DAY) {
108 rem -= SECS_PER_DAY;
111 tmp->tm_hour = (int)(rem / SECS_PER_HOUR);
112 rem = rem % SECS_PER_HOUR;
113 tmp->tm_min = (int)(rem / SECS_PER_MI
[all...]
/illumos-gate/usr/src/cmd/auths/
H A Dauths.c203 int rem, i; local
210 * We walk the list, with "i + rem + 1" the cursor for the possible
211 * candidate for removal. With "rem" we count the removed entries
214 for (i = 0, rem = 0; i < cbs->auth_cnt - rem - 1; ) {
215 if (strcmp(cbs->auths[i], cbs->auths[i + rem + 1]) == 0 ||
217 auth_match(cbs->auths[i], cbs->auths[i + rem + 1])) {
218 free(cbs->auths[i + rem + 1]);
219 rem++;
222 if (rem >
[all...]
/illumos-gate/usr/src/lib/libc/i386/gen/
H A D_divdi3.s92 movl 12(%esp), %eax / rem, rem
93 movl 16(%esp), %edx / rem, rem
193 / uint64_t xt, yt, rem;
205 / (void) UDivRem(xt, yt, &rem);
206 / return (x < 0 ? (int64_t) - rem : rem);
236 movl 8(%esp), %eax / rem, rem
[all...]
H A D_div64.s634 movl 12(%esp), %eax / rem, rem
635 movl 16(%esp), %edx / rem, rem
735 / uint64_t xt, yt, rem;
747 / (void) UDivRem(xt, yt, &rem);
748 / return (x < 0 ? (int64_t) - rem : rem);
778 movl 8(%esp), %eax / rem, rem
[all...]
/illumos-gate/usr/src/head/iso/
H A Dstdlib_c99.h60 long long rem; member in struct:__anon154
H A Dstdlib_iso.h67 int rem; member in struct:std::__anon155
72 long rem; member in struct:std::__anon156
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_fflp_hash.c257 int rem; local
259 rem = 4 - ((uintptr_t)buf) & 3;
260 if (rem != 0) {
261 if (len < rem) {
262 rem = len;
264 nxge_crc32c_byte(&crc32, buf, rem);
265 buf = buf + rem;
266 len = len - rem;
271 rem = len & 3;
272 if (rem !
[all...]
/illumos-gate/usr/src/cmd/lms/SyncLib/src/
H A DThreadUnix.cpp158 timespec time, rem; local
165 // rem will include the remaining time
166 if (nanosleep(&time, &rem) == -1) {
167 time.tv_sec = rem.tv_sec;
168 time.tv_nsec = rem.tv_nsec;
/illumos-gate/usr/src/boot/include/
H A Dinttypes.h44 intmax_t rem; /* Remainder. */ member in struct:__anon9
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/
H A Drcp.c79 static int rem; variable
220 (void) desrcpwrite(rem, "", 1);
418 rem = -1;
600 if (rem == -1) {
657 rem = sock;
718 rem = rcmd_af(&host, portnumber,
722 if (rem < 0)
730 if (read(rem, &resp, sizeof (resp))
738 (void) close(rem);
740 rem
[all...]
H A Drsh.c207 int c, rem; local
567 status = kcmd(&rem, &host, portnumber,
653 rem = rcmd_af(&host, portnumber, pwd->pw_name, user, args,
655 if (rem < 0)
666 if (setsockopt(rem, SOL_SOCKET, SO_DEBUG, (char *)&one,
683 (void) shutdown(rem, SHUT_WR);
693 (void) ioctl(rem, FIONBIO, &one);
710 FD_SET(rem, &remset);
711 if (select(rem + 1, NULL, &remset, NULL, NULL) < 0) {
718 if (!FD_ISSET(rem,
[all...]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dinet_ntop.c383 int rem; local
390 rem = dbl_col - &v6buf.v6words_u[0];
391 for (next = 0; next < rem; next++) {
395 rem = i - rem;
396 word = 8 - rem;
397 while (rem > 0) {
400 rem--;
/illumos-gate/usr/src/common/util/i386/
H A Dmuldiv.s680 movl 12(%esp), %eax / rem, rem
681 movl 16(%esp), %edx / rem, rem
781 / uint64_t xt, yt, rem;
793 / (void) UDivRem(xt, yt, &rem);
794 / return (x < 0 ? (int64_t) - rem : rem);
824 movl 8(%esp), %eax / rem, rem
[all...]
/illumos-gate/usr/src/lib/libc/port/fp/
H A Dquadint.h122 u_longlong_t ___qdivrem(u_longlong_t u, u_longlong_t v, u_longlong_t *rem);
/illumos-gate/usr/src/uts/common/zmod/
H A Dadler32.c135 unsigned rem; local
138 rem = (unsigned)(len2 % BASE);
140 sum2 = rem * sum1;
143 sum2 += ((adler1 >> 16) & 0xffff) + ((adler2 >> 16) & 0xffff) + BASE - rem;
/illumos-gate/usr/src/boot/lib/libstand/
H A Dquad.h100 u_quad_t __qdivrem(u_quad_t u, u_quad_t v, u_quad_t *rem);
/illumos-gate/usr/src/boot/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;
/illumos-gate/usr/src/lib/libsmedia/plugins/floppy/common/
H A Df_generic.c226 int32_t cyl, rem, head, start_sector; local
262 rem = r_p->offset%(fdchar.fdc_nhead * fdchar.fdc_secptrack);
263 head = rem/fdchar.fdc_secptrack;
264 start_sector = rem%fdchar.fdc_secptrack + 1;
300 int32_t cyl, rem, head, start_sector; local
335 rem = r_p->offset%(fdchar.fdc_nhead * fdchar.fdc_secptrack);
336 head = rem/fdchar.fdc_secptrack;
337 start_sector = rem%fdchar.fdc_secptrack + 1;
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/
H A Dserver.c32 * to the outside world (which is why we use `wrem' and not `rem').
92 rem = 0;
100 if (read(rem, cp, 1) <= 0)
107 if (read(rem, cp, 1) != 1)
289 (void) deswrite(rem, buf, strlen(buf), 0);
385 (void) deswrite(rem, buf, strlen(buf), 0);
415 (void) deswrite(rem, "E\n", 2, 0);
443 (void) deswrite(rem, buf, strlen(buf), 0);
453 (void) deswrite(rem, buf, strlen(buf), 0);
457 (void) deswrite(rem, bu
[all...]
/illumos-gate/usr/src/cmd/ptools/ppriv/
H A Dppriv.c366 static priv_set_t **rem, **add, **assign; variable
395 rem = calloc(pri->priv_nsets, sizeof (priv_set_t *));
398 if (rem == NULL || add == NULL || assign == NULL)
430 toupd = &rem;
452 if (((toupd == &rem || toupd == &add) && assign[ind] != NULL) ||
454 rem[ind] != NULL || add[ind] != NULL))) {
483 if (rem[i] != NULL)
484 priv_intersect(rem[i], target);
565 if (rem[set] != NULL || add[set] != NULL ||
568 if (rem[se
[all...]

Completed in 66 milliseconds

123