/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | memcmp.c | 36 int diff; local 40 if (diff = *s1++ - *s2++) 41 return (diff);
|
/illumos-gate/usr/src/lib/libc/port/i18n/ |
H A D | putws.c | 51 ptrdiff_t diff; local 66 diff = ptr - ptr0; 67 if (diff <= INT_MAX) 68 return ((int)diff);
|
/illumos-gate/usr/src/lib/libshell/common/tests/ |
H A D | comvar.sh | 496 [[ "${foo1[1234]}" == "${foo2[1234]}" ]] || err_exit "test failed\n$(diff -u <( print -r -- "${foo1[1234]}") <(print -r -- "${foo2[1234]}"))." 520 function diff function 529 float mydiff=sw.diff
|
/illumos-gate/usr/src/psm/promif/ieee1275/sun4u/ |
H A D | prom_opl.c | 67 prom_opl_set_diff(int64_t diff) argument 74 ci[3] = (cell_t)diff; /* Arg1: time diff */
|
/illumos-gate/usr/src/uts/common/ipp/meters/ |
H A D | tokenmt.c | 237 hrtime_t diff = now - tokenmt_data->last_seen; local 242 tokens = (cfg_parms->committed_rate * diff) / 269 tokens = (diff * cfg_parms->committed_rate) / 276 tokens = (diff * cfg_parms->peak_rate) /
|
/illumos-gate/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_samedomain.c | 53 int diff, i, escaped; local 105 diff = la - lb; 112 if (diff < 2) 120 if (a[diff - 1] != '.') 128 for (i = diff - 2; i >= 0; i--) 140 cp = a + diff;
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_utf8.c | 124 int diff = -1; local 141 if ((diff = strcasecmp(p1, p2)) == 0) 168 diff = wscasecmp(wcs1, wcs2); 175 return (diff);
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | ib_ring.c | 84 uint32_t diff; local 87 diff = ring->w_alloc_ctr - (uint32_t)atomic_get(&ring->w_free_ctr); 88 ASSERT(diff <= ring->w_nr); 90 return (diff);
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | lut.c | 80 int diff; local 85 diff = (*cmp_func)(tmp->lut_lhs, lhs); 87 diff = (const char *)lhs - (const char *)tmp->lut_lhs; 89 if (diff == 0) { 93 } else if (diff > 0) { 118 int diff; local 124 diff = (*cmp_func)(root->lut_lhs, lhs); 126 diff = (const char *)lhs - (const char *)root->lut_lhs; 128 if (diff == 0) 130 else if (diff > 141 int diff; local [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | iexpr.c | 141 int diff; local 184 diff = iexpr_cmp(np1->u.expr.left, np2->u.expr.left); 185 if (diff != 0) 186 return (diff); 192 diff = iexpr_cmp(np1->u.name.child, np2->u.name.child); 193 if (diff != 0) 194 return (diff); 198 diff = iexpr_cmp(np1->u.event.ename, np2->u.event.ename); 199 if (diff != 0) 200 return (diff); [all...] |
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/include/ |
H A D | cyclic_oper.h | 48 u32_t diff = _ABS_DIFF(x,y); local 49 return (diff < d) ? x < y : x > y; 54 u32_t diff = _ABS_DIFF(x,y); local 55 return (diff < d) ? x <= y : x >= y;
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | xdr_mem.c | 127 ptrdiff_t diff; local 132 diff = lastaddr - newaddr; 133 xdrs->x_handy = (int)diff;
|
/illumos-gate/usr/src/cmd/logadm/ |
H A D | lut.c | 72 int diff = 0; local 80 } else if (lhs != NULL && (diff = strcmp(root->lut_lhs, lhs)) == 0) { 83 } else if (diff > 0) 121 int diff; local 125 else if ((diff = strcmp(root->lut_lhs, lhs)) == 0) 127 else if (diff > 0)
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/ |
H A D | rc_base.c | 185 unsigned int diff; local 190 diff = residual - string_name; 191 if (!(type = malloc(diff + 1))) 193 (void) strncpy(type, string_name, diff);
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | util_ordering.c | 93 gssint_uint64 diff; local 107 diff = n1 - n2; 110 diff = n2 - n1; 115 if (diff < half)
|
/illumos-gate/usr/src/uts/common/io/drm/ |
H A D | drm_irq.c | 329 u32 cur_vblank, diff; local 338 diff = cur_vblank - dev->last_vblank[crtc]; 340 diff += dev->max_vblank_count; 341 DRM_DEBUG("last_vblank[%d]=0x%x, cur_vblank=0x%x => diff=0x%x\n", 342 crtc, dev->last_vblank[crtc], cur_vblank, diff); 345 atomic_add(diff, &dev->_vblank_count[crtc]);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | ppriv.c | 169 priv_set_t diff = CR_OPPRIV(cr); local 170 priv_inverse(&diff); 171 priv_intersect(&CR_OPPRIV(pcr), &diff); local 172 donocd = !priv_issubset(&diff, &CR_IPRIV(cr));
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | clock_highres.c | 234 hrtime_t diff, now = gethrtime(); local 253 diff = start - now; 267 diff = (now - start) % interval; 273 if (now - diff > last) { 285 diff = interval - diff; 288 hrt2ts(diff, &when->it_value);
|
/illumos-gate/usr/src/lib/libcpc/sparc/ |
H A D | event_ultra.c | 436 cpc_event_diff(cpc_event_t *diff, cpc_event_t *left, cpc_event_t *right) argument 438 diff->ce_hrt = left->ce_hrt; 439 diff->ce_tick = left->ce_tick - right->ce_tick; 440 diff->ce_pic[0] = left->ce_pic[0] - right->ce_pic[0]; 441 diff->ce_pic[1] = left->ce_pic[1] - right->ce_pic[1];
|
/illumos-gate/usr/src/lib/libdscfg/common/ |
H A D | cfg_local.c | 551 int diff = 0; local 565 diff = len - cfl->l_esiz[i - 1]; 567 if ((diff > 0) && (diff > cfl->l_free)) { 596 cfl->l_esiz[i - 1] += diff; /* the new entry size */ 597 if (diff != 0) { /* move stuff over/back for correct fit */ 599 bcopy(p, p + diff, (cfl->l_entry + cfl->l_size - p)); 600 cfl->l_free -= diff; /* 0 - (-1) = 1 */ 601 cfl->l_size += diff; 604 cfp->cf_head->h_csize += diff; [all...] |
/illumos-gate/usr/src/lib/libxcurses/src/tabs/ |
H A D | tabs.c | 413 int diff = nc - oc; local 419 putp(tparm(parm_right_cursor, diff, 0, 0, 0, 0, 0, 0, 0, 0)); 421 while (diff--) 424 while (diff--)
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | strftime.c | 412 int diff; local 437 diff = -timezone; 439 diff = -altzone; 440 if (diff < 0) { 442 diff = -diff; 446 diff /= SECSPERMIN; 447 diff = (diff / MINSPERHOUR) * 100 + 448 (diff [all...] |
/illumos-gate/usr/src/lib/libilb/common/ |
H A D | ilb_subr.c | 110 * diff contains the difference between the two with the same 116 i_cmp_addr_impl(void *ip1, void *ip2, ip_addr_type_t atype, int64_t *diff) argument 165 * 3. if high-order diff == 0, we can take low-order 166 * diff, if necessary cap it, convert it to signed 171 * if high-order diff is > 1, any low-order difference won't 232 if (diff != NULL) 233 *diff = d; 240 ilb_cmp_in6_addr(struct in6_addr *ip1, struct in6_addr *ip2, int64_t *diff) argument 244 res = i_cmp_addr_impl(ip1, ip2, internal, diff); 249 ilb_cmp_ipaddr(ilb_ip_addr_t *ip1, ilb_ip_addr_t *ip2, int64_t *diff) argument [all...] |
/illumos-gate/usr/src/lib/libkmf/ber_der/common/ |
H A D | decode.c | 108 int noctets, diff; local 143 diff = sizeof (ber_int_t) - noctets; 144 if (kmfber_read(ber, (char *)&netlen + diff, noctets)
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/ |
H A D | decode.c | 97 int noctets, diff; local 131 diff = sizeof(ber_int_t) - noctets; 132 if ( ber_read( ber, (char *) &netlen + diff, noctets )
|