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

/freebsd-11-stable/contrib/gcc/config/
H A Dfp-bit.c209 fractype fraction = src->fraction.ll; /* wasn't unsigned before? */
219 fraction = ((fractype) 1 << FRACBITS) - 1;
227 fraction |= QUIET_NAN - 1;
229 fraction |= QUIET_NAN;
236 fraction = 0;
241 fraction = 0;
243 else if (fraction == 0)
256 fraction = 0;
260 shift the fraction t
[all...]
H A Dfp-bit.h372 } fraction; member in struct:__anon1232
391 fractype fraction:FRACBITS __attribute__ ((packed)); member in struct:__anon1234::__anon1235
403 fractype fraction:FRACBITS __attribute__ ((packed)); member in struct:__anon1234::__anon1236
409 fractype fraction:FRACBITS __attribute__ ((packed)); member in struct:__anon1234::__anon1237
/freebsd-11-stable/usr.bin/number/
H A Dnumber.c126 char *p, *fraction; local
129 fraction = NULL;
142 if (fraction != NULL)
144 fraction = p + 1;
159 (fraction != NULL && ((flen = strlen(fraction)) > MAXNUM)))
169 if (fraction != NULL && flen != 0)
170 for (p = fraction; *p != '\0'; ++p)
176 if (unit(flen, fraction)) {
/freebsd-11-stable/contrib/netbsd-tests/bin/sleep/
H A Dt_sleep.sh31 atf_test_case fraction
69 atf_add_test_case fraction
/freebsd-11-stable/contrib/ofed/librdmacm/examples/
H A Dcommon.c78 long long base, fraction = 0; local
96 fraction = (size % base) * 10 / base;
97 if (fraction) {
98 snprintf(str, ssize, "%lld.%lld%c", size / base, fraction, mag);
/freebsd-11-stable/contrib/gdb/gdb/
H A Di387-tdep.c74 unsigned long fraction[2]; local
79 fraction[0] = ((raw[3] << 24) | (raw[2] << 16) | (raw[1] << 8) | raw[0]);
80 fraction[1] = (((raw[7] & 0x7f) << 24) | (raw[6] << 16)
85 if (fraction[0] == 0x00000000 && fraction[1] == 0x00000000)
88 else if (sign && fraction[0] == 0x00000000 && fraction[1] == 0x40000000)
91 else if (fraction[1] & 0x40000000)
109 else if (fraction[0] || fraction[
707 unsigned long fraction[2]; local
[all...]
/freebsd-11-stable/usr.bin/setchannel/
H A Dsetchannel.c96 unsigned int fraction; local
188 fraction = strtol(ptr, &endptr, 10);
195 fraction /= 10;
197 fraction *= 10;
199 freq += fraction;
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-ntp.c70 uint32_t fraction; member in struct:l_fixedpt
75 uint16_t fraction; member in struct:s_fixedpt
333 f = EXTRACT_16BITS(&sfp->fraction);
335 f = (int)(ff * 1000000.0); /* Treat fraction as parts per million */
351 uf = EXTRACT_32BITS(&lfp->fraction);
356 f = (uint32_t)(ff * 1000000000.0); /* treat fraction as parts per billion */
390 uf = EXTRACT_32BITS(&lfp->fraction);
391 ouf = EXTRACT_32BITS(&olfp->fraction);
424 f = (uint32_t)(ff * 1000000000.0); /* treat fraction as parts per billion */
/freebsd-11-stable/lib/libc/mips/gen/
H A Dldexp.S82 sll t2, v1, 32 - 20 # get x fraction
130 subu t9, t9, v0 # shift fraction left >= 32 bits
135 subu v0, v0, t9 # shift fraction left < 32 bits
156 sll t2, v1, 31 - 20 # clear exponent, extract fraction
159 srl t2, t2, 31 - 20 # shift fraction back to normal position
182 mtc1 zero, $f1 # exponent and upper fraction
191 mtc1 ta0, $f1 # exponent and upper fraction
/freebsd-11-stable/contrib/gdb/gdb/gdbserver/
H A Di387-fp.c201 unsigned long fraction[2]; local
206 fraction[0] = ((raw[3] << 24) | (raw[2] << 16) | (raw[1] << 8) | raw[0]);
207 fraction[1] = (((raw[7] & 0x7f) << 24) | (raw[6] << 16)
217 if (fraction[0] == 0x0000 && fraction[1] == 0x0000 && !integer)
/freebsd-11-stable/contrib/less/
H A Djump.c138 jump_percent(percent, fraction)
140 long fraction;
158 pos = percent_pos(len, percent, fraction);
H A Dos.c337 percent_pos(pos, percent, fraction)
340 long fraction;
343 POSITION perden = (percent * (NUM_FRAC_DENOM / 100)) + (fraction / 100);
H A Dcommand.c75 static long fraction; /* The fractional part of the number */ variable
620 number = cmd_int(&fraction);
1512 fraction = 0;
1514 if (number > 100 || (number == 100 && fraction != 0))
1517 fraction = 0;
1520 jump_percent((int) number, fraction);
H A Dfuncs.h184 public void jump_percent LESSPARAMS ((int percent, long fraction));
276 public POSITION percent_pos LESSPARAMS ((POSITION pos, int percent, long fraction));
/freebsd-11-stable/sys/dev/iicbus/
H A Dmax6690.c326 uint8_t fraction = 0; local
347 err = max6690_read(sc->sc_dev, sc->sc_addr, reg_ext, &fraction);
352 fraction &= MAX6690_TEMP_MASK;
357 temp = (integer * 10) + (fraction >> 5) * 10 / 8;
/freebsd-11-stable/sys/mips/mips/
H A Dfp.S704 move t2, zero # FSs fraction shifted is zero
707 move ta2, zero # FTs fraction shifted is zero
715 srl t2, t2, v1 # shift FSs fraction
719 srl ta2, ta2, v1 # shift FTs fraction
829 move t2, zero # FSs fraction shifted is zero
833 move ta2, zero # FTs fraction shifted is zero
846 srl t3, t2, v1 # shift FSs fraction
852 srl t3, t3, v1 # shift FSs fraction
862 srl ta3, ta2, v1 # shift FTs fraction
868 srl ta3, ta3, v1 # shift FTs fraction
[all...]
/freebsd-11-stable/contrib/gcc/
H A Dcfg.c962 /* Assume that the users are producing the fraction from frequencies
988 gcov_type fraction = RDIV (num * 65536, den);
990 gcc_assert (fraction >= 0);
1000 bbs[i]->count = RDIV (bbs[i]->count * fraction, 65536);
1005 e->count = RDIV (e->count * fraction, 65536);
1014 bbs[i]->frequency = RDIV (bbs[i]->frequency * fraction, 65536);
1015 bbs[i]->count = RDIV (bbs[i]->count * fraction, 65536);
1017 e->count = RDIV (e->count * fraction, 65536);
980 gcov_type fraction = RDIV (num * 65536, den); local
/freebsd-11-stable/sys/geom/bde/
H A Dg_bde_work.c83 static void g_bde_purge_sector(struct g_bde_softc *sc, int fraction);
303 g_bde_purge_sector(struct g_bde_softc *sc, int fraction) argument
309 if (fraction > 0)
310 n = sc->ncache / fraction + 1;
/freebsd-11-stable/sys/dev/drm/
H A Dr600_blit.c1648 u32 result, i, exponent, fraction; local
1654 fraction = (input & 0x3fff) << 10; /* cheat and only
1657 if (fraction & 0x800000)
1660 fraction = fraction << 1; /* keep
1665 result = exponent << 23 | (fraction & 0x7fffff); /* mask
/freebsd-11-stable/sys/contrib/ncsw/Peripherals/FM/Pcd/
H A Dfm_plcr.c155 /* for calculating the fraction, we will recalculate cir and deduct the integer.
157 * this value as fraction - see spec.
168 uint64_t integer, fraction; local
178 GetInfoRateReg(p_NonPassthroughAlgParam->rateMode, p_NonPassthroughAlgParam->comittedInfoRate, tsuInTenthNanos, 0, &integer, &fraction);
180 GetInfoRateReg(p_NonPassthroughAlgParam->rateMode, p_NonPassthroughAlgParam->peakOrAccessiveInfoRate, tsuInTenthNanos, 0, &integer, &fraction);
184 * the LSB bits are for the fraction */
194 * unused bits may be used for fraction).
209 temp = (uint32_t)fraction; /* fraction will alyas be smaller than 2^16 */
211 /* integer and fraction ar
[all...]
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/
H A DCocoa.cpp750 uint64_t fraction : 52; // unsigned member in struct:DoubleBits
756 uint64_t fraction : 52; // unsigned member in struct:TaggedDoubleBits
778 // Sign and fraction are represented exactly.
782 decodedBits.fraction = encodedBits.fraction;
/freebsd-11-stable/sys/dev/drm2/radeon/
H A Dr600_blit_kms.c52 uint32_t msb, exponent, fraction; local
65 fraction = ror32(x, (msb - I2F_FRAC_BITS) & 0x1f) & I2F_MASK;
68 return fraction + exponent;
/freebsd-11-stable/sys/netgraph/
H A Dng_ppp.c2043 int numFrags, fraction, remain; local
2053 fraction = m->m_pkthdr.len / numFrags;
2054 remain = m->m_pkthdr.len - (fraction * numFrags);
2059 = fraction + (((remain--) > 0)?1:0);
/freebsd-11-stable/sys/contrib/ncsw/Peripherals/FM/
H A Dfm.c356 uint64_t fraction; local
368 /* we multiply by 2^16 to keep the fraction of the division */
369 /* we do not divid back, since we write this value as fraction - see spec */
370 fraction = ((tsFrequency << 16) - (integer << 16)*p_Fm->p_FmStateStruct->fmClkFreq)/p_Fm->p_FmStateStruct->fmClkFreq;
373 fraction++;
375 tmpReg = (integer << FPM_TS_INT_SHIFT) | (uint16_t)fraction;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DAPFloat.cpp436 /* Return the trailing fraction of a hexadecimal number.
437 DIGITVALUE is the first hex digit of the fraction, P points to
445 fraction immediately. */
456 return createError("Invalid trailing hexadecimal fraction!");
468 /* Return the fraction lost were a bignum truncated losing the least
491 /* Shift DST right BITS bits noting lost fraction. */
993 lost fraction. */
1195 /* Figure out the lost fraction. */
1291 new LSB, with the given lost fraction and rounding mode, the result
1369 /* Shift right and capture any new lost fraction
[all...]

Completed in 233 milliseconds