/usr/include/lorene/C++/Include/nbr_spx.h is in liblorene-dev 0.0.0~cvs20161116+dfsg-1ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | /*
* Definition of special numbers (__infinity)
*
*/
/*
* Copyright (c) 1999-2000 Jean-Alain Marck
* Copyright (c) 1999-2003 Eric Gourgoulhon
* Copyright (c) 2001 Joachim Frieben
* Copyright (c) 2003 Jerome Novak
* Copyright (c) 2003 Christian Klein
*
* This file is part of LORENE.
*
* LORENE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* LORENE is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with LORENE; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef __NBR_SPX_
#define __NBR_SPX_
/*
* Definition des nombres particuliers (norme ieee)
*
* Actuellement:
* infini code comme __infinity
*
* On pourra mettre par la suite, au fur et a mesure des besoins:
*
* extern double __libm_qnan_d ;
* extern double __libm_inf_d ;
* extern double __libm_neginf_d ;
* extern double __infinity ;
*
* Les machines reconnuees sont:
* SGI (par defaut)
* DEC Alpha (__alpha)
* HP-PA (__hppa)
* PC Linux (__linux)
*
* Pour info:
*
* --------------------------------------------------------
* | |
* | Double Precision Format |
* | |
* | | bit 0 | bits 1 - 11 | bits 12 - 63 |
* | ----------------------------------------------- |
* | | Sign | Exponent | Mantissa | |
* | | | | |
* | |
* | \ msb lsb / \ msb lsb / |
* | |
* --------------------------------------------------------
*
* ----------------------------------------------
* | Condition: plus or minus ZERO |
* | |
* | Sign | Exponent | Mantissa |
* | | (All Zeros) | (All Zeros) |
* | |
* | Condition: plus or minus INFINITY |
* | |
* | Sign | Exponent | Mantissa |
* | | (All Ones) | (All Zeros) |
* | |
* | Condition: NaN (Not a Number) |
* | |
* | Sign | Exponent | Mantissa |
* | | (All Ones) | (Not All Zeros) |
* | |
* ----------------------------------------------
*/
/*
* $Id: nbr_spx.h,v 1.6 2014/10/06 15:09:40 j_novak Exp $
* $Log: nbr_spx.h,v $
*
* Revision 1.6 2014/10/06 15:09:40 j_novak
* Modified #include directives to use c++ syntax.
*
* Revision 1.5 2009/11/22 17:06:11 j_novak
* Patched to build on a Macbook Pro (thanks E. Schnetter)
*
* Revision 1.4 2007/06/16 22:19:23 m_saijo
* Add the case __i386__ for supporting Intel Mac.
*
* Revision 1.3 2003/02/05 13:51:40 e_gourgoulhon
* Added the case __ppc__ for MacOS X.
*
* Revision 1.2 2002/09/09 12:57:22 e_gourgoulhon
* Added the case of IBM AIX with xlC compiler.
*
* Revision 1.1.1.1 2001/11/20 15:19:27 e_gourgoulhon
* LORENE
*
* Revision 2.2 2001/05/29 15:59:27 eric
* Ajout du cas des machines HP-PA (contribution de Joachim).
*
* Revision 2.1 2000/03/17 08:17:35 eric
* Mise en conformite Linux : huge_val.h ---> math.h
*
* Revision 2.0 1999/02/15 10:41:51 hyc
* *** empty log message ***
*
* Revision 2.1 1999/02/15 09:59:50 hyc
* *** empty log message ***
*
* Revision 1.3 1998/06/10 07:25:37 eric
* Ajout du cas PC Linux.
*
* Revision 1.2 1997/10/21 12:48:04 hyc
* *** empty log message ***
*
* Revision 1.1 1997/10/17 15:40:01 hyc
* Initial revision
*
*
* $Header: /cvsroot/Lorene/C++/Include/nbr_spx.h,v 1.6 2014/10/06 15:09:40 j_novak Exp $
*
*/
#include <cmath>
#define __infinity INFINITY
#endif
|