/external/icu4c/common/ |
D | ucnvbocu.c | 271 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/icu4c/i18n/ |
D | bocsu.c | 29 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 …]
|
D | japancal.cpp | 411 int32_t diff = year - kEraInfo[i].year; in handleComputeFields() local 415 …diff,low, high, i, kEraInfo[i].month-1, kEraInfo[i].day, kEraInfo[i].year, internalGet(UCAL_MONTH… in handleComputeFields() 421 if (diff == 0) { in handleComputeFields() 422 diff = internalGet(UCAL_MONTH) - (kEraInfo[i].month - 1); in handleComputeFields() 424 …fprintf(stderr, "diff now %d (M) = %d - %d - 1\n", diff, internalGet(UCAL_MONTH), kEraInfo[i].mon… in handleComputeFields() 426 if (diff == 0) { in handleComputeFields() 427 diff = internalGet(UCAL_DATE) - kEraInfo[i].day; in handleComputeFields() 429 fprintf(stderr, "diff now %d (D)\n", diff); in handleComputeFields() 433 if (diff >= 0) { in handleComputeFields() 439 fprintf(stderr, ". low=%d, high=%d, i=%d, diff=%d.. %d\n", low, high, i, diff, year); in handleComputeFields()
|
/external/webkit/WebKitTools/Scripts/modules/ |
D | diff_parser_unittest.py | 93 diff = parser.files['WebCore/rendering/style/StyleFlexibleBoxData.h'] 94 self.assertEquals(7, len(diff.lines)) 96 self.assertEquals((47, 47), diff.lines[0][0:2]) 97 self.assertEquals('', diff.lines[0][2]) 98 self.assertEquals((48, 48), diff.lines[1][0:2]) 99 self.assertEquals(' unsigned align : 3; // EBoxAlignment', diff.lines[1][2]) 101 self.assertEquals((50, 0), diff.lines[3][0:2]) 102 self.assertEquals(' unsigned orient: 1; // EBoxOrient', diff.lines[3][2]) 106 diff = parser.files['WebCore/rendering/style/StyleRareInheritedData.cpp'] 108 self.assertEquals(7 + 7 + 9, len(diff.lines)) [all …]
|
/external/opencore/codecs_v2/audio/gsm_amr/amr_nb/common/src/ |
D | sub.cpp | 193 Word32 diff; in sub() local 195 diff = (Word32) var1 - var2; in sub() 202 if ((UWord32)(diff - 0xFFFF8000L) > 0x000FFFF) in sub() 204 if (diff > (Word32) 0x0007FFFL) in sub() 206 diff = MAX_16; in sub() 210 diff = MIN_16; in sub() 217 return ((Word16) diff); in sub()
|
/external/icu4c/test/cintltst/ |
D | bocu1tst.c | 225 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 …]
|
D | udatatst.c | 1512 uint8_t diff[8]; in TestSwapCase() local 1531 length2=i+sizeof(diff); in TestSwapCase() 1537 uprv_memset(diff, 0, sizeof(diff)); in TestSwapCase() 1539 diff[j-i]=original[j]; in TestSwapCase() 1542 diff[0], diff[1], diff[2], diff[3], diff[4], diff[5], diff[6], diff[7]); in TestSwapCase() 1545 uprv_memset(diff, 0, sizeof(diff)); in TestSwapCase() 1547 diff[j-i]=buffer2[j]; in TestSwapCase() 1550 diff[0], diff[1], diff[2], diff[3], diff[4], diff[5], diff[6], diff[7]); in TestSwapCase()
|
/external/srec/srec/crec/ |
D | astar_pphash.c | 48 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/ |
D | SVGAnimateTransformElement.cpp | 192 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()
|
D | SVGAnimateMotionElement.cpp | 206 FloatSize diff = m_toPoint - m_fromPoint; in calculateAnimatedValue() local 207 …transform->translate(diff.width() * percentage + m_fromPoint.x(), diff.height() * percentage + m_f… in calculateAnimatedValue() 239 FloatSize diff = to - from; in calculateDistance() local 240 return sqrtf(diff.width() * diff.width() + diff.height() * diff.height()); in calculateDistance()
|
/external/skia/include/core/ |
D | SkMath.h | 96 int diff = max - value; in SkClampMax() local 98 diff &= diff >> 31; in SkClampMax() 101 return (value + diff) & ~(value >> 31); in SkClampMax() 117 int diff = max - value; in SkClampUMax() 119 diff &= diff >> 31; in SkClampUMax() 121 return value + diff; in SkClampUMax()
|
/external/tesseract/cutil/ |
D | bitvec.cpp | 84 register uinT32 diff; /*bit difference */ in hamming_distance() local 89 diff = *array1++ ^ *array2++;/*different bits */ in hamming_distance() 90 while (diff) { in hamming_distance() 91 diff &= diff - 1; /*lose a bit */ in hamming_distance()
|
/external/qemu/distrib/libpng-1.2.19/ |
D | pnggccrd.c | 1010 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/opencore/codecs_v2/audio/gsm_amr/amr_nb/dec/src/ |
D | c_g_aver.cpp | 479 Word16 diff; in Cb_gain_average() local 510 diff = 0; in Cb_gain_average() 536 diff = add(diff, *(tmp + i), pOverflow); /* Q13 */ in Cb_gain_average() 541 if (diff > 5325) /* 0.65 in Q11 */ in Cb_gain_average() 573 tmp_diff = sub(diff, 4506, pOverflow); /* 0.55 in Q13 */ in Cb_gain_average() 578 tmp_diff = sub(diff, 3277, pOverflow); /* 0.4 in Q13 */ in Cb_gain_average() 602 if ((st->hangCount < 40) || (diff > 5325)) /* 0.65 in Q13 */ in Cb_gain_average()
|
/external/bzip2/ |
D | bzdiff.1 | 21 .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/ping/ |
D | ping_common.h | 161 __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/opencore/baselibs/media_data_structures/src/ |
D | media_clock_converter.cpp | 151 uint32 diff = value - current_ts; in get_timediff_and_update_clock() local 155 uint64 new_value = (uint64)diff * output_timescale + uint64(timescale - 1); in get_timediff_and_update_clock() 158 diff = ((uint32)(new_value & 0xFFFFFFFF)); in get_timediff_and_update_clock() 162 return diff; in get_timediff_and_update_clock() 172 uint32 diff = new_ts - current_ts; in update_clock() local 175 if (diff < WRAP_THRESHOLD) in update_clock() 188 if (diff < MISORDER_THRESHOLD) in update_clock()
|
/external/webkit/JavaScriptCore/assembler/ |
D | ARMAssembler.cpp | 57 int diff = reinterpret_cast<ARMWord*>(to) - reinterpret_cast<ARMWord*>(insn + 2); in linkBranch() local 59 if ((diff <= BOFFSET_MAX && diff >= BOFFSET_MIN)) { in linkBranch() 60 *insn = B | getConditionalField(*insn) | (diff & BRANCH_MASK); in linkBranch() 73 ARMWord diff = reinterpret_cast<ARMWord*>(constPoolAddr) - ldr; in patchConstantPoolLoad() local 76 ASSERT(diff >= 1); in patchConstantPoolLoad() 77 if (diff >= 2 || index > 0) { in patchConstantPoolLoad() 78 diff = (diff + index - 2) * sizeof(ARMWord); in patchConstantPoolLoad() 79 ASSERT(diff <= 0xfff); in patchConstantPoolLoad() 80 *ldr = (*ldr & ~0xfff) | diff; in patchConstantPoolLoad()
|
/external/dropbear/debian/ |
D | changelog | 11 * 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
|
/external/tesseract/liblept/ |
D | arithlow.c | 213 l_int32 i, j, val, diff; in subtractGrayLow() local 221 diff = GET_DATA_BYTE(lined, j) - GET_DATA_BYTE(lines, j); in subtractGrayLow() 222 val = L_MAX(diff, 0); in subtractGrayLow() 228 diff = GET_DATA_TWO_BYTES(lined, j) in subtractGrayLow() 230 val = L_MAX(diff, 0); in subtractGrayLow() 531 l_int32 i, j, val1, val2, diff; in absDifferenceLow() local 547 diff = L_ABS(val1 - val2); in absDifferenceLow() 548 SET_DATA_BYTE(lined, j, diff); in absDifferenceLow() 560 diff = L_ABS(val1 - val2); in absDifferenceLow() 561 SET_DATA_TWO_BYTES(lined, j, diff); in absDifferenceLow() [all …]
|
/external/skia/src/views/ |
D | SkProgressBarView.cpp | 16 void SkProgressBarView::changeProgress(int diff) in changeProgress() argument 18 int newProg = fProgress + diff; in changeProgress() 28 SkAnimator::DifferenceType diff = fAnim.draw(canvas, &paint, SkTime::GetMSecs()); in onDraw() local 30 if (diff == SkAnimator::kDifferent) in onDraw() 32 else if (diff == SkAnimator::kPartiallyDifferent) in onDraw()
|
/external/tesseract/textord/ |
D | oldbasel.cpp | 734 float diff; /*difference from line */ in partition_line() local 746 diff = ydiffs[blobindex]; /*diff from line */ in partition_line() 753 choose_partition(diff, partdiffs, bestpart, jumplimit, numparts); in partition_line() 763 diff = ydiffs[blobindex]; /*diff from line */ in partition_line() 770 choose_partition(diff, partdiffs, bestpart, jumplimit, numparts); in partition_line() 811 float diff; /*difference from line */ in merge_oldbl_parts() local 853 diff = m * coord.x () + c - coord.y (); in merge_oldbl_parts() 857 diff, coord.x (), coord.y ()); in merge_oldbl_parts() 858 if (diff < jumplimit && -diff < jumplimit) in merge_oldbl_parts() 870 diff = m * coord.x () + c - coord.y (); in merge_oldbl_parts() [all …]
|
/external/expat/amiga/ |
D | stdlib.c | 79 int diff; in memcmp() local 82 diff = *((uint8 *)a++) - *((uint8 *)b++); in memcmp() 83 if ( diff ) { in memcmp() 84 return diff; in memcmp()
|
/external/e2fsprogs/misc/ |
D | findsuper.c | 195 time_t now, diff; in main() local 198 diff = now - last; in main() 200 if (diff > 0) { in main() 204 (((sk - skl)) / diff) >> 10, s); in main() 207 if (diff < 5) in main() 209 else if (diff > 20) in main()
|
/external/webkit/WebCore/dom/ |
D | ChildNodeList.cpp | 59 int diff = index - m_caches->lastItemOffset; in item() local 60 unsigned dist = abs(diff); in item() 71 int diff = index - pos; in item() local 72 unsigned dist = abs(diff); in item()
|