Home
last modified time | relevance | path

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

123456

/external/webrtc/webrtc/system_wrappers/include/
Dntp_time.h24 NtpTime(uint32_t seconds, uint32_t fractions) in NtpTime() argument
25 : seconds_(seconds), fractions_(fractions) {} in NtpTime()
33 void Set(uint32_t seconds, uint32_t fractions) { in Set() argument
35 fractions_ = fractions; in Set()
48 uint32_t fractions() const { return fractions_; } in fractions() function
56 return n1.seconds() == n2.seconds() && n1.fractions() == n2.fractions();
Dclock.h40 virtual void CurrentNtp(uint32_t& seconds, uint32_t& fractions) const = 0;
46 static int64_t NtpToMs(uint32_t seconds, uint32_t fractions);
67 void CurrentNtp(uint32_t& seconds, uint32_t& fractions) const override;
/external/webrtc/webrtc/system_wrappers/source/
Dclock_unittest.cc20 uint32_t fractions; in TEST() local
21 clock->CurrentNtp(seconds, fractions); in TEST()
24 EXPECT_GE(milliseconds, Clock::NtpToMs(seconds, fractions)); in TEST()
25 EXPECT_NEAR(milliseconds, Clock::NtpToMs(seconds, fractions), 100); in TEST()
Dclock.cc50 void CurrentNtp(uint32_t& seconds, uint32_t& fractions) const override { in CurrentNtp()
54 fractions = static_cast<uint32_t>( in CurrentNtp()
251 void SimulatedClock::CurrentNtp(uint32_t& seconds, uint32_t& fractions) const { in CurrentNtp()
254 fractions = in CurrentNtp()
Dntp_time_unittest.cc37 EXPECT_EQ(kNtpFrac, ntp.fractions()); in TEST()
64 EXPECT_EQ(ntp.ToMs(), Clock::NtpToMs(ntp.seconds(), ntp.fractions())); in TEST()
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_context.py9 async def fractions(t, precision, x, y): function
19 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/webrtc/webrtc/modules/rtp_rtcp/source/
Dtime_util.h21 uint32_t tmp = (static_cast<uint64_t>(ntp.fractions()) * freq) >> 32; in NtpToRtp()
39 return (ntp.seconds() << 16) | (ntp.fractions() >> 16); in CompactNtp()
/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
127 >>> from fractions import Fraction
Dnumeric.rst24 fractions.rst
/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/tensorflow/tensorflow/python/ops/signal/
Dutil_ops.py21 import fractions
62 return ops.convert_to_tensor(fractions.gcd(const_a, const_b))
/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/tensorflow/tensorflow/contrib/training/python/training/
Dresample_test.py208 fractions = [w / weight_sum for w in weights]
209 expected_counts = [expected_overall_count * f for f in fractions]
212 math.sqrt(expected_overall_count * f * (1 - f)) for f in fractions
/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/protobuf/src/google/protobuf/
Dtimestamp.proto45 // or calendar, represented as seconds and fractions of seconds at
106 // Non-negative fractions of a second at nanosecond resolution. Negative
107 // second values with fractions must still have non-negative nanos values
Dduration.proto44 // as a count of seconds and fractions of seconds at nanosecond
91 // Signed fractions of a second at nanosecond resolution of the span
/external/fonttools/Tests/mtiLib/data/mti/
Dgsubsingle.txt3 lookup alt-fractions single
/external/freetype/src/autofit/
Dafcover.h53 COVERAGE( fractions, FRACTIONS,
/external/syzkaller/vendor/github.com/golang/protobuf/ptypes/timestamp/
Dtimestamp.proto44 // or calendar, represented as seconds and fractions of seconds at
128 // Non-negative fractions of a second at nanosecond resolution. Negative
129 // second values with fractions must still have non-negative nanos values
/external/golang-protobuf/ptypes/timestamp/
Dtimestamp.proto44 // or calendar, represented as seconds and fractions of seconds at
130 // Non-negative fractions of a second at nanosecond resolution. Negative
131 // second values with fractions must still have non-negative nanos values
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Drrtr.cc45 ByteWriter<uint32_t>::WriteBigEndian(&buffer[8], ntp_.fractions()); in Create()
Drrtr_unittest.cc47 EXPECT_EQ(kNtpFrac, parsed.ntp().fractions()); in TEST()
/external/python/cpython2/Lib/test/
Dtest_fractions.py8 import fractions
13 F = fractions.Fraction
14 gcd = fractions.gcd
65 if isinstance(other, fractions.Fraction):
92 class DummyFraction(fractions.Fraction):

123456