ARTS  2.2.66
binio.cc File Reference
#include <cstring>
#include <stdexcept>
#include "binio.h"
#include <cmath>
Include dependency graph for binio.cc:

Go to the source code of this file.

Macros

#define HUGE_VAL   HUGE
 
#define STRINGBUFSIZE   256
 
#define FloatToUnsigned(f)   ((unsigned long)(((long)((f) - 2147483648.0)) + 2147483647L + 1))
 
#define SEXP_MAX   255
 
#define SEXP_OFFSET   127
 
#define SEXP_SIZE   8
 
#define SEXP_POSITION   (32-SEXP_SIZE-1)
 
#define DEXP_MAX   2047
 
#define DEXP_OFFSET   1023
 
#define DEXP_SIZE   11
 
#define DEXP_POSITION   (32-DEXP_SIZE-1)
 

Macro Definition Documentation

◆ DEXP_MAX

#define DEXP_MAX   2047

Definition at line 604 of file binio.cc.

Referenced by binostream::float2ieee_double().

◆ DEXP_OFFSET

#define DEXP_OFFSET   1023

Definition at line 605 of file binio.cc.

Referenced by binostream::float2ieee_double().

◆ DEXP_POSITION

#define DEXP_POSITION   (32-DEXP_SIZE-1)

Definition at line 607 of file binio.cc.

Referenced by binostream::float2ieee_double().

◆ DEXP_SIZE

#define DEXP_SIZE   11

Definition at line 606 of file binio.cc.

◆ FloatToUnsigned

#define FloatToUnsigned (   f)    ((unsigned long)(((long)((f) - 2147483648.0)) + 2147483647L + 1))

Definition at line 543 of file binio.cc.

Referenced by binostream::float2ieee_double().

◆ HUGE_VAL

#define HUGE_VAL   HUGE

Definition at line 35 of file binio.cc.

Referenced by binistream::ieee_double2float(), and binistream::ieee_single2float().

◆ SEXP_MAX

#define SEXP_MAX   255

Definition at line 546 of file binio.cc.

Referenced by binostream::float2ieee_single().

◆ SEXP_OFFSET

#define SEXP_OFFSET   127

Definition at line 547 of file binio.cc.

Referenced by binostream::float2ieee_single().

◆ SEXP_POSITION

#define SEXP_POSITION   (32-SEXP_SIZE-1)

Definition at line 549 of file binio.cc.

Referenced by binostream::float2ieee_single().

◆ SEXP_SIZE

#define SEXP_SIZE   8

Definition at line 548 of file binio.cc.

◆ STRINGBUFSIZE

#define STRINGBUFSIZE   256

Definition at line 44 of file binio.cc.

Referenced by binistream::readString().