Home
last modified time | relevance | path

Searched refs:c_double (Results 1 – 25 of 30) sorted by relevance

12

/third_party/python/Lib/ctypes/test/
Dtest_callbacks.py81 self.check_type(c_double, 3.14)
82 self.check_type(c_double, -3.14)
118 prototype = self.functype.__func__(POINTER(c_double))
166 CALLBACK = CFUNCTYPE(c_double, c_double)
170 integrate.argtypes = (c_double, c_double, CALLBACK, c_long)
171 integrate.restype = c_double
231 CALLBACK = CFUNCTYPE(c_double, c_double, c_double, c_double,
232 c_double, c_double)
235 func.argtypes = (c_double, c_double, c_double,
236 c_double, c_double, CALLBACK)
[all …]
Dtest_byteswap.py148 self.assertIs(c_double.__ctype_le__, c_double)
149 self.assertIs(c_double.__ctype_be__.__ctype_le__, c_double)
151 self.assertIs(c_double.__ctype_be__, c_double)
152 self.assertIs(c_double.__ctype_le__.__ctype_be__, c_double)
153 s = c_double(math.pi)
156 s = c_double.__ctype_le__(math.pi)
159 s = c_double.__ctype_be__(math.pi)
192 ("m", c_double),
253 ("d", c_double)]
277 ("d", c_double)]
[all …]
Dtest_pep3118.py139 if c_longdouble is c_double:
164 (c_double, "<d", (), c_double),
178 (c_double * 4, "<d", (4,), c_double),
Dtest_functions.py60 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
68 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
83 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
109 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
121 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
122 f.restype = c_double
147 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
153 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double, c_longlong]
Dtest_libc.py14 lib.my_sqrt.argtypes = c_double,
15 lib.my_sqrt.restype = c_double
Dtest_pickling.py8 _fields_ = [("a", c_int), ("b", c_double)]
27 c_double(3.14),
Dtest_cfuncs.py151 self._dll.tf_d.restype = c_double
152 self._dll.tf_d.argtypes = (c_double,)
157 self._dll.tf_bd.restype = c_double
158 self._dll.tf_bd.argtypes = (c_byte, c_double)
Dtest_parameters.py220 c_double,
240 self.assertEqual(repr(c_double.from_param(1.5)), "<cparam 'd' (1.5)>")
241 self.assertEqual(repr(c_double.from_param(1e300)), "<cparam 'd' (1e+300)>")
Dtest_repr.py7 c_float, c_double, c_longdouble, c_bool]:
Dtest_unaligned_structures.py14 c_float, c_double,
Dtest_random_things.py65 cb = CFUNCTYPE(c_int, c_double)(callback_func)
Dtest_structures.py67 "d": c_double,
498 ('data', c_double * 2),
531 func.restype = c_double
547 func.restype = c_double
Dtest_pointers.py7 c_long, c_ulong, c_longlong, c_ulonglong, c_double, c_float]
Dtest_prototypes.py90 func.argtypes = POINTER(c_double),
Dtest_as_parameter.py24 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
Dtest_arrays.py11 c_long, c_ulonglong, c_float, c_double, c_longdouble
Dtest_numbers.py29 float_types = [c_double, c_float]
/third_party/python/Lib/ctypes/
D__init__.py196 class c_double(_SimpleCData): class
198 _check_size(c_double)
202 if sizeof(c_longdouble) == sizeof(c_double):
203 c_longdouble = c_double
Dwintypes.py14 DOUBLE = ctypes.c_double
/third_party/python/Lib/test/
Dtest_memoryview.py514 p6 = bytes(ctypes.c_double(0.6))
516 d = ctypes.c_double()
524 d = ctypes.c_double()
/third_party/python/Lib/multiprocessing/
Dsharedctypes.py32 'f': ctypes.c_float, 'd': ctypes.c_double
/third_party/pulseaudio/src/tests/
Dvolume-ui.py115 _to_dB.restype = c_double
/third_party/grpc/tools/codegen/core/
Dgen_stats_data.py70 return ctypes.c_ulonglong.from_buffer(ctypes.c_double(d)).value
/third_party/python/Misc/NEWS.d/
D3.10.0a5.rst7 Avoid static buffers when computing the repr of :class:`ctypes.c_double` and
/third_party/python/Doc/library/
Dmultiprocessing.rst1577 c_double(2.4) RawValue(c_double, 2.4) RawValue('d', 2.4)
1589 from ctypes import Structure, c_double
1592 _fields_ = [('x', c_double), ('y', c_double)]
1606 x = Value(c_double, 1.0/3.0, lock=False)

12