git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix GL version detection.
[ipdf/code.git]
/
src
/
vfpu.cpp
diff --git
a/src/vfpu.cpp
b/src/vfpu.cpp
index
18e1bde
..
bf9e9e6
100644
(file)
--- a/
src/vfpu.cpp
+++ b/
src/vfpu.cpp
@@
-21,7
+21,7
@@
using namespace std;
namespace VFPU
{
namespace VFPU
{
-
+
static const char g_fpu[] = "vfpu";
static bool g_running = false;
static const char g_fpu[] = "vfpu";
static bool g_running = false;
@@
-114,10
+114,8
@@
float Exec(float opa, float opb, Opcode op, Rmode rmode)
Register Exec(const Register & a, const Register & b, Opcode op, Rmode rmode)
{
assert(g_running);
Register Exec(const Register & a, const Register & b, Opcode op, Rmode rmode)
{
assert(g_running);
- Fatal("Unsupported");
stringstream s;
stringstream s;
- //TODO: Make it compile again
- //s << hex << setw(8) << setfill('0') << a.to_ullong() << "\n" << b.to_ullong() << "\n" << setw(1) << op <<"\n" << setw(1) << rmode << "\n";
+ s << hex << setw(8) << setfill('0') << a.to_ulong() << "\n" << b.to_ulong() << "\n" << setw(1) << op <<"\n" << setw(1) << rmode << "\n";
string str(s.str());
//Debug("Writing: %s", str.c_str());
string str(s.str());
//Debug("Writing: %s", str.c_str());
@@
-139,8
+137,8
@@
Register Exec(const Register & a, const Register & b, Opcode op, Rmode rmode)
}
stringstream s2;
}
stringstream s2;
- //TODO: Make it comp
[ile again
-
//s2 << hex << result.to_ul
long();
+ //TODO: Make it comp
ile on non C++11
+
s2 << hex << result.to_u
long();
//Debug("Result is: %s", s2.str().c_str());
return result;
}
//Debug("Result is: %s", s2.str().c_str());
return result;
}
UCC
git Repository :: git.ucc.asn.au