Searched refs:diff (Results 1 - 25 of 86) sorted by relevance

1234

/haiku/src/kits/package/
H A DPackageVersion.cpp93 int diff = NaturalCompare(fMajor.String(), other.fMajor.String()); local
94 if (diff != 0)
95 return diff;
97 diff = NaturalCompare(fMinor.String(), other.fMinor.String());
98 if (diff != 0)
99 return diff;
101 diff = NaturalCompare(fMicro.String(), other.fMicro.String());
102 if (diff != 0)
103 return diff;
115 diff
[all...]
/haiku/src/system/libroot/posix/glibc/arch/generic/
H A Dcmp.c48 goto diff;
51 diff:
/haiku/src/servers/app/drawing/
H A DAlphaMaskCache.h68 int diff = memcmp(fShape->ptList, other.fShape->ptList, local
70 if (diff != 0)
71 return diff < 0;
72 diff = memcmp(fShape->opList, other.fShape->opList,
74 if (diff != 0)
75 return diff < 0;
/haiku/src/system/libnetwork/netresolv/nameser/
H A Dns_samedomain.c61 int diff, escaped; local
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;
/haiku/src/system/libroot/os/arch/sparc/
H A Dfpu_compare.c141 * We define `diff' here to expand these as:
149 #define diff(magnitude) (a->fp_sign ? opposite_cc(magnitude) : (magnitude)) macro
151 cc = diff(FSR_CC_LT);
155 cc = diff(FSR_CC_GT);
171 cc = diff(FSR_CC_GT);
/haiku/src/add-ons/kernel/drivers/network/pcnet/dev/le/
H A Dlancevar.h192 uint16_t diff; local
200 diff = *a++ - *b++;
201 diff |= *a++ - *b++;
202 diff |= *a++ - *b++;
209 diff = (a[0] - b[0]) | (a[1] - b[1]) | (a[2] - b[2]);
212 return (diff);
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_hal/ar9002/
H A Dar9280_olc.c178 int16_t *diff)
192 *diff = (uint16_t)(pwr_table_offset - AR5416_PWR_TABLE_OFFSET_DB);
194 *diff *= 2;
199 gb[k] = (uint16_t)(gb[k] - *diff);
210 return *diff;
215 int16_t diff, uint8_t *pdadcValues)
217 #define NUM_PDADC(diff) (AR5416_NUM_PDADC_VALUES - diff)
228 for (k = 0; k < (uint16_t)NUM_PDADC(diff); k++ ) {
229 pdadcValues[k] = pdadcValues[k + diff];
176 ar9280ChangeGainBoundarySettings(struct ath_hal *ah, uint16_t *gb, uint16_t numXpdGain, uint16_t pdGainOverlap_t2, int8_t pwr_table_offset, int16_t *diff) argument
214 ar9280AdjustPDADCValues(struct ath_hal *ah, int8_t pwr_table_offset, int16_t diff, uint8_t *pdadcValues) argument
347 uint16_t diff; local
[all...]
/haiku/src/add-ons/kernel/bus_managers/ps2/
H A Dmovement_maker.cpp268 int diff; local
279 diff = posX - fPreviousX;
281 if ((diff > -fSmallMovement && diff < -1)
282 || (diff > 1 && diff < fSmallMovement)) {
283 diff /= 2;
285 if (diff == 0)
288 fDeltaSumX += diff;
290 diff
[all...]
/haiku/src/system/libroot/posix/time/
H A Dstrftime.c439 int diff; local
445 diff = t->TM_GMTOFF;
468 diff = -timezone;
474 diff = -altzone;
479 if (diff < 0) {
481 diff = -diff;
484 diff /= SECSPERMIN;
485 diff = (diff / MINSPERHOU
[all...]
/haiku/3rdparty/pulkomandy/
H A Dcatmerge.sh15 # Compare (diff) the keys only (cut) ; keep only 'removed' lines (grep -),
16 # Ignore diff header and headlines from both files (tail), remove diff's
19 diff -u <(cut -f 1,2 $OLD) <(cut -f 1,2 $NEW) |grep ^-|\
/haiku/src/add-ons/accelerants/matrox/engine/
H A Dmga_maventv.c35 float diff, diff_smallest = INFINITY; local
156 diff = *ht_new - *ht_last_line;
159 if (diff < diff_smallest)
172 diff_smallest = diff;
719 int diff; local
748 diff = tv_target.timing.v_total - tv_target.timing.v_display;
749 tv_target.timing.v_sync_start = tv_target.timing.v_display + ((diff * 7) / 20);
756 diff = tv_target.timing.v_total - tv_target.timing.v_display;
757 tv_target.timing.v_sync_start = tv_target.timing.v_display + ((diff * 5) / 20);
811 diff
1136 int diff; local
1156 int diff; local
[all...]
/haiku/src/tests/system/kernel/cache/
H A Dfile_map_test.cpp164 off_t diff = offset - fOffsets[index]; local
166 if (fTestVecs[0].length > fSize - diff) {
170 if (fTestVecs[0].offset != fVecs[index].offset + diff) {
172 fTestVecs[0].offset, fVecs[index].offset + diff);
199 off_t diff = offset - fOffsets[index]; local
200 vecs[count].offset = fVecs[index].offset + diff;
201 vecs[count].length = fVecs[index].length - diff;
/haiku/src/apps/activitymonitor/
H A DSettingsWindow.cpp55 int32 diff = abs(kUpdateIntervals[i] - interval); local
56 if (diff < bestDiff) {
57 bestDiff = diff;
/haiku/src/kits/game/
H A DGSUtility.cpp21 float diff = (set > *value) ? set - *value : *value - set; local
23 float inc = diff * 200;
/haiku/src/servers/app/drawing/Painter/bitmap_painter/
H A DBitmapPainter.cpp195 float diff = fBitmapBounds.left - sourceRect.left; local
196 fDestinationRect.left += diff * fScaleX;
200 float diff = fBitmapBounds.top - sourceRect.top; local
201 fDestinationRect.top += diff * fScaleY;
205 float diff = sourceRect.right - fBitmapBounds.right; local
206 fDestinationRect.right -= diff * fScaleX;
210 float diff = sourceRect.bottom - fBitmapBounds.bottom; local
211 fDestinationRect.bottom -= diff * fScaleY;
/haiku/src/system/kernel/arch/m68k/
H A Darch_debug.cpp85 addr_t diff = nextFramePointer - framePointer; local
88 if (diff & 0x80000000)
89 diff = 0;
105 diff, ip, image, symbol, ip - baseAddress,
109 framePointer, diff, ip, image, (void *)baseAddress,
113 kprintf("%08lx (+%4ld) %08lx\n", framePointer, diff, ip);
/haiku/src/system/kernel/arch/ppc/
H A Darch_debug.cpp84 addr_t diff = nextFramePointer - framePointer; local
87 if (diff & 0x80000000)
88 diff = 0;
104 diff, ip, image, symbol, ip - baseAddress,
108 framePointer, diff, ip, image, (void *)baseAddress,
112 kprintf("%08lx (+%4ld) %08lx\n", framePointer, diff, ip);
/haiku/src/add-ons/accelerants/s3/
H A Dtrio64_mode.cpp53 double diff = ffreq - div / (1 << n2); local
54 if (diff < 0.0)
55 diff = -diff;
56 if (diff < best_diff) {
57 best_diff = diff;
/haiku/src/system/libroot/posix/string/arch/x86_64/
H A Darch_string.cpp170 auto diff = reinterpret_cast<uintptr_t>(destination) % 16; local
171 if (diff) {
172 diff = 16 - diff;
173 length -= diff;
176 auto ptr = reinterpret_cast<__m128i*>(destination + diff);
/haiku/src/add-ons/accelerants/skeleton/engine/
H A Dtvout.c41 float diff, diff_smallest = 999999999; local
161 diff = *ht_new - *ht_last_line;
164 if (diff < diff_smallest)
177 diff_smallest = diff;
752 //org: no visible diff:
938 int diff; local
945 diff = 576 - tv_target.timing.v_display;
947 if (diff < 0)
950 diff = 0;
953 tv_target.timing.v_sync_start = tv_target.timing.v_display + 1 + (diff /
958 int diff; local
[all...]
/haiku/src/add-ons/accelerants/via/engine/
H A Dtvout.c41 float diff, diff_smallest = 999999999; local
161 diff = *ht_new - *ht_last_line;
164 if (diff < diff_smallest)
177 diff_smallest = diff;
752 //org: no visible diff:
938 int diff; local
945 diff = 576 - tv_target.timing.v_display;
947 if (diff < 0)
950 diff = 0;
953 tv_target.timing.v_sync_start = tv_target.timing.v_display + 1 + (diff /
958 int diff; local
[all...]
/haiku/src/kits/interface/
H A DBMCPrivate.cpp217 float diff = width - fPreviousWidth; local
220 if (Window() != NULL && diff != 0) {
222 if (diff > 0) {
226 dirty.left = dirty.right - diff - kVMargin * 2;
228 } else if (diff < 0) {
/haiku/src/add-ons/kernel/file_systems/btrfs/
H A DExtentAllocator.cpp189 uint64 diff = node->offset - found->offset; local
190 found->offset += diff + node->length;
191 found->length -= diff + node->length;
192 // diff < 0 couldn't happen because of the Compare function
193 if (diff > 0) {
195 node->offset - diff, diff, found->flags);
254 uint64 diff = node->offset - found->offset; local
255 found->offset += diff + node->length;
256 found->length -= diff
[all...]
/haiku/src/tests/system/libroot/posix/
H A DTestUnitUtils.h55 bigtime_t diff = actual > expected ? actual - expected : expected - actual; local
56 if (diff <= expected / 20)
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8192c/
H A Dr92c_chan.c90 uint8_t ofdmpow, htpow, diff, max; local
133 diff = rt->ht40_2s_tx_pwr_diff[chain][group];
134 htpow = (htpow > diff) ? htpow - diff : 0;
138 diff = rt->ofdm_tx_pwr_diff[chain][group];
139 ofdmpow = htpow + diff; /* HT->OFDM correction. */
145 diff = rt->ht20_tx_pwr_diff[chain][group];
146 htpow += diff; /* HT40->HT20 correction. */

Completed in 214 milliseconds

1234