floatioP.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:3k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* floatio.h - definitions for ANSI standard stdio module */
  2. /* Copyright 1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01c,22sep92,rrr  added support for c++
  7. 01a,29jul92,smb  taken from UCB stdio library.
  8. */
  9. #ifndef __INCfloatioPh
  10. #define __INCfloatioPh
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. /*
  15. DESCRIPTION
  16.  * Copyright (c) 1990 The Regents of the University of California.
  17.  * All rights reserved.
  18.  *
  19.  * This code is derived from software contributed to Berkeley by
  20.  * Chris Torek.
  21.  *
  22.  * Redistribution and use in source and binary forms, with or without
  23.  * modification, are permitted provided that the following conditions
  24.  * are met:
  25.  * 1. Redistributions of source code must retain the above copyright
  26.  *    notice, this list of conditions and the following disclaimer.
  27.  * 2. Redistributions in binary form must reproduce the above copyright
  28.  *    notice, this list of conditions and the following disclaimer in the
  29.  *    documentation and/or other materials provided with the distribution.
  30.  * 3. All advertising materials mentioning features or use of this software
  31.  *    must display the following acknowledgement:
  32.  * This product includes software developed by the University of
  33.  * California, Berkeley and its contributors.
  34.  * 4. Neither the name of the University nor the names of its contributors
  35.  *    may be used to endorse or promote products derived from this software
  36.  *    without specific prior written permission.
  37.  *
  38.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  39.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  40.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  41.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  42.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  43.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  44.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  45.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  46.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  47.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  48.  * SUCH DAMAGE.
  49.  *
  50.  * @(#)floatio.h 5.1 (Berkeley) 1/20/91
  51.  *
  52.  * Floating point scanf/printf (input/output) definitions.
  53. INCLUDE FILE: 
  54. SEE ALSO: American National Standard X3.159-1989
  55. */
  56. /* 11-bit exponent (VAX G floating point) is 308 decimal digits */
  57. #define MAXEXP 308
  58. /* 128 bit fraction takes up 39 decimal digits; max reasonable precision */
  59. #define MAXFRACT 39
  60. #ifdef __cplusplus
  61. }
  62. #endif
  63. #endif /* __INCfloatioPh */