Home
last modified time | relevance | path

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

12345678910>>...16

/third_party/python/Lib/test/
H A Dtest_float.py22 HAVE_IEEE_754 = float.__getformat__("double").startswith("IEEE")
23 INF = float("inf")
24 NAN = float("nan")
27 #locate file with float format test values
31 class FloatSubclass(float):
34 class OtherFloatSubclass(float):
40 self.assertEqual(float(3.14), 3.14)
41 self.assertEqual(float(314), 314.0)
42 self.assertEqual(float(" 3.14 "), 3.14)
43 self.assertRaises(ValueError, float, "
[all...]
H A Dtest_numeric_tower.py1 # test interactions between int, float, Decimal and Fraction
19 """Dummy Integral class to test conversion of the Rational to float."""
54 self.check_equal_hash(i, float(i))
62 if n == int(float(n)):
63 self.check_equal_hash(n, float(n))
64 self.check_equal_hash(-n, -float(n))
71 self.check_equal_hash(n, float(n))
72 self.check_equal_hash(-n, -float(n))
84 if n == int(float(n)):
85 self.check_equal_hash(n, float(
[all...]
H A Dtest_fractions.py20 """Dummy float class for testing comparisons with Fractions"""
23 if not isinstance(value, float):
24 raise TypeError("DummyFloat can only be initialized from float")
78 # this class is for testing comparisons; conversion to float
144 # bug 16469: error types should be consistent with float -> int
145 self.assertRaises(ValueError, F, float('nan'))
146 self.assertRaises(OverflowError, F, float('inf'))
147 self.assertRaises(OverflowError, F, float('-inf'))
201 # Imitate float's parsing.
303 self.assertEqual(float(1
[all...]
H A Dtest_abstract_numbers.py21 self.assertFalse(issubclass(float, Rational))
22 self.assertTrue(issubclass(float, Real))
24 self.assertEqual(7.3, float(7.3).real)
25 self.assertEqual(0, float(7.3).imag)
26 self.assertEqual(7.3, float(7.3).conjugate())
27 self.assertEqual(-7.3, float(-7.3).conjugate())
39 self.assertRaises(TypeError, float, c1)
H A Dtest_hash.py67 self.same_hash(int(1), int(1), float(1), complex(1),
68 int('1'), float('1.0'))
69 self.same_hash(int(-2**31), float(-2**31))
70 self.same_hash(int(1-2**31), float(1-2**31))
71 self.same_hash(int(2**31-1), float(2**31-1))
73 self.same_hash(int(2**31), float(2**31))
74 self.same_hash(int(-2**63), float(-2**63))
75 self.same_hash(int(2**63), float(2**63))
78 self.same_hash(int(1.23e300), float(1.23e300))
79 self.same_hash(float(0.
[all...]
H A Dtest_strtod.py1 # Tests for the correctly-rounded string -> float conversions
11 raise unittest.SkipTest('correctly-rounded string->float conversions '
14 # Correctly rounded str -> float in pure Python, for comparison.
25 # Pure Python version of correctly rounded string->float conversion.
29 IEEE 754 binary64 float. Return 'inf' or '-inf' on overflow.
89 string->float conversion (using float) to a pure Python
90 correctly rounded string->float implementation. Fail if the
94 fs = float(s)
103 "Incorrectly rounded str->float conversio
[all...]
/third_party/ffmpeg/tests/fate/
H A Dmp3.mak1 FATE_MP3 += fate-mp3-float-conf-compl
2 fate-mp3-float-conf-compl: CMD = ffmpeg -auto_conversion_filters -c:a mp3float -i $(TARGET_SAMPLES)/mp3-conformance/compl.bit -f f32le -
3 fate-mp3-float-conf-compl: REF = $(SAMPLES)/mp3-conformance/compl.f32
5 FATE_MP3 += fate-mp3-float-conf-he_32khz
6 fate-mp3-float-conf-he_32khz: CMD = ffmpeg -auto_conversion_filters -c:a mp3float -i $(TARGET_SAMPLES)/mp3-conformance/he_32khz.bit -af atrim=end_sample=171648 -f f32le -
7 fate-mp3-float-conf-he_32khz: REF = $(SAMPLES)/mp3-conformance/he_32khz.f32
9 FATE_MP3 += fate-mp3-float-conf-he_44khz
10 fate-mp3-float-conf-he_44khz: CMD = ffmpeg -auto_conversion_filters -c:a mp3float -i $(TARGET_SAMPLES)/mp3-conformance/he_44khz.bit -af atrim=end_sample=471168 -f f32le -
11 fate-mp3-float-conf-he_44khz: REF = $(SAMPLES)/mp3-conformance/he_44khz.f32
13 FATE_MP3 += fate-mp3-float
[all...]
H A Dimage.mak121 FATE_EXR += fate-exr-rgb-scanline-pxr24-float-12x8
122 fate-exr-rgb-scanline-pxr24-float-12x8: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_pxr24_float_12x8.exr -pix_fmt gbrpf32le
127 FATE_EXR += fate-exr-rgb-scanline-float-b44
128 fate-exr-rgb-scanline-float-b44: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_scanline_float_b44.exr -pix_fmt gbrpf32le
136 FATE_EXR += fate-exr-rgb-tile-float-raw-12x8
137 fate-exr-rgb-tile-float-raw-12x8: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_float_raw_12x8.exr -pix_fmt gbrpf32le
139 FATE_EXR += fate-exr-rgb-tile-float-raw-150x130
140 fate-exr-rgb-tile-float-raw-150x130: CMD = framecrc -i $(TARGET_SAMPLES)/exr/rgb_tile_float_raw_150x130.exr -pix_fmt gbrpf32le
145 FATE_EXR += fate-exr-rgba-scanline-float-half-b44-13x9-l1
146 fate-exr-rgba-scanline-float
[all...]
H A Dfft.mak19 fate-dct-float: $(FATE_DCT-yes)
20 fate-fft-float: $(FATE_FFT-yes)
21 fate-mdct-float: $(FATE_MDCT-yes)
22 fate-rdft-float: $(FATE_RDFT-yes)
66 fate-av-dct-float: $(FATE_AV_DCT-yes)
67 fate-av-fft-float: $(FATE_AV_FFT-yes)
68 fate-av-mdct-float: $(FATE_AV_MDCT-yes)
69 fate-av-rdft-float: $(FATE_AV_RDFT-yes)
77 fate-dct: fate-dct-float
78 fate-fft: fate-fft-float fat
[all...]
/third_party/rust/crates/minimal-lexical/fuzz/fuzz_targets/
H A Dparse.rs72 /// Parse the exponent of the float.
127 /// Parse float from input bytes, returning the float and the remaining bytes.
129 /// * `bytes` - Array of bytes leading with float-data.
141 let mut float = F::from_bits(F::EXPONENT_MASK | (F::HIDDEN_BIT_MASK >> 1)); in parse_float() variables
143 float = -float; in parse_float()
145 return (float, &bytes[3..]); in parse_float()
147 let mut float = F::from_bits(F::EXPONENT_MASK); in parse_float() variables
149 float in parse_float()
153 let mut float = F::from_bits(F::EXPONENT_MASK); parse_float() variables
199 let mut float: F = parse_float() variables
[all...]
/third_party/rust/crates/minimal-lexical/tests/
H A Dintegration_tests.rs72 /// Parse the exponent of the float.
127 /// Parse float from input bytes, returning the float and the remaining bytes.
129 /// * `bytes` - Array of bytes leading with float-data.
141 let mut float = F::from_bits(F::EXPONENT_MASK | (F::HIDDEN_BIT_MASK >> 1)); in parse_float() variables
143 float = -float; in parse_float()
145 return (float, &bytes[3..]); in parse_float()
147 let mut float = F::from_bits(F::EXPONENT_MASK); in parse_float() variables
149 float in parse_float()
153 let mut float = F::from_bits(F::EXPONENT_MASK); parse_float() variables
199 let mut float: F = parse_float() variables
[all...]
/third_party/ffmpeg/libswresample/x86/
H A Daudio_convert.asm612 PACK_6CH float, float, u, 2, 2, 7, NOP_N, NOP_N
613 PACK_6CH float, float, a, 2, 2, 7, NOP_N, NOP_N
615 UNPACK_6CH float, float, u, 2, 2, 7, NOP_N, NOP_N
616 UNPACK_6CH float, float, a, 2, 2, 7, NOP_N, NOP_N
642 CONV float, int32, u, 2, 2, INT32_TO_FLOAT_N, INT32_TO_FLOAT_INIT
643 CONV float, int3
[all...]
/third_party/python/Lib/test/test_json/
H A Dtest_float.py8 self.assertEqual(float(self.dumps(num)), num)
17 self.assertEqual(self.loads('[23456789012E666]'), [float('inf')])
18 self.assertEqual(self.loads('[-23456789012E666]'), [float('-inf')])
21 for val in (float('inf'), float('-inf'), float('nan')):
H A Dtest_enum.py20 class FloatNum(float, Enum):
25 INF = float('inf')
26 NEG_INF = float('-inf')
27 NAN = float('nan')
29 class WierdNum(float, Enum):
39 self.assertEqual(float(self.dumps(enum)), enum)
46 self.assertEqual(float(self.dumps(enum)), enum)
49 self.assertTrue(isnan(float(self.dumps(enum))))
/third_party/astc-encoder/Test/testlib/
H A Dimage.py247 Colors are returned as float values between 0.0 and 1.0 for LDR,
248 and float values which may exceed 1.0 for HDR.
298 channels[i] = float(channel[:-1]) / 100.0
300 channels[i] = float(channel) / 255.0
302 channels[i] = float(channel)
310 channels[i] = float(channel[:-1]) / 100.0
312 channels[i] = float(channel) / 255.0
321 channels[i] = float(channel[:-1]) / 100.0
323 channels[i] = float(channel) / 255.0
325 channels[i] = float(channe
[all...]
/third_party/ffmpeg/libavcodec/x86/
H A Daacpsdsp.asm32 ;void ff_ps_add_squares_<opt>(float *dst, const float (*src)[2], int n);
61 ;void ff_ps_mul_pair_single_sse(float (*dst)[2], float (*src0)[2],
62 ; float *src1, int n);
89 ;void ff_ps_stereo_interpolate_sse3(float (*l)[2], float (*r)[2],
90 ; float h[2][4], float h_step[2][4],
122 ;void ps_stereo_interpolate_ipdopd_sse3(float (*
[all...]
H A Dsbrdsp.asm128 ; void ff_sbr_hf_gen_sse(float (*X_high)[2], const float (*X_low)[2],
129 ; const float alpha0[2], const float alpha1[2],
130 ; float bw, int start, int end)
253 ; void ff_sbr_qmf_deint_bfly_sse2(float *v, const float *src0, const float *src1)
333 ; sbr_hf_apply_noise_0(float (*Y)[2], const float *s_
[all...]
/third_party/ffmpeg/libavutil/x86/
H A Dfloat_dsp.asm31 ; void vector_fmul(float *dst, const float *src0, const float *src1, int len)
95 ; void ff_vector_fmac_scalar(float *dst, const float *src, float mul, int len)
159 ; void ff_vector_fmul_scalar(float *dst, const float *src, float mul, int len)
294 ; vector_fmul_window(float *ds
[all...]
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-unittests/
H A Dmain.rs91 /// Parse the exponent of the float.
120 /// Parse float from input bytes, returning the float and the remaining bytes.
122 /// * `bytes` - Array of bytes leading with float-data.
130 // Extract and parse the float components: in parse_float()
150 // Create the float and return our data. in parse_float()
151 let mut float: F = in parse_float() variables
154 float = -float; in parse_float()
157 (float, byte in parse_float()
[all...]
/third_party/libinput/tools/
H A Dlibinput-record-verify-yaml.py306 self.assertTrue(isinstance(d, float))
311 self.assertTrue(isinstance(d, float))
333 self.assertTrue(isinstance(p, float))
341 self.assertTrue(isinstance(t, float))
367 self.assertTrue(isinstance(p, float))
375 self.assertTrue(isinstance(t, float))
387 self.assertTrue(isinstance(p, float))
395 self.assertTrue(isinstance(t, float))
436 self.assertTrue(isinstance(d, float))
441 self.assertTrue(isinstance(d, float))
[all...]
/third_party/skia/demos.skia.org/demos/textedit/
H A Dspiralshader.js11 uniform float rad_scale;
18 float radius = sqrt(dot(pp, pp));
20 float angle = atan(pp.y / pp.x);
21 float t = (angle + 3.1415926/2) / (3.1415926);
/third_party/vk-gl-cts/modules/gles2/scripts/
H A Dgenutil.py115 def toFloat(lst): return [Scalar(float(v.x)) for v in lst]
233 def toFloat(self): return Scalar(float(self.x))
245 elif isinstance(self.x, float):
246 return "float"
345 def toMat2(self): return Mat2(float(self.x), 0.0, 0.0, float(self.y));
347 def toFloat(self): return Vec2(float(self.x), float(self.y))
359 elif isinstance(self.x, float):
372 elif isinstance(self.x, float)
[all...]
/third_party/rust/crates/bindgen/bindgen/ir/analysis/
H A Dhas_float.rs1 //! Determining which types has float.
11 /// An analysis that finds for each IR item whether it has float or not.
16 /// * If T is float or complex float, T trivially has.
18 /// it has float if the type T refers to has.
19 /// * If T is a compound type, it has float if any of base memter or field
22 /// float if any of the template arguments or template definition
29 // set has float.
38 // has float or not.
104 trace!(" already know it do not have float"); in constrain()
[all...]
/third_party/skia/tools/skpbench/
H A D_benchresult.py43 self.accum = float(match.group('accum'))
44 self.median = float(match.group('median'))
45 self.max = float(match.group('max'))
46 self.min = float(match.group('min'))
47 self.stddev = float(match.group('stddev')[:-1]) # Drop '%' sign.
/third_party/rust/crates/minimal-lexical/etc/correctness/rng-tests/
H A D_common.rs77 /// Parse the exponent of the float.
106 /// Parse float from input bytes, returning the float and the remaining bytes.
108 /// * `bytes` - Array of bytes leading with float-data.
116 // Extract and parse the float components: in parse_float()
136 // Create the float and return our data. in parse_float()
137 let mut float: F = in parse_float() variables
140 float = -float; in parse_float()
143 (float, byte in parse_float()
[all...]

Completed in 11 milliseconds

12345678910>>...16