/external/python/cpython2/Lib/ctypes/test/ |
D | test_callbacks.py | 85 self.check_type(c_double, 3.14) 86 self.check_type(c_double, -3.14) 122 prototype = self.functype.im_func(POINTER(c_double)) 170 CALLBACK = CFUNCTYPE(c_double, c_double) 174 integrate.argtypes = (c_double, c_double, CALLBACK, c_long) 175 integrate.restype = c_double 235 CALLBACK = CFUNCTYPE(c_double, c_double, c_double, c_double, 236 c_double, c_double) 239 func.argtypes = (c_double, c_double, c_double, 240 c_double, c_double, CALLBACK) [all …]
|
D | test_byteswap.py | 128 self.assertIs(c_double.__ctype_le__, c_double) 129 self.assertIs(c_double.__ctype_be__.__ctype_le__, c_double) 131 self.assertIs(c_double.__ctype_be__, c_double) 132 self.assertIs(c_double.__ctype_le__.__ctype_be__, c_double) 133 s = c_double(math.pi) 136 s = c_double.__ctype_le__(math.pi) 139 s = c_double.__ctype_be__(math.pi) 172 ("m", c_double), 233 ("d", c_double)] 257 ("d", c_double)] [all …]
|
D | test_functions.py | 70 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double] 78 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 93 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 119 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 131 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 132 f.restype = c_double 157 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double] 163 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double, c_longlong]
|
D | test_pep3118.py | 135 (c_double, "<d", None, c_double), 148 (c_double * 4, "<d", (4,), c_double),
|
D | test_libc.py | 10 lib.my_sqrt.argtypes = c_double, 11 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_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 | 61 cb = CFUNCTYPE(c_int, c_double)(callback_func)
|
D | test_arrays.py | 9 c_long, c_ulonglong, c_float, c_double, c_longdouble
|
D | test_prototypes.py | 87 func.argtypes = POINTER(c_double),
|
D | test_pointers.py | 7 c_long, c_ulong, c_longlong, c_ulonglong, c_double, c_float]
|
D | test_as_parameter.py | 24 f.argtypes = [c_byte, c_wchar, c_int, c_long, c_float, c_double]
|
D | test_numbers.py | 29 float_types = [c_double, c_float]
|
D | test_structures.py | 59 "d": c_double,
|
/external/python/cpython2/Lib/test/ |
D | test_ascii_formatd.py | 11 from ctypes import pythonapi, create_string_buffer, sizeof, byref, c_double 23 c_double(10.0)) 50 c_double(val))
|
D | test_multiprocessing.py | 92 from ctypes import Structure, c_int, c_double 95 c_int = c_double = None 1980 ('y', c_double) 2003 y = Value(c_double, 1.0/3.0, lock=lock)
|
/external/python/cpython2/Lib/ctypes/ |
D | __init__.py | 198 class c_double(_SimpleCData): class 200 _check_size(c_double) 204 if sizeof(c_longdouble) == sizeof(c_double): 205 c_longdouble = c_double
|
D | wintypes.py | 12 DOUBLE = c_double
|
/external/python/cpython2/Lib/multiprocessing/ |
D | sharedctypes.py | 54 'f': ctypes.c_float, 'd': ctypes.c_double
|
/external/python/cpython2/Doc/library/ |
D | multiprocessing.rst | 1285 c_double(2.4) RawValue(c_double, 2.4) RawValue('d', 2.4) 1297 from ctypes import Structure, c_double 1300 _fields_ = [('x', c_double), ('y', c_double)] 1314 x = Value(c_double, 1.0/3.0, lock=False)
|
D | ctypes.rst | 252 | :class:`c_double` | :c:type:`double` | float | 365 >>> printf("An int %d, a double %f\n", 1234, c_double(3.14)) 409 >>> printf.argtypes = [c_char_p, c_char_p, c_int, c_double] 2206 .. class:: c_double 2216 sizeof(double)`` it is an alias to :class:`c_double`.
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.5.rst | 1697 :func:`c_float`, :func:`c_double`, :func:`c_char_p` (equivalent to :c:type:`char 1719 >>> libc.atof.restype = ctypes.c_double
|
/external/python/cpython2/Misc/ |
D | NEWS | 4648 - Issue #9041: An issue in ctypes.c_longdouble, ctypes.c_double, and
|