Example #1
0
inline
size_t
c_str_len(
    real const& r
)
{
    return r.length();
}
Example #2
0
inline
size_t
PANTHEIOS_c_str_len_name_(
    real const& r
)
{
    return r.length();
}
Example #3
0
int gnobi(const real & i)
{
	return -i.get_int() - 1;
}
Example #4
0
int gzbi(const real & i)
{
	return i.get_int();
}
Example #5
0
std::string generate_name(const real & c, const real & m, const real & n, const std::string & name)
{
	char raw_string[4096];
	
	std::sprintf(raw_string, "data/pro_%08d_%03d_%03d_%s.txt", (real("1000.0") * c).get_int(), m.get_int(), n.get_int(), name.c_str());
	return std::string(raw_string);
}
Example #6
0
 /**
  * @param r the piranha::real to be negated.
  */
 void operator()(real &r) const
 {
     r.neg();
 }