File tree 3 files changed +1
-46
lines changed
3 files changed +1
-46
lines changed Original file line number Diff line number Diff line change @@ -610,43 +610,6 @@ main() {
610
610
AC_MSG_RESULT(no),
611
611
AC_MSG_RESULT(assuming not on target machine))
612
612
613
- AC_MSG_CHECKING(whether 'long long int' is 64 bits using %qd)
614
- AC_TRY_RUN([#include <stdio.h>
615
- typedef long long int int64;
616
- #define INT64_FORMAT "%qd"
617
-
618
- int64 a = 20000001;
619
- int64 b = 40000005;
620
-
621
- int does_int64_work()
622
- {
623
- int64 c,d,e;
624
- char buf[100];
625
-
626
- if (sizeof(int64) != 8)
627
- return 0; /* doesn't look like the right size */
628
-
629
- /* we do perfunctory checks on multiply, divide, sprintf, sscanf */
630
- c = a * b;
631
- sprintf(buf, INT64_FORMAT, c);
632
- if (strcmp(buf, "800000140000005") != 0)
633
- return 0; /* either multiply or sprintf is busted */
634
- if (sscanf(buf, INT64_FORMAT, &d) != 1)
635
- return 0;
636
- if (d != c)
637
- return 0;
638
- e = d / b;
639
- if (e != a)
640
- return 0;
641
- return 1;
642
- }
643
- main() {
644
- exit(! does_int64_work());
645
- }],
646
- [AC_DEFINE(HAVE_LONG_LONG_INT_64_qd) AC_MSG_RESULT(yes)],
647
- AC_MSG_RESULT(no),
648
- AC_MSG_RESULT(assuming not on target machine))
649
-
650
613
dnl Checks for library functions.
651
614
AC_PROG_GCC_TRADITIONAL
652
615
AC_FUNC_MEMCMP
Original file line number Diff line number Diff line change @@ -224,7 +224,6 @@ extern void srandom(int seed);
224
224
225
225
/* Set to 1 if type "long long int" works and is 64 bits */
226
226
#undef HAVE_LONG_LONG_INT_64_lld
227
- #undef HAVE_LONG_LONG_INT_64_qd
228
227
229
228
/*
230
229
* Code below this point should not require changes
Original file line number Diff line number Diff line change 6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Id: int8.h,v 1.6 1998/09/10 05:36:00 momjian Exp $
9
+ * $Id: int8.h,v 1.7 1998/09/11 16:43:26 momjian Exp $
10
10
*
11
11
* NOTES
12
12
* These data types are supported on all 64-bit architectures, and may
@@ -35,20 +35,13 @@ typedef long long int int64;
35
35
36
36
#define INT64_FORMAT "%lld"
37
37
#else
38
- #ifdef HAVE_LONG_LONG_INT_64_qd
39
- /* We have working support for "long long int", use that */
40
- typedef long long int int64 ;
41
-
42
- #define INT64_FORMAT "%qd"
43
- #else
44
38
/* Won't actually work, but fall back to long int so that int8.c compiles */
45
39
typedef long int int64 ;
46
40
47
41
#define INT64_FORMAT "%ld"
48
42
#define INT64_IS_BUSTED
49
43
#endif
50
44
#endif
51
- #endif
52
45
53
46
extern int64 * int8in (char * str );
54
47
extern char * int8out (int64 * val );
You can’t perform that action at this time.
0 commit comments