Mercurial > octave
comparison m4/acinclude.m4 @ 29366:8224cb664385
maint: merge stable to default.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 13 Feb 2021 11:13:10 -0800 |
parents | 7854d5752dd2 e9b7ac7031fb |
children | 8608b7e50720 |
comparison
equal
deleted
inserted
replaced
29364:1ea1cfb0b9bf | 29366:8224cb664385 |
---|---|
2783 AC_DEFINE(LLVM_IRBUILDER_CREATECONSTINBOUNDSGEP1_32_REQUIRES_TYPE, 1, | 2783 AC_DEFINE(LLVM_IRBUILDER_CREATECONSTINBOUNDSGEP1_32_REQUIRES_TYPE, 1, |
2784 [Define to 1 if llvm::IRBuilder::CreateConstInBoundsGEP1_32 requires a type argument.]) | 2784 [Define to 1 if llvm::IRBuilder::CreateConstInBoundsGEP1_32 requires a type argument.]) |
2785 fi | 2785 fi |
2786 ]) | 2786 ]) |
2787 dnl | 2787 dnl |
2788 dnl Check if MIPS processor is target and quiet signalling NaN value is | |
2789 dnl opposite of IEEE 754-2008 standard used by all other architectures. | |
2790 dnl | |
2791 AC_DEFUN([OCTAVE_MIPS_NAN], [ | |
2792 AC_CACHE_CHECK([whether MIPS processor is using non-standard NaN encoding], | |
2793 [octave_cv_mips_nan], | |
2794 [AC_LANG_PUSH(C++) | |
2795 AC_RUN_IFELSE([AC_LANG_PROGRAM([[ | |
2796 #include <cmath> | |
2797 #include <limits> | |
2798 ]], [[ | |
2799 /* FIXME: Only test is that MIPS is the target architecture. | |
2800 * This should be AND'ed with a test for whether the actual NaN | |
2801 * value for the high word (LO_IEEE_NA_HW) has the value | |
2802 * 0x7FF840F4 (normal) or 0x7FF040F4 (non-standard). Template code | |
2803 * that could work is in liboctave/utils/lo-ieee.cc but it also | |
2804 * depends on knowing whether the architecture is big-endian or | |
2805 * little-endian. */ | |
2806 #if defined (__mips__) | |
2807 return (0); | |
2808 #else | |
2809 return (1); | |
2810 #endif | |
2811 ]])], | |
2812 octave_cv_mips_nan=yes, | |
2813 octave_cv_mips_nan=no) | |
2814 AC_LANG_POP(C++) | |
2815 ]) | |
2816 if test $octave_cv_mips_nan = yes; then | |
2817 AC_DEFINE(HAVE_MIPS_NAN, 1, | |
2818 [Define to 1 if MIPS processor is using non-standard NaN encoding.]) | |
2819 fi | |
2820 ]) | |
2821 dnl | |
2788 dnl OCTAVE_CHECK_FORTRAN_SYMBOL_AND_CALLING_CONVENTIONS | 2822 dnl OCTAVE_CHECK_FORTRAN_SYMBOL_AND_CALLING_CONVENTIONS |
2789 dnl | 2823 dnl |
2790 dnl Set variables related to Fortran symbol names (append underscore, | 2824 dnl Set variables related to Fortran symbol names (append underscore, |
2791 dnl use uppercase names, etc.) and calling convention (mostly used for | 2825 dnl use uppercase names, etc.) and calling convention (mostly used for |
2792 dnl determining how character strings are passed). | 2826 dnl determining how character strings are passed). |