Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-19 08:08:30

0001 // I/O of ffloats.
0002 
0003 #ifndef _CL_FFLOAT_IO_H
0004 #define _CL_FFLOAT_IO_H
0005 
0006 #include "cln/number_io.h"
0007 #include "cln/ffloat.h"
0008 
0009 namespace cln {
0010 
0011 inline std::istream& operator>> (std::istream& stream, cl_FF& result)
0012 {
0013     extern cl_read_flags cl_FF_read_flags;
0014     extern const cl_F read_float (std::istream&, const cl_read_flags&);
0015     result = As(cl_FF)(read_float(stream,cl_FF_read_flags));
0016     return stream;
0017 }
0018 
0019 // The following does strictly the same as the general `fprint' for floats.
0020 // It is here only so that people don't need to include <cln/float_io.h>.
0021 inline void fprint (std::ostream& stream, const cl_FF& x)
0022 {
0023     extern void print_float (std::ostream& stream, const cl_print_flags& flags, const cl_F& z);
0024     extern cl_print_flags default_print_flags;
0025     print_float(stream,default_print_flags,x);
0026 }
0027 CL_DEFINE_PRINT_OPERATOR(cl_FF)
0028 
0029 }  // namespace cln
0030 
0031 #endif /* _CL_FFLOAT_IO_H */