changeset 11356:ea97f7474269

int_fastXY_t emulation
author michael
date Sun, 02 Nov 2003 10:14:05 +0000
parents a9a15b678c1a
children 6ded767a528a
files configure
diffstat 1 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Nov 02 08:35:14 2003 +0000
+++ b/configure	Sun Nov 02 10:14:05 2003 +0000
@@ -2102,6 +2102,30 @@
 echores "$_inttypes"
 
 
+echocheck "int_fastXY_t in inttypes.h"
+cat > $TMPC << EOF
+#include <inttypes.h>
+int main(void) { 
+volatile int_fast16_t v= 0;
+return v; }
+EOF
+_fast_inttypes=no
+cc_check && _fast_inttypes=yes
+if test "$_fast_inttypes" = yes ; then
+  # nothing to do
+  :
+else
+  _def_fast_inttypes='  
+    typedef signed char int_fast8_t;
+    typedef signed int  int_fast16_t;
+    typedef signed int  int_fast32_t;
+    typedef unsigned char uint_fast8_t;
+    typedef unsigned int  uint_fast16_t;
+    typedef unsigned int  uint_fast32_t;'
+fi
+echores "$_fast_inttypes"
+
+
 echocheck "word size"
 _mp_wordsize="#undef MP_WORDSIZE"
 cat > $TMPC << EOF
@@ -6199,6 +6223,9 @@
 /* C99 lrintf function available */
 $_def_lrintf
 
+/* int_fastXY_t emulation */
+$_def_fast_inttypes
+
 /* nanosleep support */
 $_def_nanosleep