Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/lgpl3/gmp/lib/libgmp/arch/vax initial versions of t...



details:   https://anonhg.NetBSD.org/src/rev/8a7e4e948e07
branches:  trunk
changeset: 766806:8a7e4e948e07
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Jul 02 13:36:57 2011 +0000

description:
initial versions of these for vax.  not 100% working yet.

diffstat:

 external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc |   169 +
 external/lgpl3/gmp/lib/libgmp/arch/vax/config.h     |   587 ++++
 external/lgpl3/gmp/lib/libgmp/arch/vax/config.m4    |    20 +
 external/lgpl3/gmp/lib/libgmp/arch/vax/gmp-mparam.h |    49 +
 external/lgpl3/gmp/lib/libgmp/arch/vax/gmp.h        |  2284 +++++++++++++++++++
 external/lgpl3/gmp/lib/libgmp/arch/vax/mp.h         |   164 +
 6 files changed, 3273 insertions(+), 0 deletions(-)

diffs (truncated from 3297 to 300 lines):

diff -r 17e1d85bd1c6 -r 8a7e4e948e07 external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/vax/Makefile.inc       Sat Jul 02 13:36:57 2011 +0000
@@ -0,0 +1,169 @@
+#      $NetBSD: Makefile.inc,v 1.1 2011/07/02 13:36:57 mrg Exp $
+
+C_SRCS_LIST= \
+       toom6h_mul.c            mpn/generic/toom6h_mul.c \
+       toom3_sqr.c             mpn/generic/toom3_sqr.c \
+       copyi.c                 mpn/generic/copyi.c \
+       sqrtrem.c               mpn/generic/sqrtrem.c \
+       iorn_n.c                mpn/generic/logops_n.c \
+       bdiv_qr.c               mpn/generic/bdiv_qr.c \
+       matrix22_mul.c          mpn/generic/matrix22_mul.c \
+       powlo.c                 mpn/generic/powlo.c \
+       tdiv_qr.c               mpn/generic/tdiv_qr.c \
+       gcd_1.c                 mpn/generic/gcd_1.c \
+       sqrmod_bnm1.c           mpn/generic/sqrmod_bnm1.c \
+       zero.c                  mpn/generic/zero.c \
+       cmp.c                   mpn/generic/cmp.c \
+       toom_couple_handling.c  mpn/generic/toom_couple_handling.c \
+       toom32_mul.c            mpn/generic/toom32_mul.c \
+       dump.c                  mpn/generic/dump.c \
+       toom62_mul.c            mpn/generic/toom62_mul.c \
+       dive_1.c                mpn/generic/dive_1.c \
+       toom44_mul.c            mpn/generic/toom44_mul.c \
+       nand_n.c                mpn/generic/logops_n.c \
+       hgcd.c                  mpn/generic/hgcd.c \
+       ior_n.c                 mpn/generic/logops_n.c \
+       get_d.c                 mpn/generic/get_d.c \
+       bdiv_dbm1c.c            mpn/generic/bdiv_dbm1c.c \
+       nussbaumer_mul.c        mpn/generic/nussbaumer_mul.c \
+       pre_divrem_1.c          mpn/generic/pre_divrem_1.c \
+       andn_n.c                mpn/generic/logops_n.c \
+       dcpi1_div_q.c           mpn/generic/dcpi1_div_q.c \
+       sbpi1_div_qr.c          mpn/generic/sbpi1_div_qr.c \
+       dcpi1_bdiv_qr.c         mpn/generic/dcpi1_bdiv_qr.c \
+       bdiv_q_1.c              mpn/generic/bdiv_q_1.c \
+       gcdext_1.c              mpn/generic/gcdext_1.c \
+       copyd.c                 mpn/generic/copyd.c \
+       toom42_mul.c            mpn/generic/toom42_mul.c \
+       xnor_n.c                mpn/generic/logops_n.c \
+       dcpi1_div_qr.c          mpn/generic/dcpi1_div_qr.c \
+       sqr_basecase.c          mpn/generic/sqr_basecase.c \
+       toom_interpolate_7pts.c mpn/generic/toom_interpolate_7pts.c \
+       toom63_mul.c            mpn/generic/toom63_mul.c \
+       gcdext.c                mpn/generic/gcdext.c \
+       mu_divappr_q.c          mpn/generic/mu_divappr_q.c \
+       mul_n.c                 mpn/generic/mul_n.c \
+       gcd_subdiv_step.c       mpn/generic/gcd_subdiv_step.c \
+       udiv_w_sdiv.c           mpn/generic/udiv_w_sdiv.c \
+       pre_mod_1.c             mpn/generic/pre_mod_1.c \
+       toom8h_mul.c            mpn/generic/toom8h_mul.c \
+       toom_interpolate_6pts.c mpn/generic/toom_interpolate_6pts.c \
+       mu_div_q.c              mpn/generic/mu_div_q.c \
+       add_1.c                 mpn/generic/add_1.c \
+       hamdist.c               mpn/generic/popham.c \
+       powm_sec.c              mpn/generic/powm_sec.c \
+       toom22_mul.c            mpn/generic/toom22_mul.c \
+       invert.c                mpn/generic/invert.c \
+       toom8_sqr.c             mpn/generic/toom8_sqr.c \
+       xor_n.c                 mpn/generic/logops_n.c \
+       mu_bdiv_qr.c            mpn/generic/mu_bdiv_qr.c \
+       com.c                   mpn/generic/com.c \
+       redc_2.c                mpn/generic/redc_2.c \
+       toom43_mul.c            mpn/generic/toom43_mul.c \
+       subcnd_n.c              mpn/generic/subcnd_n.c \
+       invertappr.c            mpn/generic/invertappr.c \
+       redc_1.c                mpn/generic/redc_1.c \
+       sqr.c                   mpn/generic/sqr.c \
+       trialdiv.c              mpn/generic/trialdiv.c \
+       mod_1_4.c               mpn/generic/mod_1_4.c \
+       fib2_ui.c               mpn/generic/fib2_ui.c \
+       mu_div_qr.c             mpn/generic/mu_div_qr.c \
+       sbpi1_divappr_q.c       mpn/generic/sbpi1_divappr_q.c \
+       toom_eval_pm2exp.c      mpn/generic/toom_eval_pm2exp.c \
+       perfsqr.c               mpn/generic/perfsqr.c \
+       toom6_sqr.c             mpn/generic/toom6_sqr.c \
+       mod_1_3.c               mpn/generic/mod_1_3.c \
+       dcpi1_divappr_q.c       mpn/generic/dcpi1_divappr_q.c \
+       popcount.c              mpn/generic/popham.c \
+       mullo_n.c               mpn/generic/mullo_n.c \
+       mod_1.c                 mpn/generic/mod_1.c \
+       scan1.c                 mpn/generic/scan1.c \
+       random.c                mpn/generic/random.c \
+       get_str.c               mpn/generic/get_str.c \
+       gcd.c                   mpn/generic/gcd.c \
+       toom_eval_pm2.c         mpn/generic/toom_eval_pm2.c \
+       mod_1_2.c               mpn/generic/mod_1_2.c \
+       nior_n.c                mpn/generic/logops_n.c \
+       toom53_mul.c            mpn/generic/toom53_mul.c \
+       scan0.c                 mpn/generic/scan0.c \
+       sub_1.c                 mpn/generic/sub_1.c \
+       hgcd2.c                 mpn/generic/hgcd2.c \
+       toom_interpolate_12pts.c        mpn/generic/toom_interpolate_12pts.c \
+       mulmod_bnm1.c           mpn/generic/mulmod_bnm1.c \
+       sub.c                   mpn/generic/sub.c \
+       rootrem.c               mpn/generic/rootrem.c \
+       sbpi1_bdiv_q.c          mpn/generic/sbpi1_bdiv_q.c \
+       toom_eval_pm1.c         mpn/generic/toom_eval_pm1.c \
+       redc_1_sec.c            mpn/generic/redc_1_sec.c \
+       mod_1_1.c               mpn/generic/mod_1_1.c \
+       powm.c                  mpn/generic/powm.c \
+       mul.c                   mpn/generic/mul.c \
+       divis.c                 mpn/generic/divis.c \
+       add.c                   mpn/generic/add.c \
+       toom4_sqr.c             mpn/generic/toom4_sqr.c \
+       random2.c               mpn/generic/random2.c \
+       lshiftc.c               mpn/generic/lshiftc.c \
+       mul_basecase.c          mpn/generic/mul_basecase.c \
+       div_q.c                 mpn/generic/div_q.c \
+       toom_interpolate_8pts.c mpn/generic/toom_interpolate_8pts.c \
+       diveby3.c               mpn/generic/diveby3.c \
+       dcpi1_bdiv_q.c          mpn/generic/dcpi1_bdiv_q.c \
+       and_n.c                 mpn/generic/logops_n.c \
+       divexact.c              mpn/generic/divexact.c \
+       gcd_lehmer.c            mpn/generic/gcd_lehmer.c \
+       redc_n.c                mpn/generic/redc_n.c \
+       toom33_mul.c            mpn/generic/toom33_mul.c \
+       toom_interpolate_16pts.c        mpn/generic/toom_interpolate_16pts.c \
+       set_str.c               mpn/generic/set_str.c \
+       toom2_sqr.c             mpn/generic/toom2_sqr.c \
+       jacbase.c               mpn/generic/jacbase.c \
+       remove.c                mpn/generic/remove.c \
+       mode1o.c                mpn/generic/mode1o.c \
+       perfpow.c               mpn/generic/perfpow.c \
+       toom_eval_dgr3_pm2.c    mpn/generic/toom_eval_dgr3_pm2.c \
+       sbpi1_div_q.c           mpn/generic/sbpi1_div_q.c \
+       gcdext_subdiv_step.c    mpn/generic/gcdext_subdiv_step.c \
+       sbpi1_bdiv_qr.c         mpn/generic/sbpi1_bdiv_qr.c \
+       toom_eval_pm2rexp.c     mpn/generic/toom_eval_pm2rexp.c \
+       divrem.c                mpn/generic/divrem.c \
+       binvert.c               mpn/generic/binvert.c \
+       mod_34lsub1.c           mpn/generic/mod_34lsub1.c \
+       toom_eval_dgr3_pm1.c    mpn/generic/toom_eval_dgr3_pm1.c \
+       mul_fft.c               mpn/generic/mul_fft.c \
+       mullo_basecase.c        mpn/generic/mullo_basecase.c \
+       divrem_2.c              mpn/generic/divrem_2.c \
+       toom52_mul.c            mpn/generic/toom52_mul.c \
+       mu_bdiv_q.c             mpn/generic/mu_bdiv_q.c \
+       neg.c                   mpn/generic/neg.c \
+       toom_interpolate_5pts.c mpn/generic/toom_interpolate_5pts.c \
+       divrem_1.c              mpn/generic/divrem_1.c \
+       pow_1.c                 mpn/generic/pow_1.c \
+       bdiv_q.c                mpn/generic/bdiv_q.c \
+       gcdext_lehmer.c         mpn/generic/gcdext_lehmer.c \
+
+gen-trialdivtab: gen-trialdivtab.c
+       ${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
+
+GMP_LIMB_BITS=32
+
+DPSRCS+=trialdivtab.h
+trialdivtab.h: gen-trialdivtab
+       ${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h
+
+CLEANFILES+=   trialdivtab.h
+
+# XXX stuff looks for "../config.m4"
+dummy:
+       mkdir dummy
+${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
+       cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
+
+.for _build _src in ${C_SRCS_LIST}
+mpn_${_build}: Makefile
+       echo '#include "${_src}"' > ${.TARGET}
+
+CPPFLAGS.mpn_${_build}+= -DOPERATION_${_build:R}
+
+SRCS+=         mpn_${_build}
+CLEANFILES+=   mpn_${_build}
+.endfor
diff -r 17e1d85bd1c6 -r 8a7e4e948e07 external/lgpl3/gmp/lib/libgmp/arch/vax/config.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/vax/config.h   Sat Jul 02 13:36:57 2011 +0000
@@ -0,0 +1,587 @@
+/* config.h.  Generated from config.in by configure.  */
+/* config.in.  Generated from configure.in by autoheader.  */
+
+/*
+
+Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+
+This file is part of the GNU MP Library.
+
+The GNU MP Library is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published
+by the Free Software Foundation; either version 3 of the License, or (at
+your option) any later version.
+
+The GNU MP Library is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
+License for more details.
+
+You should have received a copy of the GNU Lesser General Public License
+along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.
+*/
+
+/* Define if building universal (internal helper macro) */
+/* #undef AC_APPLE_UNIVERSAL_BUILD */
+
+/* The gmp-mparam.h file (a string) the tune program should suggest updating.
+   */
+#define GMP_MPARAM_H_SUGGEST "/u1/netbsd-HEAD/src/external/lgpl3/gmp/dist/mpn/vax/gmp-mparam.h"
+
+/* Define to 1 if you have the `alarm' function. */
+#define HAVE_ALARM 1
+
+/* Define to 1 if alloca() works (via gmp-impl.h). */
+#define HAVE_ALLOCA 1
+
+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
+   */
+/* #undef HAVE_ALLOCA_H */
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((const)) */
+#define HAVE_ATTRIBUTE_CONST 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((malloc)) */
+#define HAVE_ATTRIBUTE_MALLOC 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((mode (XX)))
+   */
+#define HAVE_ATTRIBUTE_MODE 1
+
+/* Define to 1 if the compiler accepts gcc style __attribute__ ((noreturn)) */
+#define HAVE_ATTRIBUTE_NORETURN 1
+
+/* Define to 1 if you have the `attr_get' function. */
+/* #undef HAVE_ATTR_GET */
+
+/* Define to 1 if tests/libtests has calling conventions checking for the CPU
+   */
+/* #undef HAVE_CALLING_CONVENTIONS */
+
+/* Define to 1 if you have the `clock' function. */
+#define HAVE_CLOCK 1
+
+/* Define to 1 if you have the `clock_gettime' function. */
+#define HAVE_CLOCK_GETTIME 1
+
+/* Define to 1 if you have the `cputime' function. */
+/* #undef HAVE_CPUTIME */
+
+/* Define to 1 if you have the declaration of `fgetc', and to 0 if you don't.
+   */
+#define HAVE_DECL_FGETC 1
+
+/* Define to 1 if you have the declaration of `fscanf', and to 0 if you don't.
+   */
+#define HAVE_DECL_FSCANF 1
+
+/* Define to 1 if you have the declaration of `optarg', and to 0 if you don't.
+   */
+#define HAVE_DECL_OPTARG 1
+
+/* Define to 1 if you have the declaration of `sys_errlist', and to 0 if you
+   don't. */
+#define HAVE_DECL_SYS_ERRLIST 1
+
+/* Define to 1 if you have the declaration of `sys_nerr', and to 0 if you
+   don't. */
+#define HAVE_DECL_SYS_NERR 1
+
+/* Define to 1 if you have the declaration of `ungetc', and to 0 if you don't.
+   */
+#define HAVE_DECL_UNGETC 1
+
+/* Define to 1 if you have the declaration of `vfprintf', and to 0 if you
+   don't. */
+#define HAVE_DECL_VFPRINTF 1
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define one of the following to 1 for the format of a `double'.
+   If your format is not among these choices, or you don't know what it is,
+   then leave all undefined.
+   IEEE_LITTLE_SWAPPED means little endian, but with the two 4-byte halves
+   swapped, as used by ARM CPUs in little endian mode.  */
+/* #undef HAVE_DOUBLE_IEEE_BIG_ENDIAN */
+/* #undef HAVE_DOUBLE_IEEE_LITTLE_ENDIAN */
+/* #undef HAVE_DOUBLE_IEEE_LITTLE_SWAPPED */
+#define HAVE_DOUBLE_VAX_D 1
+/* #undef HAVE_DOUBLE_VAX_G */
+/* #undef HAVE_DOUBLE_CRAY_CFP */
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define to 1 if you have the <float.h> header file. */
+#define HAVE_FLOAT_H 1
+
+/* Define to 1 if you have the `getpagesize' function. */
+#define HAVE_GETPAGESIZE 1
+
+/* Define to 1 if you have the `getrusage' function. */



Home | Main Index | Thread Index | Old Index