gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
strnumtest.cc File Reference
#include <iostream>
#include <string>
#include <vector>
#include "base/str.hh"

Go to the source code of this file.

Macros

#define OUTVAL(valtype, type)
 

Functions

int main (int argc, char *argv[])
 

Macro Definition Documentation

#define OUTVAL (   valtype,
  type 
)
Value:
do { \
valtype value; \
cout << "TYPE = " #valtype "\n"; \
if (to_number(s, value)) { \
cout << "Number(" << s << ") = " << dec \
<< (unsigned long long)(unsigned type)value << "\n" \
<< "Number(" << s << ") = " << dec \
<< (signed long long)(signed type)value << "\n" \
<< "Number(" << s << ") = 0x" << hex \
<< (unsigned long long)(unsigned type)value << "\n" \
<< "Number(" << s << ") = 0" << oct \
<< (unsigned long long)(unsigned type)value << "\n\n"; \
} else \
cout << "Number(" << s << ") is invalid\n\n"; \
} while (0)
Bitfield< 4 > s
Definition: miscregs.hh:1738
type
Definition: misc.hh:728
bool to_number(const std::string &value, Pixel &retval)
Definition: framebuffer.hh:216
if(it_gpu==gpuTypeMap.end())
Definition: gpu_nomali.cc:75

Referenced by main().

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 40 of file strnumtest.cc.

References X86ISA::exit, OUTVAL, and ArmISA::s.


Generated on Fri Jun 9 2017 13:03:59 for gem5 by doxygen 1.8.6