HomeSort by: relevance | last modified time | path
    Searched defs:diff (Results 1 - 25 of 191) sorted by relevancy

1 2 3 4 5 6 7 8

  /src/common/lib/libc/quad/
subdi3.c 54 union uu aa, bb, diff; local in function:__subdi3
58 diff.ul[L] = aa.ul[L] - bb.ul[L];
59 diff.ul[H] = aa.ul[H] - bb.ul[H] - (diff.ul[L] > aa.ul[L]);
60 return (diff.q);
  /src/lib/libc/string/
wcscasecmp.c 34 int diff = 0; local in function:__weak_alias
43 diff = lc1 - lc2;
44 if (diff)
45 return diff;
wcsncasecmp.c 34 int diff = 0; local in function:__weak_alias
43 diff = lc1 - lc2;
44 if (diff)
45 return diff;
  /src/sys/external/bsd/drm2/include/linux/
nospec.h 48 size_t j, diff, mask; local in function:array_index_nospec
58 /* If i >= n, then diff has the high bit set; otherwise clear. */
59 diff = n - 1 - j;
62 * If i >= n so that diff's high bit is set, mask = 0;
65 mask = (diff >> (NBBY*sizeof(diff) - 1)) - 1;
  /src/sys/arch/powerpc/fpu/
fpu_compare.c 134 * We define `diff' here to expand these as:
142 #define diff(magnitude) (a->fp_sign ? opposite_cc(magnitude) : (magnitude)) macro
144 cc = diff(FPSCR_FL);
148 cc = diff(FPSCR_FG);
  /src/sys/arch/sparc/fpu/
fpu_compare.c 125 * We define `diff' here to expand these as:
133 #define diff(magnitude) (a->fp_sign ? opposite_cc(magnitude) : (magnitude)) macro
135 cc = diff(FSR_CC_LT);
139 cc = diff(FSR_CC_GT);
155 cc = diff(FSR_CC_GT);
  /src/usr.bin/w/
pr_time.c 61 time_t diff; local in function:pr_attime
65 diff = *now - *started;
67 if (diff > SECSPERDAY * DAYSPERWEEK) {
  /src/tests/usr.bin/xlint/lint1/
msg_244.c 17 diff(struct a *a, struct b *b) function in typeref:typename:int
  /src/sys/arch/macppc/dev/
fancontrol.c 52 int temp, i, speed, diff, step; local in function:fancontrol_adjust_zone
69 diff = temp - z->Tmin;
71 if (diff < 0) diff = 0;
72 diff = (100 * diff) / (z->Tmax - z->Tmin);
77 speed = z->fans[i].min_rpm + diff * step;
78 DPRINTF("diff %d base %d %d sp %d\n",
79 diff, z->fans[i].min_rpm, z->fans[i].max_rpm, speed);
  /src/sys/dev/raidframe/
rf_etimer.h 40 struct timeval diff; member in struct:RF_Etimer_s
56 RF_TIMEVAL_DIFF(&(_t_).st, &(_t_).et, &(_t_).diff) \
59 #define RF_ETIMER_VAL_US(_t_) (RF_TIMEVAL_TO_US((_t_).diff))
60 #define RF_ETIMER_VAL_MS(_t_) (RF_TIMEVAL_TO_US((_t_).diff)/1000)
  /src/tests/lib/libc/gen/
t_randomid.c 53 uint32_t lowest, n, diff; local in function:ATF_TC_BODY
65 diff = n - last[id];
67 if (diff <= lowest) {
71 " (diff %5"PRIu32"), "
73 id, last[id], n, diff, lowest);
75 ATF_REQUIRE_MSG(diff >= PERIOD,
76 "diff (%"PRIu32") less than minimum "
77 "period (%d)", diff, PERIOD);
79 lowest = diff;
  /src/games/backgammon/common_source/
odds.c 85 int a, diff, place, addon, menstuck; local in function:canhit
100 diff = abs(j - i);
104 for (k = 1; k < diff; k++)
105 if (k < 7 && diff - k < 7 &&
107 board[i + a * (diff - k)] >= 0))
108 odds(k, diff - k, addon);
109 if ((j == b || menstuck < 2) && diff < 7)
110 odds(diff, 0, addon);
  /src/lib/libc/nameser/
