Home
last modified time | relevance | path

Searched refs:percent (Results 1 – 25 of 271) sorted by relevance

1234567891011

/external/e2fsprogs/lib/e2p/
Dpercent.c20 unsigned int e2p_percent(int percent, unsigned int base) in e2p_percent() argument
24 if (!percent) in e2p_percent()
26 if (100 % percent == 0) in e2p_percent()
27 return base / (100 / percent); in e2p_percent()
29 return (base / 100) * percent; in e2p_percent()
30 return base * percent / 100; in e2p_percent()
40 int percent; in main() local
49 percent = strtoul(argv[1], &p, 0); in main()
61 printf("%d percent of %u is %u.\n", percent, base, in main()
62 e2p_percent(percent, base)); in main()
/external/replicaisland/src/com/replica/replicaisland/
DLerp.java27 final float percent = timeSinceStart / duration; in lerp() local
28 value = start + (range * percent); in lerp()
43 final float percent = timeSinceStart / (duration / 2.0f); in ease() local
44 if (percent < 1.0f) in ease()
46 value = start + ((range / 2.0f) * percent * percent * percent); in ease()
50 final float shiftedPercent = percent - 2.0f; in ease()
/external/skia/src/views/
DSkProgressView.cpp64 SkFixed percent; in onDraw() local
74 percent = (SkFixed)x; // now its 16.8 in onDraw()
75 percent = SkMax32(0, SkMin32(percent, fMax << 8)); // now its pinned in onDraw()
76 percent = SkFixedDiv(percent, fMax << 8); // now its 0.16 in onDraw()
82 percent = SkFixedDiv(value, fMax); in onDraw()
92 r.fRight = r.fLeft + SkScalarMul(r.width(), SkFixedToScalar(percent)); in onDraw()
/external/ltrace/
Dprintf.c39 int percent; member
104 self->percent = 0; in param_printf_init()
231 if (!self->percent) { in param_printf_next()
233 self->percent = 1; in param_printf_next()
302 self->percent = 0; in param_printf_next()
315 self->percent = 0; in param_printf_next()
323 self->percent = 0; in param_printf_next()
332 self->percent = 0; in param_printf_next()
341 self->percent = 0; in param_printf_next()
349 self->percent = 0; in param_printf_next()
[all …]
/external/linux-tools-perf/src/tools/perf/ui/gtk/
Dhists.c11 static int __percent_color_snprintf(char *buf, size_t size, double percent) in __percent_color_snprintf() argument
16 markup = perf_gtk__get_percent_color(percent); in __percent_color_snprintf()
20 ret += scnprintf(buf + ret, size - ret, " %6.2f%%", percent); in __percent_color_snprintf()
33 double percent = 0.0; in __hpp__color_fmt() local
38 percent = 100.0 * get_field(he) / hists->stats.total_period; in __hpp__color_fmt()
40 ret = __percent_color_snprintf(hpp->buf, hpp->size, percent); in __hpp__color_fmt()
66 percent = 100.0 * period / total; in __hpp__color_fmt()
69 percent); in __hpp__color_fmt()
146 double percent; in perf_gtk__add_callchain() local
152 percent = 100.0 * hits / total; in perf_gtk__add_callchain()
[all …]
Dbrowser.c37 const char *perf_gtk__get_percent_color(double percent) in perf_gtk__get_percent_color() argument
39 if (percent >= MIN_RED) in perf_gtk__get_percent_color()
41 if (percent >= MIN_GREEN) in perf_gtk__get_percent_color()
/external/linux-tools-perf/src/tools/perf/util/
Dcolor.c292 const char *get_percent_color(double percent) in get_percent_color() argument
301 if (percent >= MIN_RED) in get_percent_color()
304 if (percent > MIN_GREEN) in get_percent_color()
310 int percent_color_fprintf(FILE *fp, const char *fmt, double percent) in percent_color_fprintf() argument
315 color = get_percent_color(percent); in percent_color_fprintf()
316 r = color_fprintf(fp, color, fmt, percent); in percent_color_fprintf()
324 double percent; in percent_color_snprintf() local
328 percent = va_arg(args, double); in percent_color_snprintf()
330 color = get_percent_color(percent); in percent_color_snprintf()
331 return color_snprintf(bf, size, color, fmt, percent); in percent_color_snprintf()
Dannotate.c610 double percent = 0.0; in disasm__calc_percent() local
623 percent += src_line->p[evidx].percent; in disasm__calc_percent()
634 percent = 100.0 * hits / h->sum; in disasm__calc_percent()
637 return percent; in disasm__calc_percent()
649 double percent, max_percent = 0.0; in disasm_line__print() local
650 double *ppercents = &percent; in disasm_line__print()
668 percent = disasm__calc_percent(notes, in disasm_line__print()
674 ppercents[i] = percent; in disasm_line__print()
675 if (percent > max_percent) in disasm_line__print()
676 max_percent = percent; in disasm_line__print()
[all …]
/external/toybox/toys/posix/
Ddf.c39 long long size, used, avail, percent, block; local
64 if (!(used+avail)) percent = 0;
66 percent = (used*100)/(used+avail);
67 if (used*100 != percent*(used+avail)) percent++;
77 size, used, avail, (toys.optflags & FLAG_P) ? 7 : 3, percent, mt->dir);
/external/llvm/tools/llvm-diff/
DDiffConsumer.cpp168 size_t percent = format.find('%'); in logf() local
169 if (percent == StringRef::npos) { in logf()
173 assert(format[percent] == '%'); in logf()
175 if (percent > 0) out << format.substr(0, percent); in logf()
177 switch (format[percent+1]) { in logf()
184 format = format.substr(percent+2); in logf()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocaleMatcher.java636 private LanguageMatcherData addDistance(String desired, String supported, int percent) { in addDistance() argument
637 return addDistance(desired, supported, percent, false, null); in addDistance()
644 …public LanguageMatcherData addDistance(String desired, String supported, int percent, String comme… in addDistance() argument
645 return addDistance(desired, supported, percent, false, comment); in addDistance()
652 …public LanguageMatcherData addDistance(String desired, String supported, int percent, boolean onew… in addDistance() argument
653 return addDistance(desired, supported, percent, oneway, null); in addDistance()
656 …private LanguageMatcherData addDistance(String desired, String supported, int percent, boolean one… in addDistance() argument
660 " percent=\"" + percent + "\"" in addDistance()
674 double score = 1-percent/100.0; // convert from percentage in addDistance()
791 int percent; field in LocaleMatcher.DataHack
[all …]
/external/llvm/utils/lit/lit/
DProgressBar.py182 def update(self, percent, message): argument
187 next = int(percent*50)
246 def update(self, percent, message): argument
250 prefix = '%3d%% ' % (percent*100,)
254 if percent > .0001 and elapsed > 1:
255 total = elapsed / percent
262 n = int(barWidth*percent)
/external/llvm/test/Transforms/LoopUnroll/
Dfull-unroll-heuristics.ll5 ; 3) -unroll-percent-of-optimized-for-complete-unroll
14 ; specify the minimal percent of such instructions).
20 …nalyze=1000 -unroll-absolute-threshold=10 -unroll-threshold=10 -unroll-percent-of-optimized-for-…
21 …nalyze=1000 -unroll-absolute-threshold=100 -unroll-threshold=10 -unroll-percent-of-optimized-for-…
22 …nalyze=1000 -unroll-absolute-threshold=100 -unroll-threshold=10 -unroll-percent-of-optimized-for-…
23 …nalyze=1000 -unroll-absolute-threshold=100 -unroll-threshold=100 -unroll-percent-of-optimized-for-…
26 ; percent of instructions, we shouldn't unroll:
/external/pdfium/samples/
Dimage_diff.cc229 float percent = HistogramPercentageDifferent(actual_image, baseline_image); in CompareImages() local
230 const char* passed = percent > 0.0 ? "failed" : "passed"; in CompareImages()
231 printf("histogram diff: %01.2f%% %s\n", percent, passed); in CompareImages()
235 float percent = PercentageDifferent(actual_image, baseline_image); in CompareImages() local
236 const char* passed = percent > 0.0 ? "failed" : "passed"; in CompareImages()
237 printf("%s: %01.2f%% %s\n", diff_name, percent, passed); in CompareImages()
238 if (percent > 0.0) { in CompareImages()
/external/strace/
Dcount.c163 double percent; in call_summary_pers() local
207 percent = (100.0 * float_syscall_time); in call_summary_pers()
208 if (percent != 0.0) in call_summary_pers()
209 percent /= float_tv_cum; in call_summary_pers()
212 percent, float_syscall_time, in call_summary_pers()
/external/tinyalsa/
Dmixer.c260 static int percent_to_int(struct snd_ctl_elem_info *ei, int percent) in percent_to_int() argument
264 if (percent > 100) in percent_to_int()
265 percent = 100; in percent_to_int()
266 else if (percent < 0) in percent_to_int()
267 percent = 0; in percent_to_int()
271 return ei->value.integer.min + (range * percent) / 100; in percent_to_int()
292 int mixer_ctl_set_percent(struct mixer_ctl *ctl, unsigned int id, int percent) in mixer_ctl_set_percent() argument
297 return mixer_ctl_set_value(ctl, id, percent_to_int(ctl->info, percent)); in mixer_ctl_set_percent()
/external/icu/icu4c/source/test/perf/perldriver/
DOutput.pm49 my $percent = shift;
59 if($percent) {
66 if((($error*$mult < 10)&&!$percent) || (($error<10)&&$percent)) {
72 if($percent) {
/external/libxml2/result/valid/
Dt4.dtd.err2 <!ENTITY % percent "&#x25;">
5 <!ENTITY % percent "&#x25;">
Dt4a.dtd.err2 <!ENTITY % percent "&#x25;">
5 <!ENTITY % percent "&#x25;">
Dt4a.dtd.err.rdr2 <!ENTITY % percent "&#x25;">
5 <!ENTITY % percent "&#x25;">
Dt4.dtd.err.rdr2 <!ENTITY % percent "&#x25;">
5 <!ENTITY % percent "&#x25;">
/external/linux-tools-perf/src/tools/perf/ui/stdio/
Dhist.c52 double percent; in ipchain__fprintf_graph() local
54 percent = hits * 100.0 / total_samples; in ipchain__fprintf_graph()
55 ret += percent_color_fprintf(fp, "--%2.2f%%-- ", percent); in ipchain__fprintf_graph()
252 double percent; in callchain__fprintf_flat() local
255 percent = chain->hit * 100.0 / total_samples; in callchain__fprintf_flat()
257 ret = percent_color_fprintf(fp, " %6.2f%%\n", percent); in callchain__fprintf_flat()
492 float percent = h->stat.period * 100.0 / in hists__fprintf() local
498 if (percent < min_pcnt) in hists__fprintf()
/external/openssh/
Dprogressmeter.c126 int percent; in refresh_progress_meter() local
176 percent = ((float)cur_pos / end_pos) * 100; in refresh_progress_meter()
178 percent = 100; in refresh_progress_meter()
180 " %3d%% ", percent); in refresh_progress_meter()
/external/guava/guava-tests/benchmark/com/google/common/base/
DCharMatcherBenchmark.java49 @Param({"0", "10", "50", "100"}) int percent; field in CharMatcherBenchmark
80 this.string = checkString(length, percent, config.matchingChars, in setUp()
105 private static String checkString(int length, int percent, in checkString() argument
132 int threshold = ((percent * length) + 99) / 100; in checkString()
/external/doclava/src/com/google/doclava/
DTodoFile.java62 public static String percent(int a, int b) { in percent() method in TodoFile
154 data.setValue(classBase + ".percentGood", percent(errors, total)); in writeTodoFile()
179 data.setValue("packages." + i + ".percentGood", percent(ps.errors, ps.total)); in writeTodoFile()
189 data.setValue("all.percentGood", percent(allErrors, allTotal)); in writeTodoFile()

1234567891011