more clean-up & relicense
This commit is contained in:
parent
2c320c3d54
commit
6ac31fe980
@ -1,3 +1,6 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
|
|
||||||
#include "tfm.h"
|
#include "tfm.h"
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
|
|
||||||
/* A simple static test program. */
|
/* A simple static test program. */
|
||||||
#include <tfm.h>
|
#include <tfm.h>
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
|
|
||||||
/* TFM demo program */
|
/* TFM demo program */
|
||||||
#include <tfm.h>
|
#include <tfm.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
|
|
||||||
/* TFM timing analysis */
|
/* TFM timing analysis */
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#include <tfm.h>
|
#include <tfm.h>
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# TomsFastMath, a fast ISO C bignum library. -- Tom St Denis
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
ifeq ($V,1)
|
ifeq ($V,1)
|
||||||
silent=
|
silent=
|
||||||
silent_stdout=
|
silent_stdout=
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
% TomsFastMath, a fast ISO C bignum library. -- Tom St Denis
|
||||||
|
% SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
\documentclass[b5paper]{book}
|
\documentclass[b5paper]{book}
|
||||||
\usepackage{hyperref}
|
\usepackage{hyperref}
|
||||||
\usepackage{makeidx}
|
\usepackage{makeidx}
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
|
#
|
||||||
# we want to filter every between START_INS and END_INS out and then insert crap from another file (this is fun)
|
# we want to filter every between START_INS and END_INS out and then insert crap from another file (this is fun)
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
$dst = shift;
|
$dst = shift;
|
||||||
$ins = shift;
|
$ins = shift;
|
||||||
|
1
gen.pl
1
gen.pl
@ -3,6 +3,7 @@
|
|||||||
# Generates a "single file" you can use to quickly
|
# Generates a "single file" you can use to quickly
|
||||||
# add the whole source without any makefile troubles
|
# add the whole source without any makefile troubles
|
||||||
#
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
open( OUT, ">mpi.c" ) or die "Couldn't open mpi.c for writing: $!";
|
open( OUT, ">mpi.c" ) or die "Couldn't open mpi.c for writing: $!";
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
export a=`find . -type f | sort | grep "[.]/src" | grep "[.]c" | grep -v generators | sed -e 'sE\./EE' | sed -e 's/\.c/\.o/' | xargs`
|
export a=`find . -type f | sort | grep "[.]/src" | grep "[.]c" | grep -v generators | sed -e 'sE\./EE' | sed -e 's/\.c/\.o/' | xargs`
|
||||||
perl ./parsenames.pl OBJECTS "$a"
|
perl ./parsenames.pl OBJECTS "$a"
|
||||||
export a=`find . -type f | grep [.]/src | grep [.]h | sed -e 'se\./ee' | xargs`
|
export a=`find . -type f | grep [.]/src | grep [.]h | sed -e 'se\./ee' | xargs`
|
||||||
perl ./parsenames.pl HEADERS "$a"
|
perl ./parsenames.pl HEADERS "$a"
|
||||||
|
|
||||||
# $Source: /cvs/libtom/tomsfastmath/genlist.sh,v $
|
|
||||||
# $Revision: 1.1 $
|
|
||||||
# $Date: 2006/12/31 21:31:40 $
|
|
||||||
|
10
makefile
10
makefile
@ -1,6 +1,6 @@
|
|||||||
#makefile for TomsFastMath
|
# makefile for TomsFastMath, a fast ISO C bignum library. -- Tom St Denis
|
||||||
#
|
# SPDX-License-Identifier: Unlicense
|
||||||
#
|
|
||||||
ifndef LIBNAME
|
ifndef LIBNAME
|
||||||
LIBNAME=libtfm.a
|
LIBNAME=libtfm.a
|
||||||
endif
|
endif
|
||||||
@ -130,7 +130,3 @@ stest: $(LIBNAME) demo/stest.o
|
|||||||
|
|
||||||
rsatest: $(LIBNAME) demo/rsa.o
|
rsatest: $(LIBNAME) demo/rsa.o
|
||||||
$(CC) $(CFLAGS) demo/rsa.o $(LIBNAME) -o rsatest
|
$(CC) $(CFLAGS) demo/rsa.o $(LIBNAME) -o rsatest
|
||||||
|
|
||||||
# ref: $Format:%D$
|
|
||||||
# git commit: $Format:%H$
|
|
||||||
# commit time: $Format:%ai$
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#makefile for TomsFastMath
|
# makefile for TomsFastMath, a fast ISO C bignum library. -- Tom St Denis
|
||||||
#
|
# SPDX-License-Identifier: Unlicense
|
||||||
#
|
|
||||||
ifndef LIBNAME
|
ifndef LIBNAME
|
||||||
LIBNAME=libtfm.la
|
LIBNAME=libtfm.la
|
||||||
endif
|
endif
|
||||||
@ -80,8 +80,3 @@ stest: $(LIBNAME) demo/stest.o
|
|||||||
.PHONY: timing
|
.PHONY: timing
|
||||||
timing: $(LIBNAME) demo/timing.o
|
timing: $(LIBNAME) demo/timing.o
|
||||||
$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o timing demo/timing.o $(LIBNAME)
|
$(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o timing demo/timing.o $(LIBNAME)
|
||||||
|
|
||||||
# $Source$
|
|
||||||
# $Revision$
|
|
||||||
# $Date$
|
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Include makefile used by makefile + makefile.shared
|
# Include makefile used by makefile + makefile.shared
|
||||||
# (GNU make only)
|
# (GNU make only)
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
ifndef INSTALL_CMD
|
ifndef INSTALL_CMD
|
||||||
$(error your makefile must define INSTALL_CMD)
|
$(error your makefile must define INSTALL_CMD)
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# TomsFastMath, a fast ISO C bignum library. -- Tom St Denis
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
CFLAGS += -Wall -W -O3 -Wno-unused-result
|
CFLAGS += -Wall -W -O3 -Wno-unused-result
|
||||||
|
|
||||||
default: mtest
|
default: mtest
|
||||||
|
@ -27,6 +27,7 @@ mulmod
|
|||||||
1
|
1
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
|
|
||||||
#ifdef MP_8BIT
|
#ifdef MP_8BIT
|
||||||
#define THE_MASK 127
|
#define THE_MASK 127
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
# wrapped at 80 chars
|
# wrapped at 80 chars
|
||||||
#
|
#
|
||||||
# Tom St Denis
|
# Tom St Denis
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
@a = split(" ", $ARGV[1]);
|
@a = split(" ", $ARGV[1]);
|
||||||
$b = "$ARGV[0]=";
|
$b = "$ARGV[0]=";
|
||||||
$len = length($b);
|
$len = length($b);
|
||||||
@ -20,7 +21,3 @@ foreach my $obj (@a) {
|
|||||||
#if ($ARGV[0] eq "HEADERS") { print "testprof/tomcrypt_test.h"; }
|
#if ($ARGV[0] eq "HEADERS") { print "testprof/tomcrypt_test.h"; }
|
||||||
|
|
||||||
print "\n\n";
|
print "\n\n";
|
||||||
|
|
||||||
# $Source: /cvs/libtom/tomsfastmath/parsenames.pl,v $
|
|
||||||
# $Revision: 1.1 $
|
|
||||||
# $Date: 2006/12/31 21:31:40 $
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
@ -8,6 +11,8 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
printf(
|
printf(
|
||||||
#if 1
|
#if 1
|
||||||
|
"/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */\n"
|
||||||
|
"/* SPDX-License-Identifier: Unlicense */\n"
|
||||||
"#ifdef TFM_SMALL_MONT_SET\n"
|
"#ifdef TFM_SMALL_MONT_SET\n"
|
||||||
"/* computes x/R == x (mod N) via Montgomery Reduction */\n"
|
"/* computes x/R == x (mod N) via Montgomery Reduction */\n"
|
||||||
"void fp_montgomery_reduce_small(fp_int *a, fp_int *m, fp_digit mp)\n"
|
"void fp_montgomery_reduce_small(fp_int *a, fp_int *m, fp_digit mp)\n"
|
||||||
|
@ -12,6 +12,8 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
/* print out preamble */
|
/* print out preamble */
|
||||||
printf(
|
printf(
|
||||||
|
"/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */\n"
|
||||||
|
"/* SPDX-License-Identifier: Unlicense */\n"
|
||||||
"#ifndef TFM_PRE_GEN_MPI_C\n"
|
"#ifndef TFM_PRE_GEN_MPI_C\n"
|
||||||
"#define TFM_DEFINES\n"
|
"#define TFM_DEFINES\n"
|
||||||
"#include \"fp_mul_comba.c\"\n"
|
"#include \"fp_mul_comba.c\"\n"
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
|
|
||||||
/* program emits a NxN comba multiplier for 1x1 to 16x16 */
|
/* program emits a NxN comba multiplier for 1x1 to 16x16 */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
@ -7,6 +10,8 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
/* print out preamble */
|
/* print out preamble */
|
||||||
printf(
|
printf(
|
||||||
|
"/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */\n"
|
||||||
|
"/* SPDX-License-Identifier: Unlicense */\n"
|
||||||
"#ifndef TFM_PRE_GEN_MPI_C\n"
|
"#ifndef TFM_PRE_GEN_MPI_C\n"
|
||||||
"#define TFM_DEFINES\n"
|
"#define TFM_DEFINES\n"
|
||||||
"#include \"fp_mul_comba.c\"\n"
|
"#include \"fp_mul_comba.c\"\n"
|
||||||
|
@ -10,6 +10,8 @@ int main(int argc, char **argv)
|
|||||||
N = atoi(argv[1]);
|
N = atoi(argv[1]);
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
"/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */\n"
|
||||||
|
"/* SPDX-License-Identifier: Unlicense */\n"
|
||||||
"#ifndef TFM_PRE_GEN_MPI_C\n"
|
"#ifndef TFM_PRE_GEN_MPI_C\n"
|
||||||
"#define TFM_DEFINES\n"
|
"#define TFM_DEFINES\n"
|
||||||
"#include \"fp_sqr_comba.c\"\n"
|
"#include \"fp_sqr_comba.c\"\n"
|
||||||
|
@ -9,6 +9,8 @@ int main(int argc, char **argv)
|
|||||||
int x, y, z, N, f;
|
int x, y, z, N, f;
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
"/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */\n"
|
||||||
|
"/* SPDX-License-Identifier: Unlicense */\n"
|
||||||
"#ifndef TFM_PRE_GEN_MPI_C\n"
|
"#ifndef TFM_PRE_GEN_MPI_C\n"
|
||||||
"#define TFM_DEFINES\n"
|
"#define TFM_DEFINES\n"
|
||||||
"#include \"fp_sqr_comba.c\"\n"
|
"#include \"fp_sqr_comba.c\"\n"
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# TomsFastMath, a fast ISO C bignum library. -- Tom St Denis
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
all: comba_sqr_gen comba_sqr_smallgen
|
all: comba_sqr_gen comba_sqr_smallgen
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
/* TomsFastMath, a fast ISO C bignum library.
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis
|
||||||
*
|
*
|
||||||
* This project is meant to fill in where LibTomMath
|
* This project is meant to fill in where LibTomMath
|
||||||
* falls short. That is speed ;-)
|
* falls short. That is speed ;-)
|
||||||
*
|
*
|
||||||
* This project is public domain and free for all purposes.
|
* This project is public domain and free for all purposes.
|
||||||
*
|
|
||||||
* Tom St Denis, tomstdenis@gmail.com
|
|
||||||
*/
|
*/
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_H_
|
#ifndef TFM_H_
|
||||||
#define TFM_H_
|
#define TFM_H_
|
||||||
|
|
||||||
@ -492,7 +491,3 @@ int fp_toradix(fp_int *a, char *str, int radix);
|
|||||||
int fp_toradix_n(fp_int * a, char *str, int radix, int maxlen);
|
int fp_toradix_n(fp_int * a, char *str, int radix, int maxlen);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* $Source$ */
|
|
||||||
/* $Revision$ */
|
|
||||||
/* $Date$ */
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
/* TomsFastMath, a fast ISO C bignum library.
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
*
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
* This project is meant to fill in where LibTomMath
|
|
||||||
* falls short. That is speed ;-)
|
|
||||||
*
|
|
||||||
* This project is public domain and free for all purposes.
|
|
||||||
*
|
|
||||||
* Tom St Denis, tomstdenis@gmail.com
|
|
||||||
*/
|
|
||||||
#ifndef TFM_PRIVATE_H_
|
#ifndef TFM_PRIVATE_H_
|
||||||
#define TFM_PRIVATE_H_
|
#define TFM_PRIVATE_H_
|
||||||
|
|
||||||
@ -119,7 +112,3 @@ void fp_sqr_comba64(fp_int *A, fp_int *B);
|
|||||||
extern const char *fp_s_rmap;
|
extern const char *fp_s_rmap;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* $Source$ */
|
|
||||||
/* $Revision$ */
|
|
||||||
/* $Date$ */
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifdef TFM_SMALL_MONT_SET
|
#ifdef TFM_SMALL_MONT_SET
|
||||||
/* computes x/R == x (mod N) via Montgomery Reduction */
|
/* computes x/R == x (mod N) via Montgomery Reduction */
|
||||||
void fp_montgomery_reduce_small(fp_int *a, fp_int *m, fp_digit mp)
|
void fp_montgomery_reduce_small(fp_int *a, fp_int *m, fp_digit mp)
|
||||||
|
@ -125,8 +125,3 @@ clean:
|
|||||||
C->dp[y] = 0;
|
C->dp[y] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* $Source: /cvs/libtom/tomsfastmath/src/mul/fp_mul.c,v $ */
|
|
||||||
/* $Revision: 1.1 $ */
|
|
||||||
/* $Date: 2006/12/31 21:25:53 $ */
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_mul_comba.c"
|
#include "fp_mul_comba.c"
|
||||||
|
@ -112,8 +112,3 @@ clean:
|
|||||||
B->dp[y] = 0;
|
B->dp[y] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* $Source: /cvs/libtom/tomsfastmath/src/sqr/fp_sqr.c,v $ */
|
|
||||||
/* $Revision: 1.1 $ */
|
|
||||||
/* $Date: 2006/12/31 21:25:53 $ */
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/* TomsFastMath, a fast ISO C bignum library. -- Tom St Denis */
|
||||||
|
/* SPDX-License-Identifier: Unlicense */
|
||||||
#ifndef TFM_PRE_GEN_MPI_C
|
#ifndef TFM_PRE_GEN_MPI_C
|
||||||
#define TFM_DEFINES
|
#define TFM_DEFINES
|
||||||
#include "fp_sqr_comba.c"
|
#include "fp_sqr_comba.c"
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
#
|
#
|
||||||
# Can be run with e.g. ./testme.sh "gcc-4.8 gcc-4.9", defaults to ./testme.sh "gcc"
|
# Can be run with e.g. ./testme.sh "gcc-4.8 gcc-4.9", defaults to ./testme.sh "gcc"
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
_runtest()
|
_runtest()
|
||||||
{
|
{
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# TomsFastMath, a fast ISO C bignum library. -- Tom St Denis
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
Name: TomFastMath
|
Name: TomFastMath
|
||||||
Description: Fast multiple-precision integer library
|
Description: Fast multiple-precision integer library
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Unlicense
|
||||||
|
|
||||||
bash genlist.sh > tmplist
|
bash genlist.sh > tmplist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user