ns_samedomain.c 61 int diff, escaped; local in function:ns_samedomain
113 diff = (int)(la - lb);
120 if (diff < 2)
128 if (a[diff - 1] != '.')
136 for (i = diff - 1; i > 0; i--)
148 cp = a + diff;
  /src/regress/sys/kern/kqueue/vnode/
vnode.c 48 struct timeval then, now, diff; local in function:main
100 timersub(&now, &then, &diff);
103 n, (long long)diff.tv_sec, (long)diff.tv_usec);
  /src/sys/arch/arm/nxp/
imx_ccm_div.c 91 const int diff = (int)rate - (int)tmp_rate; local in function:imx_ccm_div_set_rate
93 if (diff >= 0 && diff < best_diff) {
95 best_diff = diff;
98 if (abs(diff) < abs(best_diff)) {
100 best_diff = abs(diff);
  /src/sys/external/bsd/compiler_rt/dist/lib/xray/
xray_utils.h 80 constexpr ptrdiff_t diff(uintptr_t A, uintptr_t B) { function in namespace:__xray
  /src/tools/compat/
getline.c 63 ssize_t diff = (ssize_t)(ptr - *buf); local in function:getdelim
64 if (diff != 0) {
66 return diff;
  /src/usr.bin/fmt/
buffer.h 63 ptrdiff_t diff; local in function:buf_grow
76 diff = nptr - buf->bptr;
77 buf->bptr += diff;
79 buf->ptr += diff;
  /src/sys/arch/arm/sunxi/
sunxi_ccu_div.c 121 const u_int diff = abs((int)rate - (int)new_rate); local in function:sunxi_ccu_div_select_parent
122 if (diff < best_diff) {
123 best_diff = diff;
sunxi_ccu_fractional.c 157 const int diff = abs(new_rate - rate); local in function:sunxi_ccu_fractional_set_rate
158 if (diff < best_diff) {
159 best_diff = diff;
162 if (diff == 0)
224 const int diff = abs(try_rate - rate); local in function:sunxi_ccu_fractional_round_rate
225 if (diff < best_diff) {
226 best_diff = diff;
228 if (diff == 0)
sunxi_ccu_display.c 49 int diff, diff_x2; local in function:sunxi_ccu_lcdxch0_set_rate
54 diff = abs(new_rate - rate);
62 if (diff_x2 < diff) {
83 int diff, diff_x2; local in function:sunxi_ccu_lcdxch0_round_rate
88 diff = abs(try_rate - rate);
93 if (diff_x2 < diff)
114 int rate, diff; local in function:sunxi_ccu_lcdxch1_set_rate
120 diff = abs(rate - new_rate);
121 if (diff < best_diff) {
122 best_diff = diff;
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/
drm_rect.c 101 int diff; local in function:drm_rect_clip_scaled
103 diff = clip->x1 - dst->x1;
104 if (diff > 0) {
106 drm_rect_width(dst), &diff);
109 dst->x1 += diff;
111 diff = clip->y1 - dst->y1;
112 if (diff > 0) {
114 drm_rect_height(dst), &diff);
117 dst->y1 += diff;
119 diff = dst->x2 - clip->x2
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/vboxvideo/
vbva_base.c 29 s32 diff = vbva->data_offset - vbva->free_offset; local in function:vbva_buffer_available
31 return diff > 0 ? diff : vbva->data_len + diff;
40 s32 diff = len - bytes_till_boundary; local in function:vbva_buffer_place_data_at
42 if (diff <= 0) {
48 memcpy(&vbva->data[0], (u8 *)p + bytes_till_boundary, diff);
  /src/usr.sbin/timed/timed/
correct.c 188 struct timeval diff; local in function:adj_msg_time
190 timersub(now, &from_when, &diff);
191 timeradd(&msg->tsp_time, &diff, &msg->tsp_time);
  /src/sys/arch/aarch64/aarch64/
syscall.c 139 const size_t diff = callp->sy_narg - nargs; local in function:EMULNAME
142 diff * sizeof(register_t));

Completed in 32 milliseconds

1 2 3 4 5 6 7 8