Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 392) sorted by relevance

12345678910>>...16

/external/icu4c/common/
Ducnvbocu.c271 packDiff(int32_t diff) { in packDiff() argument
274 if(diff>=BOCU1_REACH_NEG_1) { in packDiff()
277 if(diff<=BOCU1_REACH_POS_1) { in packDiff()
279 return 0x01000000|(BOCU1_MIDDLE+diff); in packDiff()
282 if(diff<=BOCU1_REACH_POS_2) { in packDiff()
284 diff-=BOCU1_REACH_POS_1+1; in packDiff()
287 m=diff%BOCU1_TRAIL_COUNT; in packDiff()
288 diff/=BOCU1_TRAIL_COUNT; in packDiff()
291 result|=(BOCU1_START_POS_2+diff)<<8; in packDiff()
292 } else if(diff<=BOCU1_REACH_POS_3) { in packDiff()
[all …]
/external/chromium/third_party/icu/source/common/
Ducnvbocu.c271 packDiff(int32_t diff) { in packDiff() argument
274 if(diff>=BOCU1_REACH_NEG_1) { in packDiff()
277 if(diff<=BOCU1_REACH_POS_1) { in packDiff()
279 return 0x01000000|(BOCU1_MIDDLE+diff); in packDiff()
282 if(diff<=BOCU1_REACH_POS_2) { in packDiff()
284 diff-=BOCU1_REACH_POS_1+1; in packDiff()
287 m=diff%BOCU1_TRAIL_COUNT; in packDiff()
288 diff/=BOCU1_TRAIL_COUNT; in packDiff()
291 result|=(BOCU1_START_POS_2+diff)<<8; in packDiff()
292 } else if(diff<=BOCU1_REACH_POS_3) { in packDiff()
[all …]
/external/chromium/third_party/icu/source/i18n/
Dbocsu.c29 u_writeDiff(int32_t diff, uint8_t *p) { in u_writeDiff() argument
30 if(diff>=SLOPE_REACH_NEG_1) { in u_writeDiff()
31 if(diff<=SLOPE_REACH_POS_1) { in u_writeDiff()
32 *p++=(uint8_t)(SLOPE_MIDDLE+diff); in u_writeDiff()
33 } else if(diff<=SLOPE_REACH_POS_2) { in u_writeDiff()
34 *p++=(uint8_t)(SLOPE_START_POS_2+(diff/SLOPE_TAIL_COUNT)); in u_writeDiff()
35 *p++=(uint8_t)(SLOPE_MIN+diff%SLOPE_TAIL_COUNT); in u_writeDiff()
36 } else if(diff<=SLOPE_REACH_POS_3) { in u_writeDiff()
37 p[2]=(uint8_t)(SLOPE_MIN+diff%SLOPE_TAIL_COUNT); in u_writeDiff()
38 diff/=SLOPE_TAIL_COUNT; in u_writeDiff()
[all …]
Djapancal.cpp408 int32_t diff = year - kEraInfo[i].year; in handleComputeFields() local
412diff,low, high, i, kEraInfo[i].month-1, kEraInfo[i].day, kEraInfo[i].year, internalGet(UCAL_MONTH… in handleComputeFields()
418 if (diff == 0) { in handleComputeFields()
419 diff = internalGet(UCAL_MONTH) - (kEraInfo[i].month - 1); in handleComputeFields()
421 …fprintf(stderr, "diff now %d (M) = %d - %d - 1\n", diff, internalGet(UCAL_MONTH), kEraInfo[i].mon… in handleComputeFields()
423 if (diff == 0) { in handleComputeFields()
424 diff = internalGet(UCAL_DATE) - kEraInfo[i].day; in handleComputeFields()
426 fprintf(stderr, "diff now %d (D)\n", diff); in handleComputeFields()
430 if (diff >= 0) { in handleComputeFields()
436 fprintf(stderr, ". low=%d, high=%d, i=%d, diff=%d.. %d\n", low, high, i, diff, year); in handleComputeFields()
/external/icu4c/i18n/
Dbocsu.c29 u_writeDiff(int32_t diff, uint8_t *p) { in u_writeDiff() argument
30 if(diff>=SLOPE_REACH_NEG_1) { in u_writeDiff()
31 if(diff<=SLOPE_REACH_POS_1) { in u_writeDiff()
32 *p++=(uint8_t)(SLOPE_MIDDLE+diff); in u_writeDiff()
33 } else if(diff<=SLOPE_REACH_POS_2) { in u_writeDiff()
34 *p++=(uint8_t)(SLOPE_START_POS_2+(diff/SLOPE_TAIL_COUNT)); in u_writeDiff()
35 *p++=(uint8_t)(SLOPE_MIN+diff%SLOPE_TAIL_COUNT); in u_writeDiff()
36 } else if(diff<=SLOPE_REACH_POS_3) { in u_writeDiff()
37 p[2]=(uint8_t)(SLOPE_MIN+diff%SLOPE_TAIL_COUNT); in u_writeDiff()
38 diff/=SLOPE_TAIL_COUNT; in u_writeDiff()
[all …]
Djapancal.cpp408 int32_t diff = year - kEraInfo[i].year; in handleComputeFields() local
412diff,low, high, i, kEraInfo[i].month-1, kEraInfo[i].day, kEraInfo[i].year, internalGet(UCAL_MONTH… in handleComputeFields()
418 if (diff == 0) { in handleComputeFields()
419 diff = internalGet(UCAL_MONTH) - (kEraInfo[i].month - 1); in handleComputeFields()
421 …fprintf(stderr, "diff now %d (M) = %d - %d - 1\n", diff, internalGet(UCAL_MONTH), kEraInfo[i].mon… in handleComputeFields()
423 if (diff == 0) { in handleComputeFields()
424 diff = internalGet(UCAL_DATE) - kEraInfo[i].day; in handleComputeFields()
426 fprintf(stderr, "diff now %d (D)\n", diff); in handleComputeFields()
430 if (diff >= 0) { in handleComputeFields()
436 fprintf(stderr, ". low=%d, high=%d, i=%d, diff=%d.. %d\n", low, high, i, diff, year); in handleComputeFields()
/external/webkit/WebKitTools/Scripts/webkitpy/
Ddiff_parser_unittest.py94 diff = parser.files['WebCore/rendering/style/StyleFlexibleBoxData.h']
95 self.assertEquals(7, len(diff.lines))
97 self.assertEquals((47, 47), diff.lines[0][0:2])
98 self.assertEquals('', diff.lines[0][2])
99 self.assertEquals((48, 48), diff.lines[1][0:2])
100 self.assertEquals(' unsigned align : 3; // EBoxAlignment', diff.lines[1][2])
102 self.assertEquals((50, 0), diff.lines[3][0:2])
103 self.assertEquals(' unsigned orient: 1; // EBoxOrient', diff.lines[3][2])
107 diff = parser.files['WebCore/rendering/style/StyleRareInheritedData.cpp']
109 self.assertEquals(7 + 7 + 9, len(diff.lines))
[all …]
/external/stlport/test/unit/
Dsetdiff_test.cpp63 vector<int> diff; in setsymd1() local
64 set_symmetric_difference(v1.begin(), v1.end(), v2.begin(), v2.end(), back_inserter(diff)); in setsymd1()
65 CPPUNIT_ASSERT( diff.size() == 14 ); in setsymd1()
68 CPPUNIT_ASSERT( diff[i] == int_res[i] ); in setsymd1()
77 string diff; in setsymd2() local
79 back_inserter(diff), less<char>()); in setsymd2()
80 CPPUNIT_ASSERT( diff.size() == 22 ); in setsymd2()
83 CPPUNIT_ASSERT( diff[i] == char_res[i] ); in setsymd2()
115 vector<int> diff; in setdiff1() local
116 set_difference(v1.begin(), v1.end(), v2.begin(), v2.end(), back_inserter(diff)); in setdiff1()
[all …]
Dsetunion_test.cpp61 vector<int> diff; in setunon1() local
62 set_union(v1.begin(), v1.end(), v2.begin(), v2.end(), back_inserter(diff)); in setunon1()
63 CPPUNIT_ASSERT( diff.size() == 17 ); in setunon1()
65 CPPUNIT_ASSERT( diff[i] == i ); in setunon1()
74 string diff; in setunon2() local
76 back_inserter(diff), less<char>()); in setunon2()
77 CPPUNIT_ASSERT( diff.size() == 26 ); in setunon2()
79 CPPUNIT_ASSERT( diff[i] == ('A' + i) ); in setunon2()
/external/libvpx/vp8/common/
Drecon.c113 RECON_INVOKE(rtcd, recon4)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_mby_c()
117 RECON_INVOKE(rtcd, recon4)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_mby_c()
121 RECON_INVOKE(rtcd, recon4)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_mby_c()
125 RECON_INVOKE(rtcd, recon4)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_mby_c()
133 RECON_INVOKE(rtcd, recon4)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_mby_c()
143 RECON_INVOKE(rtcd, recon4)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_mb_c()
145 RECON_INVOKE(rtcd, recon4)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_mb_c()
147 RECON_INVOKE(rtcd, recon4)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_mb_c()
149 RECON_INVOKE(rtcd, recon4)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_mb_c()
154 RECON_INVOKE(rtcd, recon2)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_mb_c()
[all …]
Dmbpitch.c89 x->block[r*4+c].diff = &x->diff[r * 4 * 16 + c * 4]; in vp8_setup_block_dptrs()
98 x->block[16+r*2+c].diff = &x->diff[256 + r * 4 * 8 + c * 4]; in vp8_setup_block_dptrs()
108 x->block[20+r*2+c].diff = &x->diff[320+ r * 4 * 8 + c * 4]; in vp8_setup_block_dptrs()
114 x->block[24].diff = &x->diff[384]; in vp8_setup_block_dptrs()
Dreconintra4x4.c327 RECON_INVOKE(rtcd, recon)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_intra4x4mb()
331 RECON_INVOKE(rtcd, recon)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_intra4x4mb()
335 RECON_INVOKE(rtcd, recon)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_intra4x4mb()
339 RECON_INVOKE(rtcd, recon)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_intra4x4mb()
343 RECON_INVOKE(rtcd, recon)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_intra4x4mb()
347 RECON_INVOKE(rtcd, recon)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_intra4x4mb()
351 RECON_INVOKE(rtcd, recon)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_intra4x4mb()
355 RECON_INVOKE(rtcd, recon)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_intra4x4mb()
359 RECON_INVOKE(rtcd, recon)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_intra4x4mb()
363 RECON_INVOKE(rtcd, recon)(b->predictor, b->diff, *(b->base_dst) + b->dst, b->dst_stride); in vp8_recon_intra4x4mb()
[all …]
/external/libvpx/vpx_ports/
Dvpx_timer.h80 LARGE_INTEGER freq, diff; in vpx_usec_timer_elapsed() local
82 diff.QuadPart = t->end.QuadPart - t->begin.QuadPart; in vpx_usec_timer_elapsed()
84 if (QueryPerformanceFrequency(&freq) && diff.QuadPart < freq.QuadPart) in vpx_usec_timer_elapsed()
85 return (long)(diff.QuadPart * 1000000 / freq.QuadPart); in vpx_usec_timer_elapsed()
89 struct timeval diff; in vpx_usec_timer_elapsed()
91 timersub(&t->end, &t->begin, &diff); in vpx_usec_timer_elapsed()
92 return diff.tv_sec ? 1000000 : diff.tv_usec; in vpx_usec_timer_elapsed()
/external/icu4c/test/cintltst/
Dbocu1tst.c225 int32_t prev, count, diff; member
234 packDiff(int32_t diff);
286 packDiff(int32_t diff) { in packDiff() argument
289 if(diff>=BOCU1_REACH_NEG_1) { in packDiff()
291 if(diff<=BOCU1_REACH_POS_1) { in packDiff()
293 return 0x01000000|(BOCU1_MIDDLE+diff); in packDiff()
294 } else if(diff<=BOCU1_REACH_POS_2) { in packDiff()
296 diff-=BOCU1_REACH_POS_1+1; in packDiff()
299 } else if(diff<=BOCU1_REACH_POS_3) { in packDiff()
301 diff-=BOCU1_REACH_POS_2+1; in packDiff()
[all …]
/external/chromium/third_party/icu/source/test/cintltst/
Dbocu1tst.c225 int32_t prev, count, diff; member
234 packDiff(int32_t diff);
286 packDiff(int32_t diff) { in packDiff() argument
289 if(diff>=BOCU1_REACH_NEG_1) { in packDiff()
291 if(diff<=BOCU1_REACH_POS_1) { in packDiff()
293 return 0x01000000|(BOCU1_MIDDLE+diff); in packDiff()
294 } else if(diff<=BOCU1_REACH_POS_2) { in packDiff()
296 diff-=BOCU1_REACH_POS_1+1; in packDiff()
299 } else if(diff<=BOCU1_REACH_POS_3) { in packDiff()
301 diff-=BOCU1_REACH_POS_2+1; in packDiff()
[all …]
/external/srec/srec/crec/
Dastar_pphash.c48 asr_int32_t diff = 0; in compare_parp() local
52 diff = parp1->token_index - parp2->token_index; in compare_parp()
58 diff = parp1->word - parp2->word; in compare_parp()
59 if (diff) in compare_parp()
66 diff = (int)parp1->next - (int)parp2->next; in compare_parp()
69 if (diff) in compare_parp()
70 diff = (diff < 0 ? -1 : 1); in compare_parp()
71 return diff; in compare_parp()
/external/webkit/WebCore/svg/
DSVGAnimateTransformElement.cpp192 FloatSize diff = to.translate() - from.translate(); in calculateDistance() local
193 return sqrtf(diff.width() * diff.width() + diff.height() * diff.height()); in calculateDistance()
198 FloatSize diff = to.scale() - from.scale(); in calculateDistance() local
199 return sqrtf(diff.width() * diff.width() + diff.height() * diff.height()); in calculateDistance()
/external/qemu/distrib/libpng-1.2.19/
Dpnggccrd.c1010 int diff; in png_combine_row() local
1015 diff = (int) (png_ptr->width & 7); // amount lost in png_combine_row()
1110 : "0" (diff), // eax // input regs in png_combine_row()
1133 int diff = (int) (png_ptr->width & 7); /* amount lost */ in png_combine_row() local
1145 if (diff) /* number of leftover pixels: 3 for pngtest */ in png_combine_row()
1147 final_val += diff*BPP3; in png_combine_row()
1176 int diff; in png_combine_row() local
1181 diff = (int) (png_ptr->width & 7); // amount lost in png_combine_row()
1283 : "0" (diff), // eax // input regs in png_combine_row()
1306 int diff = (int) (png_ptr->width & 7); /* amount lost */ in png_combine_row() local
[all …]
/external/skia/include/core/
DSkMath.h101 int diff = max - value; in SkClampMax() local
103 diff &= diff >> 31; in SkClampMax()
106 return (value + diff) & ~(value >> 31); in SkClampMax()
122 int diff = max - value; in SkClampUMax()
124 diff &= diff >> 31; in SkClampUMax()
126 return value + diff; in SkClampUMax()
/external/libvpx/vp8/encoder/
Dpickinter.c107 int diff; in vp8_get16x16pred_error_c() local
111 diff = src_ptr[j] - ref_ptr[j]; in vp8_get16x16pred_error_c()
112 sum += diff; in vp8_get16x16pred_error_c()
113 pred_error += diff * diff; in vp8_get16x16pred_error_c()
141 int diff = src_ptr[c] - ref_ptr[c]; in vp8_get4x4sse_cs_c() local
142 distortion += diff * diff; in vp8_get4x4sse_cs_c()
294 int diff; in vp8_pick_intra_mbuv_mode() local
369 diff = u_p - expected_udc; in vp8_pick_intra_mbuv_mode()
370 pred_error[DC_PRED] += diff * diff; in vp8_pick_intra_mbuv_mode()
371 diff = v_p - expected_vdc; in vp8_pick_intra_mbuv_mode()
[all …]
/external/chromium/sdch/open-vcdiff/src/
Dvcdiffengine.cc140 OutputStringInterface* diff, in FinishEncoding() argument
148 coder->Output(diff); in FinishEncoding()
154 OutputStringInterface* diff, in EncodeInternal() argument
167 FinishEncoding(target_size, diff, coder); in EncodeInternal()
233 FinishEncoding(target_size, diff, coder); in EncodeInternal()
240 OutputStringInterface* diff, in Encode() argument
243 EncodeInternal<true>(target_data, target_size, diff, coder); in Encode()
245 EncodeInternal<false>(target_data, target_size, diff, coder); in Encode()
/external/ping/
Dping_common.h161 __u16 diff = (__u16)ntransmitted - acked; in in_flight() local
162 return (diff<=0x7FFF) ? diff : ntransmitted-nreceived-nerrors; in in_flight()
167 __u16 diff = (__u16)ntransmitted - seq; in acknowledge() local
168 if (diff <= 0x7FFF) { in acknowledge()
169 if ((int)diff+1 > pipesize) in acknowledge()
170 pipesize = (int)diff+1; in acknowledge()
/external/bzip2/
Dbzdiff.121 .I diff
26 .IR diff "."
34 .IR diff "."
38 .I diff
41 cmp(1), diff(1), bzmore(1), bzless(1), bzgrep(1), bzip2(1)
46 .I diff
/external/webkit/JavaScriptCore/assembler/
DARMAssembler.cpp40 ARMWord diff = reinterpret_cast<ARMWord*>(constPoolAddr) - ldr; in patchConstantPoolLoad() local
43 ASSERT(diff >= 1); in patchConstantPoolLoad()
44 if (diff >= 2 || index > 0) { in patchConstantPoolLoad()
45 diff = (diff + index - 2) * sizeof(ARMWord); in patchConstantPoolLoad()
46 ASSERT(diff <= 0xfff); in patchConstantPoolLoad()
47 *ldr = (*ldr & ~0xfff) | diff; in patchConstantPoolLoad()
361 … int diff = reinterpret_cast<ARMWord*>(data + *addr) - (ldrAddr + DefaultPrefetching); in executableCopy() local
363 if ((diff <= BOFFSET_MAX && diff >= BOFFSET_MIN)) { in executableCopy()
364 *ldrAddr = B | getConditionalField(*ldrAddr) | (diff & BRANCH_MASK); in executableCopy()
/external/dropbear/debian/
Dchangelog11 * debian/diff/dbclient.1.diff: new: document -R option to dbclient
51 * debian/diff/dbclient-usage-typo.diff, debian/diff/manpages.diff: remove;
82 * debian/diff/dbclient-usage-typo.diff: new; fix typo.
83 * debian/diff/manpages.diff: new; add references to dbclient man page.
106 * debian/diff/cvs-20040520.diff: remove; obsolete.
114 * debian/diff/cvs-20040520.diff: new; stable cvs snapshot.
115 * debian/rules: new target patch: apply diffs in debian/diff/, reverse

12345678910>>...16