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 RISC-V configury.



details:   https://anonhg.NetBSD.org/src/rev/1ae610ff7af5
branches:  trunk
changeset: 332390:1ae610ff7af5
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Sep 19 17:23:57 2014 +0000

description:
RISC-V configury.

diffstat:

 external/lgpl3/gmp/lib/libgmp/arch/riscv32/Makefile.inc |   184 +
 external/lgpl3/gmp/lib/libgmp/arch/riscv32/config.h     |   630 ++++
 external/lgpl3/gmp/lib/libgmp/arch/riscv32/config.m4    |    19 +
 external/lgpl3/gmp/lib/libgmp/arch/riscv32/gmp-mparam.h |    22 +
 external/lgpl3/gmp/lib/libgmp/arch/riscv32/gmp.h        |  2231 +++++++++++++++
 external/lgpl3/gmp/lib/libgmp/arch/riscv64/Makefile.inc |   184 +
 external/lgpl3/gmp/lib/libgmp/arch/riscv64/config.h     |   630 ++++
 external/lgpl3/gmp/lib/libgmp/arch/riscv64/config.m4    |    19 +
 external/lgpl3/gmp/lib/libgmp/arch/riscv64/gmp-mparam.h |    22 +
 external/lgpl3/gmp/lib/libgmp/arch/riscv64/gmp.h        |  2231 +++++++++++++++
 10 files changed, 6172 insertions(+), 0 deletions(-)

diffs (truncated from 6212 to 300 lines):

