Searched refs:convert (Results 1 - 25 of 27) sorted by relevance

12

/gem5/src/python/m5/util/
H A Dsmartdict.py50 from .convert import *
55 various convert functions to attempt to convert values to useable
67 def convert(self, other): member in class:Variable
79 return self.convert(other) < other
81 return self.convert(other) <= other
83 return self.convert(other) == other
85 return self.convert(other) != other
87 return self.convert(other) > other
89 return self.convert(othe
[all...]
H A Dconvert.py103 def convert(val): function in function:toNum
108 "cannot convert '%s' to %s" % (value, target_type))
113 return convert(value)
119 return convert(value)
122 return convert(value) * prefixes[prefix]
171 raise ValueError("cannot convert '%s' to clock period" % value)
185 raise ValueError("cannot convert '%s' to clock period" % value)
H A D__init__.py48 from . import convert
H A Dcode_formatter.py220 def convert(match): function in function:code_formatter.__call__
276 d = code_formatter.pattern.sub(convert, format)
/gem5/src/systemc/tests/systemc/misc/stars/star116568/
H A Dtest.cpp46 void convert(const sc_lv<8>& I, sc_int<8>& O) { function
58 convert(sc_lv<8>(A.read()),tmp);
/gem5/src/python/m5/
H A Dticks.py43 from m5.util import convert
51 tps = round(convert.anyToFrequency(ticksPerSecond))
64 raise TypeError("can't convert '%s' to type tick" % type(value))
66 # once someone needs to convert to seconds, the global frequency
75 # convert the value from time to ticks
H A Dparams.py52 # value (if any). The convert() method on these objects is used to
206 def convert(self, value): member in class:ParamDesc
339 def convert(self, value): member in class:VectorParamDesc
342 tmp_list = [ ParamDesc.convert(self, v) for v in value ]
345 tmp_list = [ ParamDesc.convert(self, v) \
349 tmp_list = [ ParamDesc.convert(self, value) ]
379 tmp_list = [ ParamDesc.convert(self, v) for v in value ]
382 tmp_list = [ ParamDesc.convert(self, v) \
386 tmp_list = [ ParamDesc.convert(self, value) ]
604 self.value = convert
[all...]
H A DSimObject.py567 value = param.convert(value)
1300 value = param.convert(value)
1397 # need to convert raw SimObject sequences to
/gem5/ext/pybind11/tests/
H A Dtest_builtin_casters.py216 """Casters produced with PYBIND11_TYPE_CASTER() should convert nullptr to None"""
275 convert, noconvert = m.bool_passthrough, m.bool_passthrough_noconvert
281 pytest.raises(TypeError, convert, v)
284 assert convert(True) is True
285 assert convert(False) is False
291 assert convert(None) is False
312 assert convert(A(True)) is True
313 assert convert(A(False)) is False
319 convert, noconvert = m.bool_passthrough, m.bool_passthrough_noconvert
322 assert convert(n
[all...]
H A Dtest_methods_and_attributes.cpp117 bool load(handle src, bool convert) { argument
119 std::string(convert ? "WITH" : "WITHOUT") + " conversion allowed. "
132 bool load(handle src, bool convert) { argument
134 std::string(convert ? "WITH" : "WITHOUT") + " conversion allowed. "
147 bool load(handle, bool convert) { argument
148 return convert;
/gem5/ext/pybind11/include/pybind11/
H A Dstl.h71 bool load(handle src, bool convert) { argument
78 if (!conv.load(entry, convert))
105 bool load(handle src, bool convert) { argument
113 if (!kconv.load(it.first.ptr(), convert) ||
114 !vconv.load(it.second.ptr(), convert))
146 bool load(handle src, bool convert) { argument
154 if (!conv.load(it, convert))
211 bool load(handle src, bool convert) { argument
220 if (!conv.load(it, convert))
273 bool load(handle src, bool convert) { argument
339 load_alternative(handle src, bool convert, type_list<U, Us...>) argument
350 load(handle src, bool convert) argument
[all...]
H A Dcomplex.h44 bool load(handle src, bool convert) { argument
47 if (!convert && !PyComplex_Check(src.ptr()))
H A Dfunctional.h25 bool load(handle src, bool convert) { argument
27 // Defer accepting None to other overloads (if we aren't in convert mode):
28 if (!convert) return false;
H A Dcast.h491 bool load(handle src, bool convert) { argument
492 return load_impl<type_caster_generic>(src, convert);
588 bool try_implicit_casts(handle src, bool convert) { argument
591 if (sub_caster.load(src, convert)) {
639 PYBIND11_NOINLINE bool load_impl(handle src, bool convert) { argument
643 // Defer accepting None to other overloads (if we aren't in convert mode):
644 if (!convert) return false;
690 if (this_.try_implicit_casts(src, convert))
695 if (convert) {
932 bool load(handle src, bool convert) { retur
[all...]
H A Dattr.h126 bool convert : 1; ///< True if the argument is allowed to convert when loading member in struct:argument_record
129 argument_record(const char *name, const char *descr, handle value, bool convert, bool none) argument
130 : name(name), descr(descr), value(value), convert(convert), none(none) { }
360 r->args.emplace_back("self", nullptr, handle(), true /*convert*/, false /*none not allowed*/);
369 r->args.emplace_back("self", nullptr /*descr*/, handle() /*parent*/, true /*convert*/, false /*none not allowed*/);
384 pybind11_fail("arg(): could not convert default argument "
387 pybind11_fail("arg(): could not convert default argument "
H A Deigen.h256 bool load(handle src, bool convert) { argument
257 // If we're in no-convert mode, only load if given an array of the correct type
258 if (!convert && !isinstance<array_t<Scalar>>(src))
426 bool load(handle src, bool convert) { argument
451 // We need to copy: If we need a mutable reference, or we're not supposed to convert
452 // (either because we're in the no-convert overload pass, or because we're explicitly
454 if (!convert || need_writeable) return false;
H A Dpybind11.h455 // We do this in two passes: in the first pass, we load arguments with `convert=false`;
461 // However, if there are no overloads, we can just skip the no-convert pass entirely
529 call.args_convert.push_back(arg_rec ? arg_rec->convert : true);
561 call.args_convert.push_back(arg.convert);
614 // We're in the first no-convert pass, so swap out the conversion flags for a
772 std::string msg = "Unable to convert function return value to a "
/gem5/src/systemc/tests/tlm/endian_conv/
H A Dtest_endian_conv.cpp49 #define convert(function) \ macro
164 case 0: convert(tlm_to_hostendian_generic); break;
165 case 1: convert(tlm_to_hostendian_word); break;
166 case 2: convert(tlm_to_hostendian_aligned); break;
167 case 3: convert(tlm_to_hostendian_single); break;
168 case 4: convert(local_single_tohe); break;
240 case 0: convert(tlm_from_hostendian_generic); break;
241 case 1: convert(tlm_from_hostendian_word); break;
242 case 2: convert(tlm_from_hostendian_aligned); break;
243 case 3: convert(tlm_from_hostendian_singl
[all...]
/gem5/src/systemc/tests/systemc/datatypes/fx/constructors/
H A Darray.cpp68 To convert(From val) { function
95 b = static_cast<U>(convert<U>(b) * i * b_mul);
/gem5/src/systemc/tests/systemc/datatypes/fx/fast_constructors/
H A Darray.cpp69 To convert(From val) { function
96 b = static_cast<U>(convert<U>(b) * i * b_mul);
/gem5/configs/ruby/
H A DAMD_Base_Constructor.py39 from m5.util import addToPath, convert
/gem5/configs/common/
H A DFileSystemConfig.py33 from m5.util.convert import *
H A DHMC.py315 slar = convert.toMemorySize(opt.serial_link_addr_range)
395 arv = convert.toMemorySize(opt.hmc_dev_vault_size)
H A DFSConfig.py514 convert.toMemorySize(mdesc.mem()) - convert.toMemorySize('3GB')
/gem5/configs/example/arm/
H A Dfs_bigLITTLE.py70 """Helper function to convert a latency from string format to Ticks"""
72 return m5.ticks.fromSeconds(m5.util.convert.anyToLatency(value))

Completed in 58 milliseconds

12