/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_pep3118.py | 136 if c_longdouble is c_double: 161 (c_double, "<d", None, c_double), 175 (c_double * 4, "<d", (4,), c_double),
|
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_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]:
|
/external/python/cpython3/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 | 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_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_repr.py | 7 c_float, c_double, c_longdouble, c_bool]:
|
/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))
|
/external/rust/crates/rusqlite/src/types/ |
D | mod.rs | 121 use std::os::raw::{c_double, c_int}; 255 assert!((1.5 - row.get::<_, c_double>(3).unwrap()).abs() < EPSILON); in test_mismatched_types() 257 assert!(row.get::<_, Option<c_double>>(4).unwrap().is_none()); in test_mismatched_types() 271 row.get::<_, c_double>(0).err().unwrap() in test_mismatched_types() 290 row.get::<_, c_double>(1).err().unwrap() in test_mismatched_types() 331 row.get::<_, c_double>(4).err().unwrap() in test_mismatched_types()
|
/external/llvm-project/flang/module/ |
D | iso_c_binding.f90 | 53 c_double = 8, & variable 62 c_double_complex = c_double, &
|
/external/adhd/cras/src/server/rust/src/ |
D | rate_estimator_bindings.rs | 19 smooth_factor: libc::c_double, in rate_estimator_create() argument 91 pub unsafe extern "C" fn rate_estimator_get_rate(re: *const RateEstimator) -> libc::c_double { in rate_estimator_get_rate() argument
|
/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
|
/external/python/cpython3/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
|
/external/rust/crates/libc/src/unix/bsd/netbsdlike/netbsd/ |
D | powerpc.rs | 12 pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_double>() - 1;
|
/external/rust/crates/libc/src/ |
D | sgx.rs | 10 pub type c_double = f64; typedef
|
D | switch.rs | 10 pub type c_double = f64; typedef
|