Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-08-06 09:31:06

0001 /*
0002  * include/bits.h
0003  *
0004  * This work was supported by the Director, Office of Science, Division
0005  * of Mathematical, Information, and Computational Sciences of the
0006  * U.S. Department of Energy under contract number DE-AC03-76SF00098.
0007  *
0008  * Copyright (c) 2000-2001
0009  *
0010  * This file defines various routines to get / set bits of a IEEE floating
0011  * point number.  This is used by the library for debugging purposes.
0012  */
0013 
0014 #ifndef _QD_BITS_H
0015 #define _QD_BITS_H
0016 
0017 #include <iostream>
0018 #include <qd/qd_config.h>
0019 
0020 /* Returns the exponent of the double precision number.
0021    Returns INT_MIN is x is zero, and INT_MAX if x is INF or NaN. */
0022 int get_double_expn(double x);
0023 
0024 /* Prints 
0025      SIGN  EXPN  MANTISSA
0026    of the given double.  If x is NaN, INF, or Zero, this
0027    prints out the strings NaN, +/- INF, and 0.             */
0028 void print_double_info(std::ostream &os, double x);
0029 
0030 
0031 #endif  /* _QD_BITS_H */
0032