/external/python/cpython2/Lib/test/ |
H A D | test_ascii_formatd.py | 11 from ctypes import pythonapi, create_string_buffer, sizeof, byref, c_double namespace 23 c_double(10.0)) 50 c_double(val))
|
/external/python/cpython2/Lib/ctypes/test/ |
H A D | test_callbacks.py | 85 self.check_type(c_double, 3.14) 86 self.check_type(c_double, -3.14) 120 # POINTER(c_double), for example, is not supported. 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_doubl [all...] |
H A D | test_libc.py | 10 lib.my_sqrt.argtypes = c_double, 11 lib.my_sqrt.restype = c_double
|
H A 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 [all...] |
H A D | test_pep3118.py | 135 (c_double, "<d", None, c_double), 136 # c_longdouble may be an alias to c_double 148 (c_double * 4, "<d", (4,), c_double),
|
H A D | test_repr.py | 7 c_float, c_double, c_longdouble, c_bool]:
|
H A D | test_unaligned_structures.py | 14 c_float, c_double,
|
H A D | test_pickling.py | 8 _fields_ = [("a", c_int), ("b", c_double)] 27 c_double(3.14),
|
H A 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]
|
H A D | test_random_things.py | 61 cb = CFUNCTYPE(c_int, c_double)(callback_func)
|
H A 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)
|
/external/python/cpython3/Lib/ctypes/test/ |
H A D | test_callbacks.py | 79 self.check_type(c_double, 3.14) 80 self.check_type(c_double, -3.14) 114 # POINTER(c_double), for example, is not supported. 116 prototype = self.functype.__func__(POINTER(c_double)) 164 CALLBACK = CFUNCTYPE(c_double, c_double) 168 integrate.argtypes = (c_double, c_double, CALLBACK, c_long) 169 integrate.restype = c_double 229 CALLBACK = CFUNCTYPE(c_double, c_doubl [all...] |
H A 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 [all...] |
H A D | test_libc.py | 14 lib.my_sqrt.argtypes = c_double, 15 lib.my_sqrt.restype = c_double
|
H A D | test_pep3118.py | 138 (c_double, "<d", (), c_double), 139 # c_longdouble may be an alias to c_double 151 (c_double * 4, "<d", (4,), c_double),
|
H A D | test_repr.py | 7 c_float, c_double, c_longdouble, c_bool]:
|
H A D | test_unaligned_structures.py | 14 c_float, c_double,
|
H A D | test_pickling.py | 8 _fields_ = [("a", c_int), ("b", c_double)] 27 c_double(3.14),
|
H A 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]
|
H A D | test_random_things.py | 61 cb = CFUNCTYPE(c_int, c_double)(callback_func)
|
/external/capstone/bindings/python/capstone/ |
H A D | arm.py | 26 ('fp', ctypes.c_double),
|
H A D | arm64.py | 25 ('fp', ctypes.c_double),
|
H A D | x86.py | 21 ('fp', ctypes.c_double),
|
/external/python/cpython2/Lib/ctypes/ |
H A D | __init__.py | 198 class c_double(_SimpleCData): class in inherits:_SimpleCData 200 _check_size(c_double) 204 if sizeof(c_longdouble) == sizeof(c_double): 205 c_longdouble = c_double
|
/external/python/cpython3/Lib/ctypes/ |
H A D | __init__.py | 193 class c_double(_SimpleCData): class in inherits:_SimpleCData 195 _check_size(c_double) 199 if sizeof(c_longdouble) == sizeof(c_double): 200 c_longdouble = c_double
|