Home
last modified time | relevance | path

Searched refs:c_float (Results 1 – 23 of 23) sorted by relevance

/third_party/python/Lib/ctypes/test/
Dtest_byteswap.py130 self.assertIs(c_float.__ctype_le__, c_float)
131 self.assertIs(c_float.__ctype_be__.__ctype_le__, c_float)
133 self.assertIs(c_float.__ctype_be__, c_float)
134 self.assertIs(c_float.__ctype_le__.__ctype_be__, c_float)
135 s = c_float(math.pi)
139 s = c_float.__ctype_le__(math.pi)
142 s = c_float.__ctype_be__(math.pi)
191 ("l", c_float),
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]
110 f.restype = c_float
121 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_double]
133 f.argtypes = [c_byte, c_short, c_int, c_long, c_float, c_longdouble]
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_pep3118.py163 (c_float, "<f", (), c_float),
179 (c_float * 4 * 3 * 2, "<f", (2,3,4), c_float),
Dtest_cfuncs.py139 self._dll.tf_f.restype = c_float
140 self._dll.tf_f.argtypes = (c_float,)
145 self._dll.tf_bf.restype = c_float
146 self._dll.tf_bf.argtypes = (c_byte, c_float)
Dtest_callbacks.py23 if typ == c_float:
31 if typ == c_float:
77 self.check_type(c_float, math.e)
78 self.check_type(c_float, -math.e)
Dtest_repr.py7 c_float, c_double, c_longdouble, c_bool]:
Dtest_unaligned_structures.py14 c_float, c_double,
Dtest_structures.py66 "f": c_float,
241 _fields_ = [("phi", c_float), ("rho", c_float)]
503 ('data', c_float * 2),
508 ('more_data', c_float * 2),
Dtest_parameters.py219 c_float,
239 self.assertEqual(repr(c_float.from_param(1.5)), "<cparam 'f' (1.5)>")
Dtest_pointers.py7 c_long, c_ulong, c_longlong, c_ulonglong, c_double, c_float]
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/pulseaudio/src/tests/
Dvolume-ui.py99 _get_balance.restype = c_float
103 _get_fade.restype = c_float
108 _set_balance.argtypes = [c_void_p, c_void_p, c_float]
112 _set_fade.argtypes = [c_void_p, c_void_p, c_float]
/third_party/mindspore/mindspore/parallel/
D_dp_allreduce_fusion.py152 c_array_size_list = _c_array(ctypes.c_float, data_size_list)
/third_party/python/Lib/ctypes/
D__init__.py192 class c_float(_SimpleCData): class
194 _check_size(c_float)
Dwintypes.py15 FLOAT = ctypes.c_float
/third_party/python/Lib/multiprocessing/
Dsharedctypes.py32 'f': ctypes.c_float, 'd': ctypes.c_double
/third_party/protobuf/python/google/protobuf/internal/
Dtype_checkers.py70 return ctypes.c_float(original).value
/third_party/python/Doc/library/
Dctypes.rst250 | :class:`c_float` | :c:type:`float` | float |
530 >>> f = c_float()
673 ... ("b", c_float),
2217 .. class:: c_float
/third_party/flatbuffers/tests/
Dpy_test.py693 float32Val = N.Float32Flags.py_type(ctypes.c_float(3.14159).value)
/third_party/python/Doc/whatsnew/
D2.5.rst1698 :func:`c_float`, :func:`c_double`, :func:`c_char_p` (equivalent to :c:type:`char
/third_party/python/Misc/
DHISTORY8184 ctypes.c_float that caused an incorrect exception to be returned in the