Home
last modified time | relevance | path

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

123

/freebsd-14-stable/usr.bin/number/
HDnumber.c124 char *p, *fraction; in convert() local
127 fraction = NULL; in convert()
140 if (fraction != NULL) in convert()
142 fraction = p + 1; in convert()
157 (fraction != NULL && ((flen = strlen(fraction)) > MAXNUM))) in convert()
167 if (fraction != NULL && flen != 0) in convert()
168 for (p = fraction; *p != '\0'; ++p) in convert()
174 if (unit(flen, fraction)) { in convert()
/freebsd-14-stable/contrib/ofed/librdmacm/examples/
HDcommon.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()
/freebsd-14-stable/sys/contrib/dev/athk/
HDdfs_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()
/freebsd-14-stable/contrib/tcpdump/
HDntp.h46 nd_uint32_t fraction; member
51 nd_uint16_t fraction; member
HDprint-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()
HDntp.c41 uf = GET_BE_U_4(lfp->fraction); in p_ntp_time()
HDprint-lspping.c499 uint32_t int_part, fraction; in lspping_print() local
595 fraction=GET_BE_U_4(lspping_com_header->ts_rcvd.fraction); in lspping_print()
597 if (! (int_part == 0 && fraction == 0)) in lspping_print()
/freebsd-14-stable/contrib/netbsd-tests/bin/sleep/
HDt_sleep.sh31 atf_test_case fraction
69 atf_add_test_case fraction
/freebsd-14-stable/sys/contrib/device-tree/Bindings/input/touchscreen/
HDstmpe.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>;
/freebsd-14-stable/usr.bin/gprof/
HDgprof.callg50 fraction which divides up the function's time to
55 the propagation fraction.
77 propagation fraction for this child.
81 propagation fraction.
/freebsd-14-stable/sys/dev/iicbus/sensor/
HDmax6690.c332 uint8_t fraction = 0; in max6690_sensor_read() local
353 err = max6690_read(sc->sc_dev, sc->sc_addr, reg_ext, &fraction); in max6690_sensor_read()
358 fraction &= MAX6690_TEMP_MASK; in max6690_sensor_read()
363 temp = (integer * 10) + (fraction >> 5) * 10 / 8; in max6690_sensor_read()
/freebsd-14-stable/contrib/less/
HDjump.c137 public void jump_percent(int percent, long fraction) in jump_percent() argument
155 pos = percent_pos(len, percent, fraction); in jump_percent()
HDcommand.c77 static long fraction; /* The fractional part of the number */ variable
666 number = cmd_int(&fraction); in mca_char()
1628 fraction = 0; in commands()
1630 if (number > 100 || (number == 100 && fraction != 0)) in commands()
1633 fraction = 0; in commands()
1636 jump_percent((int) number, fraction); in commands()
HDos.c430 public POSITION percent_pos(POSITION pos, int percent, long fraction) in percent_pos() argument
436 POSITION pctden = (percent * NUM_FRAC_DENOM) + fraction; in percent_pos()
HDoptfunc.c199 static void query_fraction(int value, long fraction, constant char *int_msg, constant char *frac_ms… in query_fraction() argument
203 if (fraction < 0) in query_fraction()
211 SNPRINTF1(buf, sizeof(buf), ".%06ld", fraction); in query_fraction()
/freebsd-14-stable/sys/geom/bde/
HDg_bde_work.c97 static void g_bde_purge_sector(struct g_bde_softc *sc, int fraction);
317 g_bde_purge_sector(struct g_bde_softc *sc, int fraction) in g_bde_purge_sector() argument
323 if (fraction > 0) in g_bde_purge_sector()
324 n = sc->ncache / fraction + 1; in g_bde_purge_sector()
/freebsd-14-stable/sys/contrib/device-tree/src/arm/
HDsocfpga_cyclone5_mcvevk.dts69 ts,fraction-z = <7>;
HDimx53-m53.dtsi67 st,fraction-z = <7>;
HDimx6ul-phytec-segin-peb-av-02.dtsi73 st,fraction-z = <7>;
HDspear320-hmi.dts261 ts,fraction-z = <7>;
HDr8a7745-iwg22d-sodimm.dts205 st,fraction-z = <7>;
/freebsd-14-stable/sys/contrib/ncsw/Peripherals/FM/Pcd/
HDfm_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()
/freebsd-14-stable/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/
HDCocoa.cpp865 uint64_t fraction : 52; // unsigned member
871 uint64_t fraction : 52; // unsigned member
897 decodedBits.fraction = encodedBits.fraction; in decodeTaggedTimeInterval()
/freebsd-14-stable/contrib/file/magic/Magdir/
HDsql244 # 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
/freebsd-14-stable/contrib/unbound/dnstap/
HDdnstap.proto263 // This is the seconds fraction, expressed as a count of nanoseconds.
280 // This is the seconds fraction, expressed as a count of nanoseconds.

123