diff -r 1bed8eb9e116 -r 1ae610ff7af5 external/lgpl3/gmp/lib/libgmp/arch/riscv32/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/riscv32/Makefile.inc   Fri Sep 19 17:23:57 2014 +0000
@@ -0,0 +1,184 @@
+#      $NetBSD: Makefile.inc,v 1.1 2014/09/19 17:23:57 matt Exp $
+
+SRCS+= \
+       random.c \
+       toom_interpolate_7pts.c \
+       divrem_2.c \
+       sbpi1_divappr_q.c \
+       random2.c \
+       mu_bdiv_q.c \
+       mulmid_basecase.c \
+       jacobi_2.c \
+       toom32_mul.c \
+       toom2_sqr.c \
+       toom44_mul.c \
+       toom8h_mul.c \
+       zero.c \
+       mod_1_4.c \
+       gcdext.c \
+       add_err3_n.c \
+       binvert.c \
+       mu_div_q.c \
+       invertappr.c \
+       add_n_sub_n.c \
+       dump.c \
+       mu_divappr_q.c \
+       dcpi1_div_qr.c \
+       hgcd_reduce.c \
+       matrix22_mul1_inverse_vector.c \
+       tabselect.c \
+       toom6_sqr.c \
+       divrem_1.c \
+       hgcd_step.c \
+       sub_err3_n.c \
+       mod_1.c \
+       toom42_mulmid.c \
+       divexact.c \
+       jacobi.c \
+       powlo.c \
+       mul.c \
+       set_str.c \
+       toom42_mul.c \
+       toom_interpolate_6pts.c \
+       toom54_mul.c \
+       dcpi1_divappr_q.c \
+       copyd.c \
+       toom_eval_dgr3_pm2.c \
+       mod_1_3.c \
+       com.c \
+       copyi.c \
+       toom_couple_handling.c \
+       lshift.c \
+       add.c \
+       div_qr_2.c \
+       toom_interpolate_12pts.c \
+       perfsqr.c \
+       toom53_mul.c \
+       toom_eval_pm2exp.c \
+       mu_div_qr.c \
+       toom_interpolate_16pts.c \
+       mod_34lsub1.c \
+       bdiv_q.c \
+       toom22_mul.c \
+       bsqrtinv.c \
+       toom4_sqr.c \
+       rshift.c \
+       div_q.c \
+       jacbase.c \
+       addcnd_n.c \
+       hgcd_matrix.c \
+       toom_eval_dgr3_pm1.c \
+       mullo_n.c \
+       toom33_mul.c \
+       mod_1_2.c \
+       sub_1.c \
+       add_err2_n.c \
+       trialdiv.c \
+       add_1.c \
+       sqr_basecase.c \
+       toom_interpolate_5pts.c \
+       sbpi1_bdiv_q.c \
+       pre_mod_1.c \
+       hgcd.c \
+       bdiv_dbm1c.c \
+       sqrtrem.c \
+       bdiv_q_1.c \
+       gcdext_1.c \
+       toom63_mul.c \
+       div_qr_2u_pi1.c \
+       toom8_sqr.c \
+       mul_basecase.c \
+       addmul_1.c \
+       neg.c \
+       gcdext_lehmer.c \
+       divis.c \
+       dcpi1_div_q.c \
+       mul_1.c \
+       sub_n.c \
+       toom_eval_pm2.c \
+       add_n.c \
+       subcnd_n.c \
+       hgcd2.c \
+       toom62_mul.c \
+       comb_tables.c \
+       sbpi1_bdiv_qr.c \
+       sub_err2_n.c \
+       scan1.c \
+       brootinv.c \
+       pre_divrem_1.c \
+       perfpow.c \
+       get_str.c \
+       mulmod_bnm1.c \
+       mullo_basecase.c \
+       tdiv_qr.c \
+       div_qr_2n_pi1.c \
+       toom43_mul.c \
+       mod_1_1.c \
+       matrix22_mul.c \
+       powm_sec.c \
+       divrem.c \
+       bsqrt.c \
+       gcd_1.c \
+       dcpi1_bdiv_qr.c \
+       mul_n.c \
+       redc_2.c \
+       submul_1.c \
+       toom6h_mul.c \
+       sqrmod_bnm1.c \
+       mul_fft.c \
+       mulmid.c \
+       powm.c \
+       rootrem.c \
+       mode1o.c \
+       toom_interpolate_8pts.c \
+       remove.c \
+       lshiftc.c \
+       dive_1.c \
+       cmp.c \
+       toom_eval_pm1.c \
+       hgcd_appr.c \
+       scan0.c \
+       gcd_subdiv_step.c \
+       sbpi1_div_qr.c \
+       invert.c \
+       sub.c \
+       toom_eval_pm2rexp.c \
+       broot.c \
+       dcpi1_bdiv_q.c \
+       hgcd2_jacobi.c \
+       add_err1_n.c \
+       mulmid_n.c \
+       redc_1.c \
+       sqr.c \
+       nussbaumer_mul.c \
+       mu_bdiv_qr.c \
+       pow_1.c \
+       get_d.c \
+       toom52_mul.c \
+       sbpi1_div_q.c \
+       diveby3.c \
+       fib2_ui.c \
+       bdiv_qr.c \
+       hgcd_jacobi.c \
+       toom3_sqr.c \
+       gcd.c \
+       redc_n.c \
+       sub_err1_n.c \
+
+C_SRCS_LIST= \
+       xor_n.c                 mpn/generic/logops_n.c \
+       sb_div_r_sec.c          mpn/generic/sb_div_sec.c \
+       nand_n.c                mpn/generic/logops_n.c \
+       nior_n.c                mpn/generic/logops_n.c \
+       hamdist.c               mpn/generic/popham.c \
+       popcount.c              mpn/generic/popham.c \
+       sbpi1_div_qr_sec.c      mpn/generic/sbpi1_div_sec.c \
+       and_n.c                 mpn/generic/logops_n.c \
+       ior_n.c                 mpn/generic/logops_n.c \
+       sb_div_qr_sec.c         mpn/generic/sb_div_sec.c \
+       xnor_n.c                mpn/generic/logops_n.c \
+       iorn_n.c                mpn/generic/logops_n.c \
+       sbpi1_div_r_sec.c       mpn/generic/sbpi1_div_sec.c \
+       andn_n.c                mpn/generic/logops_n.c \
+
+GMP_LIMB_BITS=32
diff -r 1bed8eb9e116 -r 1ae610ff7af5 external/lgpl3/gmp/lib/libgmp/arch/riscv32/config.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/lgpl3/gmp/lib/libgmp/arch/riscv32/config.h       Fri Sep 19 17:23:57 2014 +0000
@@ -0,0 +1,630 @@
+/* config.h.  Generated from config.in by configure.  */
+/* config.in.  Generated from configure.ac by autoheader.  */
+
+/*
+
+Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+2007, 2008, 2009, 2010, 2011, 2012, 2013 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 "./mpn/generic/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 */
+#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1



Home | Main Index | Thread Index | Old Index