add math.pow

This commit is contained in:
ValKmjolnir
2022-03-27 16:14:55 +08:00
parent b66ebbef4b
commit 617ad03d33
9 changed files with 61 additions and 29 deletions
+3 -2
View File
@@ -296,15 +296,16 @@ void nasal_vm::opcallsort(const uint64_t* arr)
opcall.end(),
[](op& a,op& b){return a.second>b.second;}
);
std::cout<<"\noperands call info:";
uint64_t total=0;
for(auto& i:opcall)
{
if(!i.second)
break;
total+=i.second;
std::cout<<'\n'<<code_table[i.first].name<<": "<<i.second;
std::cout<<"\n "<<code_table[i.first].name<<" : "<<i.second;
}
std::cout<<"\ntotal : "<<total<<'\n';
std::cout<<"\n total : "<<total<<'\n';
}
void nasal_vm::die(std::string str)
{