Home
last modified time | relevance | path

Searched refs:fraction (Results 1 – 25 of 68) sorted by relevance

123

/src/usr.bin/number/
H A Dnumber.c112 char *p, *fraction; in convert() local
115 fraction = NULL; in convert()
128 if (fraction != NULL) in convert()
130 fraction = p + 1; in convert()
145 (fraction != NULL && ((flen = strlen(fraction)) > MAXNUM))) in convert()
155 if (fraction != NULL && flen != 0) in convert()
156 for (p = fraction; *p != '\0'; ++p) in convert()
162 if (unit(flen, fraction)) { in convert()
/src/contrib/ofed/librdmacm/examples/
H A Dcommon.c78 long long base, fraction = 0; in size_str() local
96 fraction = (size % base) * 10 / base; in size_str()
97 if (fraction) { in size_str()
98 snprintf(str, ssize, "%lld.%lld%c", size / base, fraction, mag); in size_str()
/src/contrib/arm-optimized-routines/math/test/rtest/
H A Dsemi.c619 int fraction = x[0] & 0x007fffff; in test_isnanf() local
620 if ((exponent == 0x7f800000) && (fraction != 0)) out[0] = 1; in test_isnanf()
673 int fraction = (x[0] & 0x000fffff) | x[1]; in test_fpclassify() local
675 if ((exponent == 0x00) && (fraction == 0)) out[0] = 0; in test_fpclassify()
676 else if ((exponent == 0x00) && (fraction != 0)) out[0] = 4; in test_fpclassify()
677 else if ((exponent == 0x7ff) && (fraction == 0)) out[0] = 3; in test_fpclassify()
678 else if ((exponent == 0x7ff) && (fraction != 0)) out[0] = 7; in test_fpclassify()
686 int fraction = x[0] & 0x007fffff; in test_fpclassifyf() local
688 if ((exponent == 0x000) && (fraction == 0)) out[0] = 0; in test_fpclassifyf()
689 else if ((exponent == 0x000) && (fraction != 0)) out[0] = 4; in test_fpclassifyf()
[all …]
/src/contrib/libsamplerate/
H A Dsrc_sinc.c374 { double fraction, left, right, icoeff ; in calc_output_single() local
396 { fraction = fp_to_double (filter_index) ; in calc_output_single()
399 icoeff = filter->coeffs [indx] + fraction * (filter->coeffs [indx + 1] - filter->coeffs [indx]) ; in calc_output_single()
416 { fraction = fp_to_double (filter_index) ; in calc_output_single()
419 icoeff = filter->coeffs [indx] + fraction * (filter->coeffs [indx + 1] - filter->coeffs [indx]) ; in calc_output_single()
527 { double fraction, left [2], right [2], icoeff ; in calc_output_stereo() local
549 { fraction = fp_to_double (filter_index) ; in calc_output_stereo()
552 icoeff = filter->coeffs [indx] + fraction * (filter->coeffs [indx + 1] - filter->coeffs [indx]) ; in calc_output_stereo()
570 { fraction = fp_to_double (filter_index) ; in calc_output_stereo()
573 icoeff = filter->coeffs [indx] + fraction * (filter->coeffs [indx + 1] - filter->coeffs [indx]) ; in calc_output_stereo()
[all …]
/src/sys/contrib/dev/athk/
H A Ddfs_pri_detector.c44 static u32 pde_get_multiple(u32 val, u32 fraction, u32 tolerance) in pde_get_multiple() argument
50 if (fraction == 0) in pde_get_multiple()
53 delta = (val < fraction) ? (fraction - val) : (val - fraction); in pde_get_multiple()
59 factor = val / fraction; in pde_get_multiple()
60 remainder = val % fraction; in pde_get_multiple()
63 if ((fraction - remainder) <= tolerance) in pde_get_multiple()
/src/contrib/tcpdump/
H A Dntp.h46 nd_uint32_t fraction; member
51 nd_uint16_t fraction; member
H A Dprint-ntp.c460 f = GET_BE_U_2(sfp->fraction); in p_sfix()
481 uf = GET_BE_U_4(lfp->fraction); in p_ntp_delta()
482 ouf = GET_BE_U_4(olfp->fraction); in p_ntp_delta()
H A Dprint-lspping.c499 uint32_t int_part, fraction; in lspping_print() local
594 fraction=GET_BE_U_4(lspping_com_header->ts_rcvd.fraction); in lspping_print()
596 if (! (int_part == 0 && fraction == 0)) in lspping_print()
H A Dntp.c45 uf = GET_BE_U_4(lfp->fraction); in p_ntp_time_fmt()
/src/contrib/netbsd-tests/bin/sleep/
H A Dt_sleep.sh31 atf_test_case fraction
69 atf_add_test_case fraction
/src/sys/contrib/device-tree/Bindings/input/touchscreen/
H A Dstmpe.txt31 - st,fraction-z : Length of the fractional part in z (recommended is 7)
32 (fraction-z ([0..7]) = Count of the fractional part)
97 st,fraction-z = <7>;
/src/usr.bin/gprof/
H A Dgprof.callg50 fraction which divides up the function's time to
55 the propagation fraction.
77 propagation fraction for this child.
81 propagation fraction.
/src/sys/dev/iicbus/sensor/
H A Dmax6690.c331 uint8_t fraction = 0; in max6690_sensor_read() local
352 err = max6690_read(sc->sc_dev, sc->sc_addr, reg_ext, &fraction); in max6690_sensor_read()
357 fraction &= MAX6690_TEMP_MASK; in max6690_sensor_read()
362 temp = (integer * 10) + (fraction >> 5) * 10 / 8; in max6690_sensor_read()
/src/contrib/less/
H A Djump.c137 public void jump_percent(int percent, long fraction) in jump_percent() argument
155 pos = percent_pos(len, percent, fraction); in jump_percent()
H A Dcommand.c83 static long fraction; /* The fractional part of the number */ variable
699 number = cmd_int(&fraction); in mca_char()
1749 fraction = 0; in commands()
1751 if (number > 100 || (number == 100 && fraction != 0)) in commands()
1754 fraction = 0; in commands()
1757 jump_percent((int) number, fraction); in commands()
H A Dos.c530 public POSITION percent_pos(POSITION pos, int percent, long fraction) in percent_pos() argument
536 POSITION pctden = (percent * NUM_FRAC_DENOM) + fraction; in percent_pos()
H A Doptfunc.c194 static void query_fraction(int value, long fraction, constant char *int_msg, constant char *frac_ms… in query_fraction() argument
198 if (fraction < 0) in query_fraction()
206 SNPRINTF1(buf, sizeof(buf), ".%06ld", fraction); in query_fraction()
/src/sys/contrib/device-tree/src/arm/intel/socfpga/
H A Dsocfpga_cyclone5_mcvevk.dts67 ts,fraction-z = <7>;
/src/sys/contrib/ncsw/Peripherals/FM/Pcd/
H A Dfm_plcr.c228 uint64_t integer, fraction; in CalcRates() local
244 …m->rateMode, p_NonPassthroughAlgParam->committedInfoRate, tsuInTenthNanos, 0, &integer, &fraction); in CalcRates()
246 …rateMode, p_NonPassthroughAlgParam->peakOrExcessInfoRate, tsuInTenthNanos, 0, &integer, &fraction); in CalcRates()
285 temp = (uint32_t)fraction; /* fraction will alyas be smaller than 2^16 */ in CalcRates()
309 …Mode, p_NonPassthroughAlgParam->committedInfoRate, tsuInTenthNanos, fppShift, &integer, &fraction); in CalcRates()
310 *cir = (uint32_t)(integer << 16 | (fraction & 0xFFFF)); in CalcRates()
311 …e, p_NonPassthroughAlgParam->peakOrExcessInfoRate, tsuInTenthNanos, fppShift, &integer, &fraction); in CalcRates()
312 *pir_eir = (uint32_t)(integer << 16 | (fraction & 0xFFFF)); in CalcRates()
/src/contrib/jemalloc/doc_internal/
H A DPROFILING_INTERNALS.md9 …e average cost of an allocation. To manage this, we'll only sample some fraction of allocations. T…
16 …h more frequent than large ones, but shorter lived and less common as a fraction of program memory…
106fraction of allocations. Our goal, then, is to pick the $p_Z$ to minimize variance given some maxi…
/src/sys/contrib/device-tree/src/arm/nxp/imx/
H A Dimx53-m53.dtsi59 st,fraction-z = <7>;
H A Dimx6ul-phytec-segin-peb-av-02.dtsi73 st,fraction-z = <7>;
/src/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/
H A DCocoa.cpp865 uint64_t fraction : 52; // unsigned member
871 uint64_t fraction : 52; // unsigned member
897 decodedBits.fraction = encodedBits.fraction; in decodeTaggedTimeInterval()
/src/sys/contrib/device-tree/src/arm/st/
H A Dspear320-hmi.dts261 ts,fraction-z = <7>;
/src/contrib/file/magic/Magdir/
H A Dsql244 # maximum embedded payload fraction. Must be 64; 1 for corruptDB.sqlite
246 # Minimum embedded payload fraction. Must be 32; 1 for corruptDB.sqlite
248 # Leaf payload fraction. Must be 32; 0 for corruptDB.sqlite

123