Home
last modified time | relevance | path

Searched refs:numerator (Results 1 – 25 of 86) sorted by relevance

1234

/netbsd-src/lib/libutil/
H A Dstrpct.c53 strspct(char *buf, size_t bufsiz, intmax_t numerator, intmax_t denominator, in strspct() argument
74 if (numerator < 0) { in strspct()
75 numerator = -numerator; in strspct()
80 (void)strpct(buf + sign, bufsiz - sign, (uintmax_t)numerator, in strspct()
88 strpct(char *buf, size_t bufsiz, uintmax_t numerator, uintmax_t denominator, in strpct() argument
104 if (numerator < (UINTMAX_MAX / factor)) in strpct()
105 numerator *= factor; in strpct()
114 result = numerator / denominator; in strpct()
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/dc/basics/
H A Damdgpu_conversion.c46 int32_t numerator; in fixed_point_to_int_frac() local
56 numerator = (uint16_t)dc_fixpt_round( in fixed_point_to_int_frac()
61 numerator = dc_fixpt_floor( in fixed_point_to_int_frac()
70 if (numerator >= 0) in fixed_point_to_int_frac()
71 result = (uint16_t)numerator; in fixed_point_to_int_frac()
74 (1 << (integer_bits + fractional_bits + 1)) + numerator); in fixed_point_to_int_frac()
H A Damdgpu_fixpt31_32.c74 struct fixed31_32 dc_fixpt_from_fraction(long long numerator, long long denominator) in dc_fixpt_from_fraction() argument
78 bool arg1_negative = numerator < 0; in dc_fixpt_from_fraction()
81 unsigned long long arg1_value = arg1_negative ? -numerator : numerator; in dc_fixpt_from_fraction()
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/rl78/
H A Ddivmodhi.S39 ;; Test for a negative numerator.
60 ;; Test for a negative numerator.
66 ;; Otherwise we negate the numerator and then go with an unsigned division.
73 ;; Negate the numerator (which is in AX)
105 ;; Test for a negative numerator.
127 ;; Test for a negative numerator.
133 ;; Otherwise we negate the numerator and then go with an unsigned modulo operation.
140 ;; Negate the numerator (which is in AX)
203 ;; Load and test for a negative numerator.
225 ;; Load and test for a negative numerator.
[all …]
H A Ddivmodsi.S41 ;; Load and test for a negative numerator.
71 ;; Load and test for a negative numerator.
79 ;; Otherwise we negate the numerator and then go with a straightforward unsigned division.
110 ;; Negate the numerator (which is in BCAX)
183 ;; Load and test for a negative numerator.
214 ;; Load and test for a negative numerator.
222 ;; Otherwise we negate the numerator and then go with a modulo followed by negation.
240 ;; Negate the numerator (which is in BCAX)
346 ;; Load and test for a negative numerator.
372 ;; Load and test for a negative numerator.
[all …]
H A Ddivmodqi.S90 ;; copy numerator
234 ;; We have to restore the numerator [sp+4]
292 ;; Also restore numerator
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/rl78/
H A Ddivmodhi.S39 ;; Test for a negative numerator.
60 ;; Test for a negative numerator.
66 ;; Otherwise we negate the numerator and then go with an unsigned division.
73 ;; Negate the numerator (which is in AX)
105 ;; Test for a negative numerator.
127 ;; Test for a negative numerator.
133 ;; Otherwise we negate the numerator and then go with an unsigned modulo operation.
140 ;; Negate the numerator (which is in AX)
203 ;; Load and test for a negative numerator.
225 ;; Load and test for a negative numerator.
[all …]
H A Ddivmodsi.S41 ;; Load and test for a negative numerator.
71 ;; Load and test for a negative numerator.
79 ;; Otherwise we negate the numerator and then go with a straightforward unsigned division.
110 ;; Negate the numerator (which is in BCAX)
183 ;; Load and test for a negative numerator.
214 ;; Load and test for a negative numerator.
222 ;; Otherwise we negate the numerator and then go with a modulo followed by negation.
240 ;; Negate the numerator (which is in BCAX)
346 ;; Load and test for a negative numerator.
372 ;; Load and test for a negative numerator.
[all …]
H A Ddivmodqi.S90 ;; copy numerator
234 ;; We have to restore the numerator [sp+4]
292 ;; Also restore numerator
/netbsd-src/sys/arch/x86/x86/
H A Didentcpu_subr.c70 uint32_t denominator, numerator; in cpu_tsc_freq_cpuid() local
77 numerator = descs[1]; in cpu_tsc_freq_cpuid()
78 if ((denominator != 0) && (numerator != 0)) { in cpu_tsc_freq_cpuid()
109 freq = khz * 1000 * numerator / denominator; in cpu_tsc_freq_cpuid()
123 * denominator / numerator; in cpu_tsc_freq_cpuid()
/netbsd-src/usr.bin/units/
H A Dunits.c59 const char *numerator[MAXSUBUNITS]; member
265 theunit->numerator[0] = theunit->denominator[0] = NULL; in initializeunit()
292 for (ptr = theunit->numerator; *ptr; ptr++) { in showunit()
293 if (ptr > theunit->numerator && **ptr && in showunit()
478 if (addsubunit(flipthis ? theunit->numerator : theunit->denominator, item)) in addunit()
507 for (count = 0, ptr = theunit->numerator; *ptr; ptr++, count++); in sortunit()
508 qsort(theunit->numerator, count, sizeof(char *), compare); in sortunit()
520 num = theunit->numerator; in cancelunit()
635 product = theunit->numerator; in reduceproduct()
708 compareproducts(first->numerator, second->numerator) || in compareunits()
[all …]
/netbsd-src/external/bsd/openldap/dist/libraries/liblunicode/ucdata/
H A Ducdata.c1225 num->numerator = (int) *vp++; in ucnumber_lookup()
1274 num.numerator = num.denominator = -111; in ucgetnumber()
1445 printf("UCNUMBER: 0x30 = %d/%d\n", num.numerator, num.denominator); in main()
1447 printf("UCNUMBER: 0x30 = %d\n", num.numerator); in main()
1453 printf("UCNUMBER: 0xbc = %d/%d\n", num.numerator, num.denominator); in main()
1455 printf("UCNUMBER: 0xbc = %d\n", num.numerator); in main()
1462 printf("UCNUMBER: 0xff19 = %d/%d\n", num.numerator, num.denominator); in main()
1464 printf("UCNUMBER: 0xff19 = %d\n", num.numerator); in main()
1470 printf("UCNUMBER: 0x4e00 = %d/%d\n", num.numerator, num.denominator); in main()
1472 printf("UCNUMBER: 0x4e00 = %d\n", num.numerator); in main()
[all …]
/netbsd-src/external/gpl2/lvm2/dist/lib/snapshot/
H A Dsnapshot.c100 uint64_t numerator, denominator; in _snap_target_percent() local
103 &numerator, &denominator) == 2) { in _snap_target_percent()
104 *total_numerator += numerator; in _snap_target_percent()
106 if (!numerator) in _snap_target_percent()
108 else if (numerator == denominator) in _snap_target_percent()
/netbsd-src/external/apache2/llvm/dist/clang/tools/scan-build-py/tests/functional/src/
H A Demit-one.c3 int div(int numerator, int denominator) in div() argument
5 return numerator / denominator; in div()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dgcov-tool.c305 int numerator = 1; in do_rewrite() local
337 ret = sscanf (optarg, "%d/%d", &numerator, &denominator); in do_rewrite()
340 if (numerator < 0 || denominator <= 0) in do_rewrite()
344 numerator = 1; in do_rewrite()
377 ret = profile_rewrite (argv[optind], output_dir, 0, 0.0, numerator, denominator); in do_rewrite()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dgcov-tool.cc305 int numerator = 1; in do_rewrite() local
337 ret = sscanf (optarg, "%d/%d", &numerator, &denominator); in do_rewrite()
340 if (numerator < 0 || denominator <= 0) in do_rewrite()
344 numerator = 1; in do_rewrite()
377 ret = profile_rewrite (argv[optind], output_dir, 0, 0.0, numerator, denominator); in do_rewrite()
/netbsd-src/sys/sys/
H A Dmidiio.h466 uint8_t numerator; member
474 uint8_t numerator; member
692 e = SEQ_MK_TIMING(TIMESIG, .numerator=4, .lg2denom=2,
699 e = SEQ_MK_TIMING(TIMESIG, .numerator=6, .lg2denom=3,
705 e = SEQ_MK_TIMING(TIMESIG, .numerator=6, .lg2denom=3,
712 e = SEQ_MK_TIMING(TIMESIG, .numerator=6, .lg2denom=3,
/netbsd-src/external/gpl2/lvm2/dist/lib/mirror/
H A Dmirrored.c192 uint64_t numerator, denominator; in _mirrored_target_percent() local
221 if (sscanf(pos, "%" PRIu64 "/%" PRIu64 "%n", &numerator, &denominator, in _mirrored_target_percent()
228 *total_numerator += numerator; in _mirrored_target_percent()
232 seg->extents_copied = seg->area_len * numerator / denominator; in _mirrored_target_percent()
234 if (numerator == denominator) in _mirrored_target_percent()
236 else if (numerator == 0) in _mirrored_target_percent()
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/dc/calcs/
H A Damdgpu_bw_fixed.c62 struct bw_fixed bw_frc_to_fixed(int64_t numerator, int64_t denominator) in bw_frc_to_fixed() argument
65 bool arg1_negative = numerator < 0; in bw_frc_to_fixed()
76 arg1_value = abs_i64(numerator); in bw_frc_to_fixed()
/netbsd-src/sys/arch/arm/include/
H A Daeabi.h155 int __aeabi_idiv(int numerator, int denominator);
156 unsigned __aeabi_uidiv(unsigned numerator, unsigned denominator);
/netbsd-src/external/gpl3/gcc.old/dist/libgcc/
H A Dfp-bit.c941 fractype numerator;
983 numerator = a->fraction.ll;
986 if (numerator < denominator)
989 numerator *= 2;
997 if (numerator >= denominator)
1000 numerator -= denominator;
1003 numerator *= 2;
1015 else if (numerator)
/netbsd-src/external/gpl3/gcc/dist/libgcc/
H A Dfp-bit.c941 fractype numerator;
983 numerator = a->fraction.ll;
986 if (numerator < denominator)
989 numerator *= 2;
997 if (numerator >= denominator)
1000 numerator -= denominator;
1003 numerator *= 2;
1015 else if (numerator)
/netbsd-src/external/apache2/llvm/dist/libcxx/utils/google-benchmark/test/
H A Dbenchmark_test.cc36 double numerator = static_cast<double>(((i % 2) * 2) - 1); in CalculatePi() local
38 pi += numerator / denominator; in CalculatePi()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/benchmark/test/
H A Dbenchmark_test.cc36 double numerator = static_cast<double>(((i % 2) * 2) - 1); in CalculatePi() local
38 pi += numerator / denominator; in CalculatePi()
/netbsd-src/external/gpl3/gcc/dist/libgcc/config/h8300/
H A Dlib1funcs.S326 mov.b A0H,A0H ; is the numerator -ve
358 mov.b A0H,A0H ; is the numerator -ve
389 mov.l A0P,A0P ; is the numerator -ve
408 mov.l A0P,A0P ; is the numerator -ve
425 ; numerator in A0/A1
516 ; takes A0/A1 numerator (A0P for H8/300H)

1234