inline size_t c_str_len( real const& r ) { return r.length(); }
inline size_t PANTHEIOS_c_str_len_name_( real const& r ) { return r.length(); }
int gnobi(const real & i) { return -i.get_int() - 1; }
int gzbi(const real & i) { return i.get_int(); }
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); }
/** * @param r the piranha::real to be negated. */ void operator()(real &r) const { r.neg(); }