Contiki 2.6

floatio.h

00001 /*
00002  * Copyright (c) 1990 The Regents of the University of California.
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms are permitted
00006  * provided that the above copyright notice and this paragraph are
00007  * duplicated in all such forms and that any documentation,
00008  * advertising materials, and other materials related to such
00009  * distribution and use acknowledge that the software was developed
00010  * by the University of California, Berkeley.  The name of the
00011  * University may not be used to endorse or promote products derived
00012  * from this software without specific prior written permission.
00013  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
00014  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
00015  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00016  *
00017  *      %W% (Berkeley) %G%
00018  */
00019 
00020 /*
00021  * Floating point scanf/printf (input/output) definitions.
00022  */
00023 
00024 #ifdef _NO_LONGDBL
00025 /* 11-bit exponent (VAX G floating point) is 308 decimal digits */
00026 #define MAXEXP          308
00027 #else  /* !_NO_LONGDBL */
00028 /* 15-bit exponent (Intel extended floating point) is 4932 decimal digits */
00029 #define MAXEXP          4932
00030 #endif /* !_NO_LONGDBL */
00031 /* 128 bit fraction takes up 39 decimal digits; max reasonable precision */
00032 #define MAXFRACT        39