Searched refs:value (Results 1 - 25 of 497) sorted by relevance

1234567891011>>

/gem5/src/sim/
H A Dsyscall_return.hh37 * This class represents the return value from an emulated system call,
40 * On some platforms, the return value and errno are encoded in a
41 * single signed integer. A value less than zero but greater than
42 * -4096 indicates an error, and the value is the negation of the
43 * errno value. Otherwise, the call was successful and the integer is
44 * the return value. (Large negative numbers are considered
49 * Other platforms use a more complex interface, returning a value and
64 /// value is expected, e.g., as the return value from a system
67 : value(
111 int64_t value; member in class:SyscallReturn
[all...]
H A Dbyteswap.hh136 template <typename T> inline T betole(T value) {return swap_byte(value);} argument
137 template <typename T> inline T letobe(T value) {return swap_byte(value);} argument
143 template <typename T> inline T htole(T value) {return swap_byte(value);} argument
144 template <typename T> inline T letoh(T value) {return swap_byte(value);} argument
145 template <typename T> inline T htobe(T value) {return value;} argument
146 betoh(T value) argument
149 htole(T value) argument
150 letoh(T value) argument
151 htobe(T value) argument
152 betoh(T value) argument
158 htog(T value, ByteOrder guest_byte_order) argument
165 gtoh(T value, ByteOrder guest_byte_order) argument
175 gtole(T value) argument
177 letog(T value) argument
179 gtobe(T value) argument
181 betog(T value) argument
183 htog(T value) argument
185 gtoh(T value) argument
192 gtole(T value) argument
194 letog(T value) argument
196 gtobe(T value) argument
198 betog(T value) argument
200 htog(T value) argument
202 gtoh(T value) argument
[all...]
/gem5/ext/drampower/src/
H A DParameter.cc47 const string& value) : id(id), type(type), value(value)
63 return fromString<int>(value);
68 bool isHex = value.size() > 1 && value[0] == '0' && value[1] == 'x';
70 return fromString<unsigned int>(value, isHex ? std::hex : std::dec);
77 bool isHex = value.size() > 1 && value[
46 Parameter(const string& id, const string& type, const string& value) argument
99 HexParameter(const string& id, int value) argument
108 StringParameter(const string& id, const string& value) argument
[all...]
/gem5/src/python/m5/util/
H A Dconvert.py94 def assertStr(value):
95 if not isinstance(value, str):
96 raise TypeError("wrong type '%s' should be str" % type(value))
100 def toNum(value, target_type, units, prefixes, converter):
101 assertStr(value)
108 "cannot convert '%s' to %s" % (value, target_type))
110 if units and not value.endswith(units):
113 return convert(value)
115 value = value[
[all...]
/gem5/src/mem/slicc/ast/
H A DPairAST.py30 def __init__(self, slicc, key, value):
33 self.value = value
36 return '[%s=%s]' % (self.key, self.value)
H A DEnumExprAST.py31 def __init__(self, slicc, type_ast, value):
35 assert value
38 self.value = value
41 return "[EnumExpr: %s:%s]" % (self.type_ast, self.value)
45 code('${{self.type_ast.type.c_ident}}_${{self.value}}')
48 # Make sure the enumeration value exists
49 if self.value not in self.type_ast.type.enums:
51 self.type_ast, self.value)
/gem5/util/stats/
H A Ddisplay.py30 def __init__(self, value, precision, percent = False):
31 self.value = float(value)
35 if isinstance(self.value, str):
36 if self.value.lower() == 'nan':
37 value = 'NaN'
38 if self.value.lower() == 'inf':
39 value = 'Inf'
43 elif self.value == 0.0:
45 elif self.value
[all...]
H A Dprint.py33 def __init__(self, value, precision, percent = False):
34 self.value = value
38 if isinstance(self.value, str):
39 if self.value.lower() == 'nan':
40 value = 'NaN'
41 if self.value.lower() == 'inf':
42 value = 'Inf'
46 elif self.value == 0.0:
48 elif self.value
[all...]
/gem5/src/base/
H A Dinifile.test.cc75 std::string value; local
77 auto ret = simConfigDB.find("General", "Test2", value);
79 ASSERT_STREQ(value.c_str(), "bar");
81 ret = simConfigDB.find("Junk", "Test3", value);
83 ASSERT_STREQ(value.c_str(), "yo");
85 ret = simConfigDB.find("Junk", "Test4", value);
87 ASSERT_STREQ(value.c_str(), "mama mia");
89 ret = simConfigDB.find("General", "Test1", value);
91 ASSERT_STREQ(value.c_str(), "BARasdf");
93 ret = simConfigDB.find("General", "Test3", value);
103 std::string value; local
[all...]
H A Dsat_counter.test.cc38 * Test if the maximum value is indeed the maximum value reachable.
54 * Test if the minimum value is indeed the mimimum value reachable.
69 * Test initializing the counter with a value, updating it and then resetting.
92 for (double value = 0.0; value <= max_value; value++, counter++) {
93 const double saturation = value / max_value;
110 // Make sure the value adde
123 int value = 0; local
153 int value = initial_value; local
282 int value = 0; local
[all...]
/gem5/ext/pybind11/tests/
H A Dtest_copy_move.cpp2 tests/test_copy_move_policies.cpp -- 'copy' and 'move' return value policies
40 MoveOnlyInt(int v) : value{std::move(v)} { print_created(this, value); }
41 MoveOnlyInt(MoveOnlyInt &&m) { print_move_created(this, m.value); std::swap(value, m.value); }
42 MoveOnlyInt &operator=(MoveOnlyInt &&m) { print_move_assigned(this, m.value); std::swap(value, m.value); return *this; }
47 int value; member in class:MoveOnlyInt
59 int value; member in class:MoveOrCopyInt
69 int value; member in class:CopyOnlyInt
87 CopyOnlyInt value; member in struct:type_caster
180 int value = 1; member in struct:PrivateOpNew
[all...]
H A Dtest_enum.cpp20 .value("EOne", EOne, "Docstring for EOne")
21 .value("ETwo", ETwo, "Docstring for ETwo")
22 .value("EThree", EThree, "Docstring for EThree")
31 .value("Two", ScopedEnum::Two)
32 .value("Three", ScopedEnum::Three);
45 .value("Read", Flags::Read)
46 .value("Write", Flags::Write)
47 .value("Execute", Flags::Execute)
65 .value("EFirstMode", ClassWithUnscopedEnum::EFirstMode)
66 .value("ESecondMod
[all...]
/gem5/src/unittest/
H A Dstrnumtest.cc50 valtype value; \
52 if (to_number(s, value)) { \
54 << (unsigned long long)(unsigned type)value << "\n" \
56 << (signed long long)(signed type)value << "\n" \
58 << (unsigned long long)(unsigned type)value << "\n" \
60 << (unsigned long long)(unsigned type)value << "\n\n"; \
/gem5/ext/ply/example/hedit/
H A Dhedit.py30 i = t.value.index('H')
31 n = eval(t.value[:i])
34 t.lexer.lexpos -= len(t.value) - (i+1+n)
36 t.value = t.value[i+1:i+1+n]
40 print("Illegal character '%s'" % t.value[0])
/gem5/ext/ply/test/
H A Dlex_hedit.py30 i = t.value.index('H')
31 n = eval(t.value[:i])
34 t.lexer.lexpos -= len(t.value) - (i+1+n)
35 t.value = t.value[i+1:i+1+n]
39 print("Illegal character '%s'" % t.value[0])
H A Dlex_module_import.py27 t.value = int(t.value)
29 print("Integer value too large %s" % t.value)
30 t.value = 0
37 t.lineno += t.value.count("\n")
40 print("Illegal character '%s'" % t.value[0])
H A Dcalclex.py29 t.value = int(t.value)
31 print("Integer value too large %s" % t.value)
32 t.value = 0
39 t.lineno += t.value.count("\n")
42 print("Illegal character '%s'" % t.value[0])
H A Dlex_closure.py31 t.value = int(t.value)
33 print("Integer value too large %s" % t.value)
34 t.value = 0
41 t.lineno += t.value.count("\n")
44 print("Illegal character '%s'" % t.value[0])
H A Dlex_object.py30 t.value = int(t.value)
32 print("Integer value too large %s" % t.value)
33 t.value = 0
40 t.lineno += t.value.count("\n")
43 print("Illegal character '%s'" % t.value[0])
H A Dlex_opt_alias.py30 t.value = int(t.value)
32 print("Integer value too large %s" % t.value)
33 t.value = 0
43 t.lexer.lineno += t.value.count("\n")
46 print("Illegal character '%s'" % t.value[0])
H A Dlex_optimize.py29 t.value = int(t.value)
31 print("Integer value too large %s" % t.value)
32 t.value = 0
39 t.lineno += t.value.count("\n")
42 print("Illegal character '%s'" % t.value[0])
H A Dlex_optimize2.py29 t.value = int(t.value)
31 print("Integer value too large %s" % t.value)
32 t.value = 0
39 t.lineno += t.value.count("\n")
42 print("Illegal character '%s'" % t.value[0])
H A Dlex_optimize3.py31 t.value = int(t.value)
33 print("Integer value too large %s" % t.value)
34 t.value = 0
41 t.lineno += t.value.count("\n")
44 print("Illegal character '%s'" % t.value[0])
/gem5/ext/nomali/lib/
H A Dtypes.hh45 : value(v) {}
47 const uint32_t value; member in struct:NoMali::RegAddr
52 return lhs.value < rhs.value;
57 return lhs.value > rhs.value;
62 return lhs.value <= rhs.value;
67 return lhs.value >= rhs.value;
132 set64(const RegAddr &addr, uint64_t value) argument
211 const uint8_t value; member in struct:NoMali::Status
[all...]
/gem5/src/systemc/channel/
H A Dsc_semaphore.cc40 sc_semaphore::sc_semaphore(int value) : argument
41 sc_semaphore(sc_gen_unique_name("semaphore"), value)
44 sc_semaphore::sc_semaphore(const char *_name, int value) : argument
45 sc_interface(), sc_semaphore_if(), sc_object(_name), _value(value)
47 if (value < 0) {

Completed in 19 milliseconds

1234567891011>>