beta-0.89.2
[luatex.git] / source / libs / mpfr / mpfr-3.1.3 / src / mparam_h.in
blobbd6c91c62016697203ff92335fc803e0a1fd7001
1 /* Various Thresholds of MPFR, not exported.  -*- mode: C -*-
3 Copyright 2005-2015 Free Software Foundation, Inc.
5 This file is part of the GNU MPFR Library.
7 The GNU MPFR Library is free software; you can redistribute it and/or modify
8 it under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
12 The GNU MPFR Library is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
15 License for more details.
17 You should have received a copy of the GNU Lesser General Public License
18 along with the GNU MPFR Library; see the file COPYING.LESSER.  If not, see
19 http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
20 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
22 #ifndef __MPFR_IMPL_H__
23 # error "MPFR Internal not included"
24 #endif
26 /* Note: the different macros used here are those defined by gcc,
27    for example with gcc -dM -E -xc /dev/null
28    As of gcc 4.2, you can also use: -march=native or -mtune=native */
30 #if 1 /* no processor specific optimization for TeX Live */
31 #define MPFR_TUNE_CASE "default"
32 #elif defined (__tune_pentium4__) /* Threshold for Pentium 4 */
33 #define MPFR_TUNE_CASE "src/x86_64/pentium4/mparam.h"
34 #include "x86_64/pentium4/mparam.h"
36 #elif (defined (__tune_core2__) || defined (__tune_nocona__)) && defined (__x86_64) /* 64-bit Core 2 or Xeon */
37 #define MPFR_TUNE_CASE "src/x86_64/core2/mparam.h"
38 #include "x86_64/core2/mparam.h"
40 #elif defined (__tune_core2__) && defined (__i386) /* 32-bit Core 2,
41       for example a 64-bit machine with gmp/mpfr compiled with ABI=32 */
42 #define MPFR_TUNE_CASE "src/x86/core2/mparam.h"
43 #include "x86/core2/mparam.h"
45 #elif defined (__tune_k8__) /* Threshold for AMD 64 */
46 #define MPFR_TUNE_CASE "src/amd/k8/mparam.h"
47 #include "amd/k8/mparam.h"
49 #elif defined (__tune_athlon__) /* Threshold for Athlon */
50 #define MPFR_TUNE_CASE "src/amd/athlon/mparam.h"
51 #include "amd/athlon/mparam.h"
53 #elif defined (__tune_pentiumpro__) || defined (__tune_i686__) || defined (__i386) /* we consider all other 386's here */
54 #define MPFR_TUNE_CASE "src/x86/mparam.h"
55 #include "x86/mparam.h"
57 #elif defined (__ia64) || defined (__itanium__) || defined (__tune_ia64__)
58 /* Threshold for IA64 */
59 #define MPFR_TUNE_CASE "src/ia64/mparam.h"
60 #include "ia64/mparam.h"
62 #elif defined (__arm__) /* Threshold for ARM */
63 #define MPFR_TUNE_CASE "src/arm/mparam.h"
64 #include "arm/mparam.h"
66 #elif defined (__PPC64__) /* Threshold for 64-bit PowerPC, test it before
67                              32-bit PowerPC since _ARCH_PPC is also defined
68                              on 64-bit PowerPC */
69 #define MPFR_TUNE_CASE "src/powerpc64/mparam.h"
70 #include "powerpc64/mparam.h"
72 #elif defined (_ARCH_PPC) /* Threshold for 32-bit PowerPC */
73 #define MPFR_TUNE_CASE "src/powerpc32/mparam.h"
74 #include "powerpc32/mparam.h"
76 #elif defined (__sparc_v9__) /* Threshold for 64-bits Sparc */
77 #define MPFR_TUNE_CASE "src/sparc64/mparam.h"
78 #include "sparc64/mparam.h"
80 #elif defined (__hppa__) /* Threshold for HPPA */
81 #define MPFR_TUNE_CASE "src/hppa/mparam.h"
82 #include "hppa/mparam.h"
84 #else
85 #define MPFR_TUNE_CASE "default"
86 #endif
88 /****************************************************************
89  * Default values of Threshold.                                 *
90  * Must be included in any case: it checks, for every constant, *
91  * if it has been defined, and it sets it to a default value if *
92  * it was not previously defined.                               *
93  ****************************************************************/
94 #include "generic/mparam.h"