bigdtypes - bits. Adjust if necessary to suit your system....

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
/* $Id: bigdtypes.h $ */ / /******************** SHORT COPYRIGHT NOTICE************************** This source code is part of the BigDigits multiple-precision arithmetic library Version 2.2 originally written by David Ireland, copyright (c) 2001-8 D.I. Management Services Pty Limited, all rights reserved. It is provided "as is" with no warranties. You may use this software under the terms of the full copyright notice "bigdigitsCopyright.txt" that should have been included with this library or can be obtained from <>. This notice must always be retained in any copy. ******************* END OF COPYRIGHT NOTICE***************************/ /* Last updated: $Date: 2008-05-04 13:05:00 $ $Revision: 2.2.0 $ $Author: dai $ */ * #ifndef BIGDTYPES_H_ #define BIGDTYPES_H_ 1 # #include <stddef.h> # /* The following PP instructions assume that all Linux systems have a C99-conforming <stdint.h>; that other Unix systems have the uint32_t definitions in <sys/types.h>; and that MS et al don't have them at all. This version assumes that a long is 32
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: bits. Adjust if necessary to suit your system. You can override by defining HAVE_C99INCLUDES or HAVE_SYS_TYPES. */ * #ifndef EXACT_INTS_DEFINED_ #define EXACT_INTS_DEFINED_ 1 #ifndef HAVE_C99INCLUDES #if (__STDC_VERSION &gt;= 199901L) || defined(linux) || defined(__linux__) #define HAVE_C99INCLUDES #endif #endif #ifndef HAVE_SYS_TYPES #if defined(unix) || defined(__unix__) #define HAVE_SYS_TYPES #endif #endif #ifdef HAVE_C99INCLUDES #include &lt;stdint.h&gt; #elif defined(HAVE_SYS_TYPES) #include &lt;sys/types.h&gt; #else #define uint32_t unsigned long #define uint16_t unsigned short #endif /* HAVE_C99INCLUDES */ #endif /* EXACT_INTS_DEFINED_ */ / /* Macros for format specifiers -- change to &quot;u&quot;, &quot;x&quot; and &quot;X&quot; if necessary */ #ifdef HAVE_C99INCLUDES #include &lt;inttypes.h&gt; #else #define PRIu32 &quot;lu&quot; #define PRIx32 &quot;lx&quot; #define PRIX32 &quot;lX&quot; #endif /* We define our own */ #define PRIuBIGD PRIu32 #define PRIxBIGD PRIx32 #define PRIXBIGD PRIX32 # #endif /* BIGDTYPES_H_ */...
View Full Document

This note was uploaded on 01/26/2010 for the course CMPS 109 taught by Professor Bailey,d during the Spring '08 term at UCSC.

Page1 / 2

bigdtypes - bits. Adjust if necessary to suit your system....

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online