Home
last modified time | relevance | path

Searched refs:fractions (Results 1 – 25 of 180) sorted by relevance

12345678

/external/webrtc/system_wrappers/include/
Dntp_time.h26 NtpTime(uint32_t seconds, uint32_t fractions) in NtpTime() argument
27 : value_(seconds * kFractionsPerSecond + fractions) {} in NtpTime()
33 void Set(uint32_t seconds, uint32_t fractions) { in Set() argument
34 value_ = seconds * kFractionsPerSecond + fractions; in Set()
40 const double frac_ms = static_cast<double>(fractions()) / kNtpFracPerMs; in ToMs()
50 uint32_t fractions() const { in fractions() function
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_context.py14 async def fractions(t, precision, x, y): function
24 fractions(0.1, 3, 1, 3), fractions(0.2, 6, 1, 3))
/external/python/cpython2/Doc/library/
Dfractions.rst1 :mod:`fractions` --- Rational numbers
4 .. module:: fractions
10 **Source code:** :source:`Lib/fractions.py`
14 The :mod:`fractions` module provides support for rational number arithmetic.
51 >>> from fractions import Fraction
114 >>> from fractions import Fraction
Dnumeric.rst24 fractions.rst
/external/python/cpython3/Doc/library/
Dfractions.rst1 :mod:`fractions` --- Rational numbers
4 .. module:: fractions
10 **Source code:** :source:`Lib/fractions.py`
14 The :mod:`fractions` module provides support for rational number arithmetic.
51 >>> from fractions import Fraction
138 >>> from fractions import Fraction
Dnumeric.rst24 fractions.rst
/external/icu/android_icu4j/src/main/java/android/icu/impl/units/
DUnitsConverter.java221 String[] fractions = factor.split("/"); in processFactor() local
222 assert (fractions.length == 1 || fractions.length == 2); in processFactor()
224 if (fractions.length == 1) { in processFactor()
225 return processFactorWithoutDivision(fractions[0]); in processFactor()
228 Factor num = processFactorWithoutDivision(fractions[0]); in processFactor()
229 Factor den = processFactorWithoutDivision(fractions[1]); in processFactor()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DUnitsConverter.java211 String[] fractions = factor.split("/"); in processFactor() local
212 assert (fractions.length == 1 || fractions.length == 2); in processFactor()
214 if (fractions.length == 1) { in processFactor()
215 return processFactorWithoutDivision(fractions[0]); in processFactor()
218 Factor num = processFactorWithoutDivision(fractions[0]); in processFactor()
219 Factor den = processFactorWithoutDivision(fractions[1]); in processFactor()
/external/tensorflow/tensorflow/python/ops/signal/
Dutil_ops.py17 import fractions # gcd is here for Python versions < 3
61 math_gcd = fractions.gcd
/external/python/cpython3/Doc/tutorial/
Dfloatingpoint.rst15 fractions. For example, the decimal fraction ::
23 has value 0/2 + 0/4 + 1/8. These two fractions have identical values, the only
27 Unfortunately, most decimal fractions cannot be represented exactly as binary
28 fractions. A consequence is that, in general, the decimal floating-point
156 Another form of exact arithmetic is supported by the :mod:`fractions` module
216 decimal fractions cannot be represented exactly as binary (base 2) fractions.
284 The :mod:`fractions` and :mod:`decimal` modules make these calculations
288 >>> from fractions import Fraction
/external/webrtc/api/video_codecs/
Dvideo_encoder.cc147 const absl::InlinedVector<uint8_t, kMaxTemporalStreams>& fractions = in ToString() local
149 if (!fractions.empty()) { in ToString()
152 for (size_t i = 0; i < fractions.size(); ++i) { in ToString()
156 oss << (static_cast<double>(fractions[i]) / kMaxFramerateFraction); in ToString()
/external/webrtc/system_wrappers/source/
Dclock.cc80 uint32_t fractions = static_cast<uint32_t>( in ConvertTimestampToNtpTime() local
82 return NtpTime(seconds, fractions); in ConvertTimestampToNtpTime()
/external/autotest/site_utils/
Dcloud_console.proto22 // or calendar, represented as seconds and fractions of seconds at
27 // Non-negative fractions of a second at nanosecond resolution.
/external/cronet/net/third_party/quiche/src/quiche/blind_sign_auth/proto/
Dtimestamp.proto27 // Non-negative fractions of a second at nanosecond resolution. Negative
28 // second values with fractions must still have non-negative nanos values
/external/python/cachetools/tests/
Dtest_method.py112 import fractions
117 class Int(fractions.Fraction):
119 return Int(fractions.Fraction.__add__(self, other))
/external/python/cpython2/Doc/tutorial/
Dfloatingpoint.rst11 fractions. For example, the decimal fraction ::
19 has value 0/2 + 0/4 + 1/8. These two fractions have identical values, the only
23 Unfortunately, most decimal fractions cannot be represented exactly as binary
24 fractions. A consequence is that, in general, the decimal floating-point
157 decimal fractions cannot be represented exactly as binary (base 2) fractions.
/external/cronet/buildtools/third_party/libc++/trunk/src/
Dchrono.cpp203 auto fractions = counter.QuadPart % freq.QuadPart; in __libcpp_steady_clock_now() local
204 auto dur = seconds * nano::den + fractions * nano::den / freq.QuadPart; in __libcpp_steady_clock_now()
/external/fonttools/Tests/mtiLib/data/mti/
Dgsubsingle.txt3 lookup alt-fractions single
/external/webrtc/modules/rtp_rtcp/source/
Dtime_util.h31 return (ntp.seconds() << 16) | (ntp.fractions() >> 16); in CompactNtp()
/external/perfetto/ui/src/common/
Dhigh_precision_time_unittest.ts28 const [base, fractions] = array; constant
32 if (fractions) {
33 const numFractions = Number(`0.${fractions}`);
/external/freetype/src/autofit/
Dafcover.h53 COVERAGE( fractions, FRACTIONS,
/external/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Drrtr.cc45 ByteWriter<uint32_t>::WriteBigEndian(&buffer[8], ntp_.fractions()); in Create()
Drrtr_unittest.cc46 EXPECT_EQ(kNtpFrac, parsed.ntp().fractions()); in TEST()
/external/rust/crates/protobuf-parse/src/proto/google/protobuf/
Dtimestamp.proto44 // calendar, encoded as a count of seconds and fractions of seconds at
142 // Non-negative fractions of a second at nanosecond resolution. Negative
143 // second values with fractions must still have non-negative nanos values
/external/protobuf/src/google/protobuf/
Dtimestamp.proto44 // calendar, encoded as a count of seconds and fractions of seconds at
142 // Non-negative fractions of a second at nanosecond resolution. Negative
143 // second values with fractions must still have non-negative nanos values

12345678