/third_party/e2fsprogs/lib/e2p/ |
D | percent.c | 21 unsigned int e2p_percent(int percent, unsigned int base) in e2p_percent() argument 25 if (!percent) in e2p_percent() 27 if (100 % percent == 0) in e2p_percent() 28 return base / (100 / percent); in e2p_percent() 30 return (base / 100) * percent; in e2p_percent() 31 return base * percent / 100; in e2p_percent() 41 int percent; in main() local 50 percent = strtoul(argv[1], &p, 0); in main() 62 printf("%d percent of %u is %u.\n", percent, base, in main() 63 e2p_percent(percent, base)); in main()
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/ |
D | SDL_power.c | 30 int *percent); 48 SDL_GetPowerInfo_Hardwired(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_Hardwired() argument 51 *percent = -1; in SDL_GetPowerInfo_Hardwired() 98 SDL_GetPowerInfo(int *seconds, int *percent) in SDL_GetPowerInfo() argument 110 if (percent == NULL) { in SDL_GetPowerInfo() 111 percent = &_percent; in SDL_GetPowerInfo() 115 if (implementations[i](&retval, seconds, percent)) { in SDL_GetPowerInfo() 122 *percent = -1; in SDL_GetPowerInfo()
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/psp/ |
D | SDL_syspower.c | 33 int *percent) in SDL_GetPowerInfo_PSP() argument 41 *percent = -1; in SDL_GetPowerInfo_PSP() 46 *percent = -1; in SDL_GetPowerInfo_PSP() 49 *percent = scePowerGetBatteryLifePercent(); in SDL_GetPowerInfo_PSP() 53 *percent = scePowerGetBatteryLifePercent(); in SDL_GetPowerInfo_PSP() 57 *percent = scePowerGetBatteryLifePercent(); in SDL_GetPowerInfo_PSP()
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/linux/ |
D | SDL_syspower.c | 123 SDL_bool * charging, int *seconds, int *percent) in check_proc_acpi_battery() argument 193 if ((pct < 0) && (*percent < 0)) { in check_proc_acpi_battery() 196 if (pct > *percent) { in check_proc_acpi_battery() 205 *percent = pct; in check_proc_acpi_battery() 236 int *seconds, int *percent) in SDL_GetPowerInfo_Linux_proc_acpi() argument 245 *percent = -1; in SDL_GetPowerInfo_Linux_proc_acpi() 255 seconds, percent); in SDL_GetPowerInfo_Linux_proc_acpi() 322 int *seconds, int *percent) in SDL_GetPowerInfo_Linux_proc_apm() argument 411 *percent = -1; in SDL_GetPowerInfo_Linux_proc_apm() 418 *percent = (pct > 100) ? 100 : pct; /* clamp between 0%, 100% */ in SDL_GetPowerInfo_Linux_proc_apm() [all …]
|
/third_party/abseil-cpp/absl/strings/internal/str_format/ |
D | parser.h | 132 const char* percent = static_cast<const char*>(memchr(p, '%', end - p)); in ParseFormatString() local 133 if (!percent) { in ParseFormatString() 138 if (ABSL_PREDICT_FALSE(!consumer.Append(string_view(p, percent - p)))) { in ParseFormatString() 141 if (ABSL_PREDICT_FALSE(percent + 1 >= end)) return false; in ParseFormatString() 143 auto tag = GetTagForChar(percent[1]); in ParseFormatString() 152 p = percent + 2; in ParseFormatString() 161 !consumer.ConvertOne(conv, string_view(percent + 1, 1)))) { in ParseFormatString() 164 } else if (percent[1] != '%') { in ParseFormatString() 166 p = ConsumeUnboundConversion(percent + 1, end, &conv, &next_arg); in ParseFormatString() 169 conv, string_view(percent + 1, p - (percent + 1))))) { in ParseFormatString() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/ |
D | parser.h | 154 const char* percent = static_cast<const char*>(memchr(p, '%', end - p)); in ParseFormatString() local 155 if (!percent) { in ParseFormatString() 160 if (ABSL_PREDICT_FALSE(!consumer.Append(string_view(p, percent - p)))) { in ParseFormatString() 163 if (ABSL_PREDICT_FALSE(percent + 1 >= end)) return false; in ParseFormatString() 165 auto tag = GetTagForChar(percent[1]); in ParseFormatString() 174 p = percent + 2; in ParseFormatString() 183 !consumer.ConvertOne(conv, string_view(percent + 1, 1)))) { in ParseFormatString() 186 } else if (percent[1] != '%') { in ParseFormatString() 188 p = ConsumeUnboundConversion(percent + 1, end, &conv, &next_arg); in ParseFormatString() 191 conv, string_view(percent + 1, p - (percent + 1))))) { in ParseFormatString() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/macosx/ |
D | SDL_syspower.c | 40 SDL_bool * charging, int *seconds, int *percent) in checkps() argument 122 if ((pct < 0) && (*percent < 0)) { in checkps() 125 if (pct > *percent) { in checkps() 134 *percent = pct; in checkps() 144 SDL_GetPowerInfo_MacOSX(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_MacOSX() argument 149 *percent = -1; in SDL_GetPowerInfo_MacOSX() 167 seconds, percent); in SDL_GetPowerInfo_MacOSX()
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/android/ |
D | SDL_syspower.c | 31 SDL_GetPowerInfo_Android(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_Android() argument 37 if (Android_JNI_GetPowerInfo(&plugged, &charged, &battery, seconds, percent) != -1) { in SDL_GetPowerInfo_Android() 46 *percent = -1; in SDL_GetPowerInfo_Android() 54 *percent = -1; in SDL_GetPowerInfo_Android()
|
/third_party/flutter/skia/third_party/externals/sdl/test/ |
D | testpower.c | 20 int seconds, percent; in report_power() local 21 const SDL_PowerState state = SDL_GetPowerInfo(&seconds, &percent); in report_power() 48 if (percent == -1) { in report_power() 51 SDL_Log("Percent left: %d%%\n", percent); in report_power()
|
/third_party/node/deps/npm/node_modules/gauge/ |
D | template-item.js | 11 function percent (num) { function 37 this.length = Math.round(this.overallOutputLength * percent(this.length)) 40 this.minLength = Math.round(this.overallOutputLength * percent(this.minLength)) 43 this.maxLength = Math.round(this.overallOutputLength * percent(this.maxLength))
|
/third_party/toybox/toys/posix/ |
D | df.c | 100 unsigned long long size, used, avail, percent, block; in show_mt() local 131 if (!(used+avail)) percent = 0; in show_mt() 133 percent = (used*100)/(used+avail); in show_mt() 134 if (used*100 != percent*(used+avail)) percent++; in show_mt() 158 w, size_str, w, used_str, w, avail_str, w-1, percent, mt->dir); in show_mt() 164 TT.column_widths[4], percent, in show_mt()
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/emscripten/ |
D | SDL_syspower.c | 31 SDL_GetPowerInfo_Emscripten(SDL_PowerState *state, int *seconds, int *percent) in SDL_GetPowerInfo_Emscripten() argument 44 *percent = -1; in SDL_GetPowerInfo_Emscripten() 54 *percent = batteryState.level * 100; in SDL_GetPowerInfo_Emscripten()
|
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfsundelete.c | 643 opts.percent = -1; in parse_options() 738 if (opts.percent == -1) { in parse_options() 740 opts.percent = strtol(optarg, &end, 0); in parse_options() 847 (opts.percent != -1) || in parse_options() 860 if ((opts.percent < -1) || (opts.percent > 100)) { in parse_options() 1446 int percent = 0; in calc_percentage() local 1481 percent = 100; in calc_percentage() 1482 data->percent = 100; in calc_percentage() 1538 data->percent = (clusters_free * 100) / in calc_percentage() 1541 percent = max(percent, data->percent); in calc_percentage() [all …]
|
/third_party/icu/icu4c/source/test/testdata/ |
D | numberpermutationtest.txt | 4 compact-short percent unit-width-narrow 18 compact-short percent unit-width-full-name 88 scientific/+ee/sign-always percent unit-width-narrow 102 scientific/+ee/sign-always percent unit-width-full-name 172 compact-short percent precision-integer 186 compact-short percent .000 200 compact-short percent .##/@@@+ 214 compact-short percent @@ 340 scientific/+ee/sign-always percent precision-integer 354 scientific/+ee/sign-always percent .000 [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/ |
D | numberpermutationtest.txt | 4 compact-short percent unit-width-narrow 18 compact-short percent unit-width-full-name 88 scientific/+ee/sign-always percent unit-width-narrow 102 scientific/+ee/sign-always percent unit-width-full-name 172 compact-short percent precision-integer 186 compact-short percent .000 200 compact-short percent .##/@@@+ 214 compact-short percent @@ 340 scientific/+ee/sign-always percent precision-integer 354 scientific/+ee/sign-always percent .000 [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/resources/ohos/global/icu/dev/data/ |
D | numberpermutationtest.txt | 4 compact-short percent unit-width-narrow 18 compact-short percent unit-width-full-name 88 scientific/+ee/sign-always percent unit-width-narrow 102 scientific/+ee/sign-always percent unit-width-full-name 172 compact-short percent precision-integer 186 compact-short percent .000 200 compact-short percent .##/@@@+ 214 compact-short percent @@ 340 scientific/+ee/sign-always percent precision-integer 354 scientific/+ee/sign-always percent .000 [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/windows/ |
D | SDL_syspower.c | 31 SDL_GetPowerInfo_Windows(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_Windows() argument 56 *percent = -1; in SDL_GetPowerInfo_Windows() 63 *percent = (pct > 100) ? 100 : pct; /* clamp between 0%, 100% */ in SDL_GetPowerInfo_Windows()
|
/third_party/gstreamer/gstplugins_good/gst/rtpmanager/ |
D | rtpjitterbuffer.c | 429 update_buffer_level (RTPJitterBuffer * jbuf, gint * percent) in update_buffer_level() argument 465 if (percent) in update_buffer_level() 466 *percent = perc; in update_buffer_level() 1003 gboolean * head, gint * percent) in rtp_jitter_buffer_insert() argument 1062 update_buffer_level (jbuf, percent); in rtp_jitter_buffer_insert() 1063 else if (percent) in rtp_jitter_buffer_insert() 1064 *percent = -1; in rtp_jitter_buffer_insert() 1079 if (percent) in rtp_jitter_buffer_insert() 1080 *percent = -1; in rtp_jitter_buffer_insert() 1211 gboolean * duplicate, gint * percent) in rtp_jitter_buffer_append_buffer() argument [all …]
|
/third_party/ffmpeg/libavfilter/ |
D | vf_vaguedenoiser.c | 39 float percent; member 64 const float percent); 76 …{ "percent", "set percent of full denoising", OFFSET(percent),AV_OPT_TYPE_FLOAT, {.dbl=85}, 0,100… 340 const float percent) in hard_thresholding() argument 342 const float frac = 1.f - percent * 0.01f; in hard_thresholding() 355 const float threshold, const float percent) in soft_thresholding() argument 357 const float frac = 1.f - percent * 0.01f; in soft_thresholding() 358 const float shift = threshold * 0.01f * percent; in soft_thresholding() 375 const float percent) in qian_thresholding() argument 377 const float percent01 = percent * 0.01f; in qian_thresholding() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/power/haiku/ |
D | SDL_syspower.c | 44 SDL_GetPowerInfo_Haiku(SDL_PowerState * state, int *seconds, int *percent) in SDL_GetPowerInfo_Haiku() argument 106 *percent = -1; in SDL_GetPowerInfo_Haiku() 113 *percent = (pct > 100) ? 100 : pct; /* clamp between 0%, 100% */ in SDL_GetPowerInfo_Haiku()
|
/third_party/python/Lib/ |
D | locale.py | 183 def _format(percent, value, grouping=False, monetary=False, *additional): argument 185 formatted = percent % ((value,) + additional) 187 formatted = percent % value 188 if percent[-1] in 'eEfFgGdiu': 250 def format(percent, value, grouping=False, monetary=False, *additional): argument 259 match = _percent_re.match(percent) 260 if not match or len(match.group())!= len(percent): 262 "format specifier, %s not valid") % repr(percent)) 263 return _format(percent, value, grouping, monetary, *additional)
|
/third_party/icu/icu4c/source/test/perf/perldriver/ |
D | Output.pm | 53 my $percent = shift; 63 if($percent) { 70 if((($error*$mult < 10)&&!$percent) || (($error<10)&&$percent)) { 76 if($percent) {
|
/third_party/icu/icu4j/perf-tests/perldriver/ |
D | Output.pm | 51 my $percent = shift; 61 if($percent) { 68 if((($error*$mult < 10)&&!$percent) || (($error<10)&&$percent)) { 74 if($percent) {
|
/third_party/libxml2/result/valid/ |
D | t4a.dtd.err | 2 <!ENTITY % percent "%"> 5 <!ENTITY % percent "%">
|
D | t4a.dtd.err.rdr | 2 <!ENTITY % percent "%"> 5 <!ENTITY % percent "%">
|