/third_party/python/Lib/ctypes/test/ |
D | test_callbacks.py | 81 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 …]
|
D | test_byteswap.py | 148 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 …]
|
D | test_pep3118.py | 139 if c_longdouble is c_double: 164 (c_double, "<d", (), c_double), 178 (c_double * 4, "<d", (4,), c_double),
|
D | test_functions.py | 60 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]
|
D | test_libc.py | 14 lib.my_sqrt.argtypes = c_double, 15 lib.my_sqrt.restype = c_double
|
D | test_pickling.py | 8 _fields_ = [("a", c_int), ("b", c_double)] 27 c_double(3.14),
|
D | test_cfuncs.py | 151 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)
|
D | test_parameters.py | 220 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)>")
|
D | test_repr.py | 7 c_float, c_double, c_longdouble, c_bool]:
|
D | test_unaligned_structures.py | 14 c_float, c_double,
|
D | test_random_things.py | 65 cb = CFUNCTYPE(c_int, c_double)(callback_func)
|
D | test_structures.py | 67 "d": c_double, 498 ('data', c_double * 2), 531 func.restype = c_double 547 func.restype = c_double
|
D | test_pointers.py | 7 c_long, c_ulong, c_longlong, c_ulonglong, c_double, c_float]
|
D | test_prototypes.py | 90 func.argtypes = POINTER(c_double),
|
D | test_as_parameter.py | 24 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
|
D | test_arrays.py | 11 c_long, c_ulonglong, c_float, c_double, c_longdouble
|
D | test_numbers.py | 29 float_types = [c_double, c_float]
|
/third_party/python/Lib/ctypes/ |
D | __init__.py | 196 class c_double(_SimpleCData): class 198 _check_size(c_double) 202 if sizeof(c_longdouble) == sizeof(c_double): 203 c_longdouble = c_double
|
D | wintypes.py | 14 DOUBLE = ctypes.c_double
|
/third_party/python/Lib/test/ |
D | test_memoryview.py | 514 p6 = bytes(ctypes.c_double(0.6)) 516 d = ctypes.c_double() 524 d = ctypes.c_double()
|
/third_party/python/Lib/multiprocessing/ |
D | sharedctypes.py | 32 'f': ctypes.c_float, 'd': ctypes.c_double
|
/third_party/pulseaudio/src/tests/ |
D | volume-ui.py | 115 _to_dB.restype = c_double
|
/third_party/grpc/tools/codegen/core/ |
D | gen_stats_data.py | 70 return ctypes.c_ulonglong.from_buffer(ctypes.c_double(d)).value
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0a5.rst | 7 Avoid static buffers when computing the repr of :class:`ctypes.c_double` and
|
/third_party/python/Doc/library/ |
D | multiprocessing.rst | 1577 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)
|