Searched refs:format (Results 26 - 50 of 89) sorted by relevance

1234

/gem5/site_scons/gem5_scons/
H A D__init__.py69 self.format = self.tool_color + (" [%8s] " % tool) \
125 return self.format % (com_pfx, fmt(srcs), fmt(tgts))
/gem5/ext/pybind11/tests/
H A Dpybind11_tests.cpp82 .def("__repr__", [](const UserType& u) { return "UserType({})"_s.format(u.value()); });
87 .def("__repr__", [](const IncType& u) { return "IncType({})"_s.format(u.value()); });
H A Dtest_numpy_dtypes.py15 'formats': ['?', 'u4', 'f4', 'f{}'.format(ld.itemsize)],
35 return dt_fmt().format(ld.itemsize, simple_ld_off, simple_ld_off + ld.itemsize)
40 return "[('bool_', '?'), ('uint_', '{e}u4'), ('float_', '{e}f4'), ('ldbl_', '{e}f{}')]".format(
52 return dt_fmt().format(ld.itemsize, partial_ld_off, partial_ld_off + ld.itemsize)
60 return "{{'names':['a'], 'formats':[{}], 'offsets':[{}], 'itemsize':{}}}".format(
101 "[('a', {}), ('b', {})]".format(simple_dtype_fmt(), packed_dtype_fmt()),
107 "'offsets':[0,12,20,24], 'itemsize':56}}").format(e=e),
219 "'offsets':[0,12,20,24], 'itemsize':56}}").format(e=e)
H A Dtest_pytypes.cpp27 py::print("list item {}: {}"_s.format(index++, item));
53 py::print("key: {}, value={}"_s.format(item.first, item.second));
74 auto s1 = "{} + {} = {}"_s.format(1, 2, 3);
75 auto s2 = "{a} + {b} = {c}"_s.format("a"_a=1, "b"_a=2, "c"_a=3);
94 py::print("destructing capsule: {}"_s.format((size_t) ptr));
102 py::print("destructing capsule ({}, '{}')"_s.format(
108 py::print("created capsule ({}, '{}')"_s.format((size_t) contents, capsule.name()));
280 py::print("{a} + {b} = {c}"_s.format("a"_a="py::print", "b"_a="str.format", "c"_a="this"));
H A Dtest_numpy_dtypes.cpp145 py::format_descriptor<T>::format(),
322 m.def("get_format_unbound", []() { return py::format_descriptor<UnboundStruct>::format(); });
326 py::format_descriptor<SimpleStruct>::format(),
327 py::format_descriptor<PackedStruct>::format(),
328 py::format_descriptor<NestedStruct>::format(),
329 py::format_descriptor<PartialStruct>::format(),
330 py::format_descriptor<PartialNestedStruct>::format(),
331 py::format_descriptor<StringStruct>::format(),
332 py::format_descriptor<ArrayStruct>::format(),
333 py::format_descriptor<EnumStruct>::format(),
[all...]
H A Dtest_buffers.cpp83 if (info.format != py::format_descriptor<float>::format() || info.ndim != 2)
84 throw std::runtime_error("Incompatible buffer format!");
135 py::format_descriptor<int32_t>::format(), 1);
153 py::format_descriptor<int32_t>::format(), 1);
H A Dtest_opaque_types.py14 assert k == "Element {}".format(i)
H A Dtest_smart_ptr.py15 assert capture == "MyObject1[{i}]\n".format(i=i) * 4
30 assert capture == "MyObject1[{i}]\n".format(i=i) * (4 if isinstance(o, int) else 8)
34 expected_values = ['MyObject1[{}]'.format(i) for i in range(1, 7)] + ['MyObject1[7]'] * 4
50 assert capture == "MyObject2[{i}]\n".format(i=i) * 4
71 assert capture == "MyObject3[{i}]\n".format(i=i) * 4
H A Dtest_numpy_vectorize.cpp15 py::print("my_func(x:int={}, y:float={:.0f}, z:float={:.0f})"_s.format(x, y, z));
/gem5/src/mem/slicc/ast/
H A DOperatorExprAST.py77 self.error("No operator matched with {0}!" .format(self.op))
89 format(ltype, rtype, self.op))
/gem5/util/maint/
H A Dcreate_patches.sh70 3. Generate a set of patches in git format.
149 git format-patch -p -o "$PATCH_DIR" "$UPSTREAM"
/gem5/ext/dsent/model/electrical/
H A DMultiplexerCrossbar.cc94 createInputPort(String::format("Sel%d_%d", i, j));
124 event_info->setStaticTransitionInfo(String::format("Sel%d_%d", j, k));
155 portConnect(muxs[i], "Sel" + (String)j, String::format("Sel%d_%d", i, j));
223 propagatePortTransitionInfo(muxi, "Sel" + (String)j, String::format("Sel%d_%d", i, j));
/gem5/src/arch/sparc/insts/
H A Dnop.cc83 // Primary format for integer operate instructions:
84 def format Nop(code, *opt_flags) {{
/gem5/configs/learning_gem5/part3/
H A Dsimple_ruby.py112 print('Exiting @ tick {} because {}'.format(
/gem5/src/sim/
H A DProcess.py47 table in an architecture-specific format')
/gem5/ext/fputils/tests/
H A Dtest_helper.c109 static void __attribute__((format (printf, 4, 5)))
/gem5/ext/nomali/tests/
H A Dtest_helpers.c99 static void __attribute__((format (printf, 4, 5)))
/gem5/ext/pybind11/include/pybind11/
H A Dcomplex.h25 static std::string format() { return std::string(value); } function in struct:format_descriptor
H A Dnumpy.h449 dtype descr(_dtype_from_pep3118()(PYBIND11_STR_TYPE(info.format)));
450 // If info.itemsize == 0, use the value calculated from the format string
454 explicit dtype(const std::string &format) {
455 m_ptr = from_args(pybind11::str(format)).release().ptr();
458 dtype(const char *format) : dtype(std::string(format)) { }
510 struct field_descr { PYBIND11_STR_TYPE name; object format; pybind11::int_ offset; }; member in struct:field_descr
516 auto format = spec[1].cast<tuple>()[0].cast<dtype>(); local
518 if (!len(name) && format.kind() == 'V')
520 field_descriptors.push_back({(PYBIND11_STR_TYPE) name, format
[all...]
/gem5/ext/googletest/googletest/scripts/
H A Dgen_gtest_pred_impl.py189 def Iter(n, format, sep=''):
190 """Given a positive integer n, a format string that contains 0 or
191 more '%s' format specs, and optionally a separator string, returns
192 the join of n strings, each formatted with the format string on an
200 # How many '%s' specs are in format?
201 spec_count = len(format.split('%s')) - 1
202 return sep.join([format % (spec_count * (i,)) for i in OneTo(n)])
/gem5/src/python/m5/util/
H A Dcode_formatter.py214 format = args[0]
269 lines = format[:i].splitlines(True)
273 raise ValueError('Invalid format string: line %d, col %d' %
276 d = code_formatter.pattern.sub(convert, format)
/gem5/ext/systemc/src/sysc/utils/
H A Dsc_string.cpp375 sc_string_old sc_string_old::to_string(const char* format, ...) argument
382 va_start(argptr, format);
383 int cnt = sc_vsnprintf(buffer, 1024, format, argptr);
394 cnt = sc_vsnprintf(buf, buf_size, format, argptr);
431 // if the type of the argument is incompatible with format
452 if(old_result == result) //error in format
458 else // error in format
/gem5/tests/configs/
H A Darm_generic.py109 .format(self.num_cpus),
/gem5/tests/gem5/
H A Dsuite.py86 _name = '{given_name}-{isa}-{opt}'.format(
/gem5/ext/dsent/libutil/
H A DString.cc33 String String::format(const String& format_, ...) function in class:LibUtil::String
45 String String::format(const String& format_, va_list args_) function in class:LibUtil::String

Completed in 32 milliseconds

1234