Searched refs:value (Results 126 - 150 of 497) sorted by relevance

1234567891011>>

/gem5/ext/pybind11/tests/
H A Dpybind11_tests.cpp79 .def("get_value", &UserType::value, "Get value using a method")
80 .def("set_value", &UserType::set, "Set value using a method")
81 .def_property("value", &UserType::value, &UserType::set, "Get/set value using a property")
82 .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_buffers.py15 assert str(excinfo.value) == "Incompatible buffer format!"
85 buf.value = 0x12345678
86 value = struct.unpack('i', bytearray(buf))[0]
87 assert value == 0x12345678
H A Dtest_docstring_options.cpp53 int value; member in struct:DocstringTestFoo
54 void setValue(int v) { value = v; }
55 int getValue() const { return value; }
H A Dtest_factory_constructors.py17 assert x1.value == "3"
19 assert y1.value == "(empty)"
21 assert z1.value == "hi!"
26 assert x2.value == "(empty2)"
28 assert y2.value == "7"
30 assert z2.value == "hi again"
35 assert x3.value == "(empty3)"
37 assert y3.value == "42"
39 assert z3.value == "bye"
43 assert str(excinfo.value)
[all...]
H A Dtest_stl_binders.py85 assert "NumPy type info missing for " in str(excinfo.value)
176 assert vnc[i].value == i + 1
179 assert j.value == i
184 assert dnc[i].value == i + 1
188 assert(j.value == i)
194 assert mnc[i].value == 10 * i
198 assert v.value == 10 * k
199 vsum += v.value
206 assert mnc[i].value == 10 * i
210 assert v.value
[all...]
H A Dtest_buffers.cpp131 int32_t value = 0; member in struct:Buffer
134 return py::buffer_info(&value, sizeof(value),
140 .def_readwrite("value", &Buffer::value)
145 std::unique_ptr<int32_t> value; member in class:ConstBuffer
148 int32_t get_value() const { return *value; }
149 void set_value(int32_t v) { *value = v; }
152 return py::buffer_info(value.get(), sizeof(*value),
[all...]
H A Dtest_local_bindings.py15 assert "incompatible function arguments" in str(excinfo.value)
19 assert "incompatible function arguments" in str(excinfo.value)
55 assert str(excinfo.value) == 'generic_type: type "NonLocalType" is already registered!'
63 assert str(excinfo.value) == (
77 # Cross module value loading:
107 assert str(excinfo.value) == 'generic_type: type "NonLocalMap" is already registered!'
111 assert str(excinfo.value) == 'generic_type: type "NonLocalVec" is already registered!'
115 assert str(excinfo.value) == 'generic_type: type "NonLocalMap2" is already registered!'
168 assert msg(excinfo.value) == """
223 assert "incompatible function arguments" in str(excinfo.value)
[all...]
/gem5/src/mem/slicc/symbols/
H A DSymbol.py55 def __setitem__(self, key, value):
58 key, value, self.pairs[key])
59 super(Symbol, self).__setitem__(key, value)
H A DTransition.py57 for var,value in action.resources.iteritems():
58 num = int(value)
60 num += int(value)
/gem5/ext/nomali/lib/
H A Dgpublock.hh61 * @return Register value (32-bits)
69 * @param value New value (32-bits)
71 virtual void writeReg(RegAddr addr, uint32_t value);
82 * @return Register value (32-bits)
95 * @param value New value (32-bits)
97 virtual void writeRegRaw(RegAddr addr, uint32_t value);
148 void writeReg(RegAddr addr, uint32_t value) override;
179 * @return The value o
[all...]
H A Djobslot.cc65 JobSlot::writeReg(RegAddr addr, uint32_t value) argument
67 switch (addr.value) {
69 jobCommand(value);
73 regs[addr] = value;
82 GPUBlock::writeReg(addr, value);
111 regs[RegAddr(JSn_STATUS)] = STATUS_ACTIVE.value;
132 0); // Time stamp counter value
141 regs[RegAddr(JSn_STATUS)] = status.value;
/gem5/src/base/
H A Drandom.hh82 typename std::enable_if<std::is_integral<T>::value, T>::type
91 typename std::enable_if<std::is_floating_point<T>::value, T>::type
100 typename std::enable_if<std::is_integral<T>::value, T>::type
H A Dtrie.hh57 Value *value; member in struct:Trie::Node
63 key(_key & _mask), mask(_mask), value(_val),
96 parent, this, key, mask, value);
138 * A utility method which extends a mask value one more bit towards the
165 if (node->value)
181 * Method which inserts a key/value pair into the trie.
182 * @param key The key which can later be used to look up this value.
184 * @param val A pointer to the value to store in the trie.
185 * @return A Handle corresponding to this value.
190 // We use NULL value pointer
[all...]
H A Dbitfield.hh108 * Sign-extend an N-bit value to 64 bits.
133 * Overloaded for access to only one bit in value
180 static_assert(std::is_integral<T>::value, "Expecting an integer type");
237 * Returns the number of set ones in the provided value.
286 * Count trailing zeros in a 32-bit value.
288 * @param An input value
289 * @return The number of trailing zeros or 32 if the value is zero.
291 inline int ctz32(uint32_t value) argument
293 return value ? __builtin_ctzl(value)
302 ctz64(uint64_t value) argument
[all...]
H A Dinifile.cc74 return value;
80 const std::string &value,
87 table[entryName] = new Entry(value);
91 ei->second->appendValue(value);
95 ei->second->setValue(value);
110 // if "+=" rather than just "=" then append value
114 string value = assignment.substr(offset + 1); local
117 eat_white(value);
119 addEntry(entryName, value, append);
161 // Take string of the form "<section>:<parameter>=<value>" an
79 addEntry(const std::string &entryName, const std::string &value, bool append) argument
[all...]
/gem5/src/sim/
H A Dmathexpr.hh67 * @return The value for this expression
92 Node() : op(nInvalid), l(0), r(0), value(0) {}
101 return std::to_string(value);
109 double value; member in class:MathExpr::Node
/gem5/ext/googletest/googletest/test/
H A Dgtest_env_var_test.py55 def SetEnvVar(env_var, value):
56 """Sets the env variable to 'value'; unsets it when 'value' is None."""
58 if value is not None:
59 environ[env_var] = value
/gem5/src/cpu/
H A DTimingExpr.py54 """Literal 64 bit unsigned value"""
58 value = Param.UInt64("literal value") variable in class:TimingExprLiteral
60 def set_params(self, value):
61 self.value = value
66 value = 0 variable in class:TimingExpr0
/gem5/util/stats/
H A Dinfo.py51 def value(stat, *args): function
59 val = value(stat, run, i)
133 return value(self.proxy, run, self.index)
166 def WrapValue(value):
167 if isinstance(value, (int, long, float)):
168 return ScalarConstant(value)
169 if isinstance(value, (list, tuple)):
170 return VectorConstant(value)
171 if isinstance(value, Value):
172 return value
[all...]
/gem5/configs/dram/
H A Dsweep.py142 nbr_banks = system.mem_ctrls[0].banks_per_rank.value
145 burst_size = int((system.mem_ctrls[0].devices_per_rank.value *
146 system.mem_ctrls[0].device_bus_width.value *
147 system.mem_ctrls[0].burst_length.value) / 8)
150 page_size = system.mem_ctrls[0].devices_per_rank.value * \
151 system.mem_ctrls[0].device_rowbuffer_size.value
155 itt = system.mem_ctrls[0].tBURST.value * 1000000000000
/gem5/src/python/m5/
H A Doptions.py42 def __call__(self, option, opt_str, value, parser):
43 values = value.split(self.split)
121 def __setattr__(self, attr, value):
123 super(OptionParser, self).__setattr__(attr, value)
125 defaults = { attr : value }
128 self[attr] = value
130 super(OptionParser, self).__setattr__(attr, value)
/gem5/ext/pybind11/include/pybind11/
H A Dstl.h58 std::is_lvalue_reference<T>::value, remove_reference_t<U> &, remove_reference_t<U> &&>;
60 /// Forwards a value U as rvalue or lvalue according to whether T is rvalue or lvalue; typically
75 value.clear();
80 value.insert(cast_op<Key &&>(std::move(conv)));
87 if (!std::is_lvalue_reference<T>::value)
90 for (auto &&value : src) {
91 auto value_ = reinterpret_steal<object>(key_conv::cast(forward_like<T>(value), policy, parent));
109 value.clear();
116 value.emplace(cast_op<Key &&>(std::move(kconv)), cast_op<Value &&>(std::move(vconv)));
126 if (!std::is_lvalue_reference<T>::value) {
132 auto value = reinterpret_steal<object>(value_conv::cast(forward_like<T>(kv.second), policy_value, parent)); local
[all...]
H A Dpytypes.h158 bool rich_compare(object_api const &other, int value) const;
350 const object& value() const { return m_value; } function in class:error_already_set
367 template <typename T, detail::enable_if_t<std::is_base_of<object, T>::value, int> = 0>
370 template <typename T, detail::enable_if_t<!std::is_base_of<object, T>::value, int> = 0>
433 inline void setattr(handle obj, handle name, handle value) { argument
434 if (PyObject_SetAttr(obj.ptr(), name.ptr(), value.ptr()) != 0) { throw error_already_set(); }
437 inline void setattr(handle obj, const char *name, handle value) { argument
438 if (PyObject_SetAttrString(obj.ptr(), name, value.ptr()) != 0) { throw error_already_set(); }
450 inline handle get_function(handle value) { argument
451 if (value) {
488 operator =(T &&value) argument
491 operator =(T &&value) argument
645 T value; member in struct:arrow_proxy
647 arrow_proxy(T &&value) argument
711 PyObject *key = nullptr, *value = nullptr; member in class:dict_readonly
878 object value = {}; member in class:iterator
1031 bool_(bool value) argument
1037 const auto value = PyObject_IsTrue(op); local
1072 int_(T value) argument
1102 float_(float value) argument
1151 capsule(const void *value, const char *name = nullptr, void (*destructor)(PyObject *) = nullptr) argument
1158 capsule(const void *value, void (*destruct)(PyObject *)) argument
1164 capsule(const void *value, void (*destructor)(void *)) argument
[all...]
/gem5/src/cpu/kvm/
H A Dbase.hh240 * Get the value of the hardware cycle counter in the guest.
369 void setOneReg(uint64_t id, uint64_t value) { setOneReg(id, &value); } argument
370 void setOneReg(uint64_t id, uint32_t value) { setOneReg(id, &value); } argument
373 uint64_t value; local
374 getOneReg(id, &value);
375 return value;
378 uint32_t value; local
379 getOneReg(id, &value);
[all...]
/gem5/ext/pybind11/include/pybind11/detail/
H A Dcommon.h205 struct _Py_atomic_address { void *value; }; member in struct:_Py_atomic_address
303 /** This is the default return value policy, which falls back to the policy
304 return_value_policy::take_ownership when the return value is a pointer.
311 value is a pointer. This is the default conversion policy for function
327 /** Use std::move to move the return value contents into a new instance
344 considered to be the the owner of the return value (the child).
394 * An instance has two possible value/holder layouts.
406 * pointer to allocated space of the required space to hold a sequence of value pointers and
413 * status_holder_constructed) and whether the value pointer is registered (&
440 static_assert(std::is_standard_layout<instance>::value, "Interna
691 template <typename T, typename SFINAE = void> struct is_fmt_numeric { static constexpr bool value = false; }; member in struct:is_fmt_numeric
693 static constexpr bool value = true; member in struct:is_fmt_numeric
702 static constexpr const char value[2] = { c, '\\0' }; member in struct:format_descriptor
709 T, detail::enable_if_t<std::is_arithmetic<T>::value>>::value[2]; member in class:format_descriptor
715 PyObject *type, *value, *trace; member in struct:error_scope
[all...]

Completed in 35 milliseconds

1234567891011>>