/netbsd-current/lib/libutil/ |
H A D | strpct.c | 53 strspct(char *buf, size_t bufsiz, intmax_t numerator, intmax_t denominator, argument 74 if (numerator < 0) { 75 numerator = -numerator; 80 (void)strpct(buf + sign, bufsiz - sign, (uintmax_t)numerator, 88 strpct(char *buf, size_t bufsiz, uintmax_t numerator, uintmax_t denominator, argument 104 if (numerator < (UINTMAX_MAX / factor)) 105 numerator *= factor; 114 result = numerator / denominator;
|
/netbsd-current/external/apache2/llvm/dist/clang/tools/scan-build-py/tests/functional/src/ |
H A D | emit-one.c | 3 int div(int numerator, int denominator) argument 5 return numerator / denominator;
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/display/dc/basics/ |
H A D | amdgpu_conversion.c | 46 int32_t numerator; local 56 numerator = (uint16_t)dc_fixpt_round( 61 numerator = dc_fixpt_floor( 70 if (numerator >= 0) 71 result = (uint16_t)numerator; 74 (1 << (integer_bits + fractional_bits + 1)) + numerator);
|
H A D | amdgpu_fixpt31_32.c | 74 struct fixed31_32 dc_fixpt_from_fraction(long long numerator, long long denominator) argument 78 bool arg1_negative = numerator < 0; 81 unsigned long long arg1_value = arg1_negative ? -numerator : numerator;
|
/netbsd-current/sys/arch/x86/x86/ |
H A D | identcpu_subr.c | 70 uint32_t denominator, numerator; local 77 numerator = descs[1]; 78 if ((denominator != 0) && (numerator != 0)) { 109 freq = khz * 1000 * numerator / denominator; 123 * denominator / numerator;
|
/netbsd-current/usr.bin/units/ |
H A D | units.c | 59 const char *numerator[MAXSUBUNITS]; member in struct:unittype 265 theunit->numerator[0] = theunit->denominator[0] = NULL; 292 for (ptr = theunit->numerator; *ptr; ptr++) { 293 if (ptr > theunit->numerator && **ptr && 478 if (addsubunit(flipthis ? theunit->numerator : theunit->denominator, item)) 507 for (count = 0, ptr = theunit->numerator; *ptr; ptr++, count++); 508 qsort(theunit->numerator, count, sizeof(char *), compare); 520 num = theunit->numerator; 635 product = theunit->numerator; 663 Reduces numerator an [all...] |
/netbsd-current/external/gpl2/lvm2/dist/lib/snapshot/ |
H A D | snapshot.c | 100 uint64_t numerator, denominator; local 103 &numerator, &denominator) == 2) { 104 *total_numerator += numerator; 106 if (!numerator) 108 else if (numerator == denominator)
|
/netbsd-current/external/gpl3/gcc.old/dist/libgcc/config/rl78/ |
H A D | divmodhi.S | 39 ;; 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 D | divmodsi.S | 41 ;; 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 D | divmodqi.S | 90 ;; copy numerator 234 ;; We have to restore the numerator [sp+4] 292 ;; Also restore numerator
|
/netbsd-current/external/gpl3/gcc/dist/libgcc/config/rl78/ |
H A D | divmodhi.S | 39 ;; 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 D | divmodsi.S | 41 ;; 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 D | divmodqi.S | 90 ;; copy numerator 234 ;; We have to restore the numerator [sp+4] 292 ;; Also restore numerator
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/display/dc/calcs/ |
H A D | amdgpu_bw_fixed.c | 62 struct bw_fixed bw_frc_to_fixed(int64_t numerator, int64_t denominator) argument 65 bool arg1_negative = numerator < 0; 76 arg1_value = abs_i64(numerator);
|
/netbsd-current/sys/arch/arm/include/ |
H A D | aeabi.h | 155 int __aeabi_idiv(int numerator, int denominator); 156 unsigned __aeabi_uidiv(unsigned numerator, unsigned denominator); 168 * return as remainder either 0 or the original numerator.
|
/netbsd-current/external/bsd/openldap/dist/libraries/liblunicode/ucdata/ |
H A D | ucdata.c | 1225 num->numerator = (int) *vp++; 1274 num.numerator = num.denominator = -111; 1445 printf("UCNUMBER: 0x30 = %d/%d\n", num.numerator, num.denominator); 1447 printf("UCNUMBER: 0x30 = %d\n", num.numerator); 1453 printf("UCNUMBER: 0xbc = %d/%d\n", num.numerator, num.denominator); 1455 printf("UCNUMBER: 0xbc = %d\n", num.numerator); 1462 printf("UCNUMBER: 0xff19 = %d/%d\n", num.numerator, num.denominator); 1464 printf("UCNUMBER: 0xff19 = %d\n", num.numerator); 1470 printf("UCNUMBER: 0x4e00 = %d/%d\n", num.numerator, num.denominator); 1472 printf("UCNUMBER: 0x4e00 = %d\n", num.numerator); [all...] |
/netbsd-current/external/gpl3/gcc.old/dist/gcc/ |
H A D | gcov-tool.c | 305 int numerator = 1; local 337 ret = sscanf (optarg, "%d/%d", &numerator, &denominator); 340 if (numerator < 0 || denominator <= 0) 344 numerator = 1; 377 ret = profile_rewrite (argv[optind], output_dir, 0, 0.0, numerator, denominator);
|
/netbsd-current/external/gpl3/gcc/dist/gcc/ |
H A D | gcov-tool.cc | 305 int numerator = 1; local 337 ret = sscanf (optarg, "%d/%d", &numerator, &denominator); 340 if (numerator < 0 || denominator <= 0) 344 numerator = 1; 377 ret = profile_rewrite (argv[optind], output_dir, 0, 0.0, numerator, denominator);
|
/netbsd-current/external/gpl2/lvm2/dist/lib/mirror/ |
H A D | mirrored.c | 192 uint64_t numerator, denominator; local 221 if (sscanf(pos, "%" PRIu64 "/%" PRIu64 "%n", &numerator, &denominator, 228 *total_numerator += numerator; 232 seg->extents_copied = seg->area_len * numerator / denominator; 234 if (numerator == denominator) 236 else if (numerator == 0)
|
/netbsd-current/sys/sys/ |
H A D | midiio.h | 466 uint8_t numerator; member in struct:__anon13187::__anon13196 474 uint8_t numerator; member in struct:__anon13187::__anon13196 680 * numerator and lg2denom describe the time signature as it would 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-current/sys/arch/arm/imx/ |
H A D | imxuartvar.h | 140 uint16_t numerator; /* UBIR */ member in struct:imxuart_softc::imxuart_baudrate_ratio
|
/netbsd-current/external/apache2/llvm/dist/llvm/utils/benchmark/test/ |
H A D | benchmark_test.cc | 36 double numerator = static_cast<double>(((i % 2) * 2) - 1); local 38 pi += numerator / denominator;
|
/netbsd-current/external/apache2/llvm/dist/libcxx/utils/google-benchmark/test/ |
H A D | benchmark_test.cc | 36 double numerator = static_cast<double>(((i % 2) * 2) - 1); local 38 pi += numerator / denominator;
|
/netbsd-current/external/gpl3/gdb.old/dist/sim/ppc/ |
H A D | dp-bit.c | 837 fractype numerator; local 877 ( numerator / denominator) * 2^(numerator exponent - denominator exponent) 881 numerator = a->fraction.ll; 884 if (numerator < denominator) 887 numerator *= 2; 895 if (numerator >= denominator) 898 numerator -= denominator; 901 numerator *= 2; 911 else if (numerator) [all...] |
/netbsd-current/external/gpl3/gdb/dist/sim/ppc/ |
H A D | dp-bit.c | 837 fractype numerator; local 877 ( numerator / denominator) * 2^(numerator exponent - denominator exponent) 881 numerator = a->fraction.ll; 884 if (numerator < denominator) 887 numerator *= 2; 895 if (numerator >= denominator) 898 numerator -= denominator; 901 numerator *= 2; 911 else if (numerator) [all...] |