mpw/toolbox/fpinfo.h

32 lines
384 B
C
Raw Permalink Normal View History

#ifndef __fpinfo_h__
#define __fpinfo_h__
#include <cstdint>
struct fpinfo {
2016-08-09 17:29:07 +00:00
private:
/*
void init(float *);
void init(double *);
void init(long double *);
*/
public:
bool sign = false;
bool one = false;
int exp = 0;
uint64_t sig = 0;
bool nan = false;
bool inf = false;
2016-08-09 17:29:07 +00:00
fpinfo(const float &f);
fpinfo(const double &d);
fpinfo(const long double &ld);
};
#endif