From c73af9c1160939d1252a363fec572e5667ceb426 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Sun, 12 Mar 2017 14:51:21 +0000 Subject: [PATCH] - changed info in headers in source files: (new) BSD licence -> 3-Clause BSD Licence - added svn:ignore in some places git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@1051 e52654a7-88a9-db11-a3e9-0013d4bc506e --- constgen/Makefile | 6 +++--- constgen/main.cpp | 4 ++-- samples/Makefile | 13 +++++++------ tests/Makefile | 6 +++--- tests/main.cpp | 4 ++-- tests/uinttest.cpp | 4 ++-- tests/uinttest.h | 4 ++-- ttmath/ttmath.h | 2 +- ttmath/ttmathbig.h | 8 +++++++- ttmath/ttmathdec.h | 2 +- ttmath/ttmathint.h | 2 +- ttmath/ttmathmisc.h | 2 +- ttmath/ttmathobjects.h | 2 +- ttmath/ttmathparser.h | 2 +- ttmath/ttmaththreads.h | 2 +- ttmath/ttmathtypes.h | 2 +- ttmath/ttmathuint.h | 2 +- ttmath/ttmathuint_noasm.h | 2 +- ttmath/ttmathuint_x86.h | 2 +- ttmath/ttmathuint_x86_64.h | 2 +- ttmath/ttmathuint_x86_64_msvc.asm | 2 +- 21 files changed, 41 insertions(+), 34 deletions(-) diff --git a/constgen/Makefile b/constgen/Makefile index b1a790b..3d19b92 100644 --- a/constgen/Makefile +++ b/constgen/Makefile @@ -1,6 +1,6 @@ o = main.o -CC = g++ -CFLAGS = -s -O2 -DTTMATH_CONSTANTSGENERATOR +CC = clang++ +CFLAGS = -O2 -DTTMATH_CONSTANTSGENERATOR name = gen @@ -13,7 +13,7 @@ name = gen all: $(name) $(name): $(o) - $(CC) -o $(name) $(CFLAGS) $(o) + $(CC) -o $(name) -s $(CFLAGS) $(o) diff --git a/constgen/main.cpp b/constgen/main.cpp index e6b7fe4..abcc716 100644 --- a/constgen/main.cpp +++ b/constgen/main.cpp @@ -1,7 +1,7 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. - * Author: Tomasz Sowa + * and is distributed under the 3-Clause BSD Licence. + * Author: Tomasz Sowa */ /* diff --git a/samples/Makefile b/samples/Makefile index cd2e30d..890eac8 100644 --- a/samples/Makefile +++ b/samples/Makefile @@ -1,5 +1,6 @@ CC = g++ -CFLAGS = -Wall -pedantic -s -O2 -I.. -DTTMATH_DONT_USE_WCHAR +#CC = clang++ +CFLAGS = -Wall -pedantic -O2 -I.. -DTTMATH_DONT_USE_WCHAR .SUFFIXES: .cpp .o @@ -12,19 +13,19 @@ all: uint int big big2 parser uint: uint.o - $(CC) -o uint $(CFLAGS) uint.o + $(CC) -o uint -s $(CFLAGS) uint.o int: int.o - $(CC) -o int $(CFLAGS) int.o + $(CC) -o int -s $(CFLAGS) int.o big: big.o - $(CC) -o big $(CFLAGS) big.o + $(CC) -o big -s $(CFLAGS) big.o big2: big2.o - $(CC) -o big2 $(CFLAGS) big2.o + $(CC) -o big2 -s $(CFLAGS) big2.o parser: parser.o - $(CC) -o parser $(CFLAGS) parser.o + $(CC) -o parser -s $(CFLAGS) parser.o uint.o: uint.cpp diff --git a/tests/Makefile b/tests/Makefile index be1c0ca..010bb75 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,6 +1,6 @@ -CC = g++ +CC = clang++ o = main.o uinttest.o -CFLAGS = -Wall -O2 -s +CFLAGS = -Wall -O2 ttmath = .. name = tests @@ -16,7 +16,7 @@ all: $(name) $(name): $(o) - $(CC) -o $(name) $(CFLAGS) -I$(ttmath) $(o) + $(CC) -o $(name) -s $(CFLAGS) -I$(ttmath) $(o) main.o: main.cpp uinttest.h diff --git a/tests/main.cpp b/tests/main.cpp index 6582188..15e47f2 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -1,7 +1,7 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. - * Author: Tomasz Sowa + * and is distributed under the 3-Clause BSD Licence. + * Author: Tomasz Sowa */ /* diff --git a/tests/uinttest.cpp b/tests/uinttest.cpp index d0eb6a6..af012df 100644 --- a/tests/uinttest.cpp +++ b/tests/uinttest.cpp @@ -1,7 +1,7 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. - * Author: Tomasz Sowa + * and is distributed under the 3-Clause BSD Licence. + * Author: Tomasz Sowa */ /* diff --git a/tests/uinttest.h b/tests/uinttest.h index 7941bec..0f2efde 100644 --- a/tests/uinttest.h +++ b/tests/uinttest.h @@ -1,7 +1,7 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. - * Author: Tomasz Sowa + * and is distributed under the 3-Clause BSD Licence. + * Author: Tomasz Sowa */ /* diff --git a/ttmath/ttmath.h b/ttmath/ttmath.h index a044912..3a6218d 100644 --- a/ttmath/ttmath.h +++ b/ttmath/ttmath.h @@ -1,6 +1,6 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. + * and is distributed under the 3-Clause BSD Licence. * Author: Tomasz Sowa */ diff --git a/ttmath/ttmathbig.h b/ttmath/ttmathbig.h index 74e8402..fceef74 100644 --- a/ttmath/ttmathbig.h +++ b/ttmath/ttmathbig.h @@ -1,6 +1,6 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. + * and is distributed under the 3-Clause BSD Licence. * Author: Tomasz Sowa */ @@ -392,6 +392,8 @@ public: */ void SetPi() { + // IMPROVE ME + // give some compiler-time warning when the size of mantissa is greater than the builtin size of the mantissa pi SetMantissaPi(); info = 0; exponent = -sint(man)*sint(TTMATH_BITS_PER_UINT) + 2; @@ -403,6 +405,8 @@ public: */ void Set05Pi() { + // IMPROVE ME + // give some compiler-time warning when the size of mantissa is greater than the builtin size of the mantissa pi SetMantissaPi(); info = 0; exponent = -sint(man)*sint(TTMATH_BITS_PER_UINT) + 1; @@ -414,6 +418,8 @@ public: */ void Set2Pi() { + // IMPROVE ME + // give some compiler-time warning when the size of mantissa is greater than the builtin size of the mantissa pi SetMantissaPi(); info = 0; exponent = -sint(man)*sint(TTMATH_BITS_PER_UINT) + 3; diff --git a/ttmath/ttmathdec.h b/ttmath/ttmathdec.h index 92d3e39..ec2c753 100644 --- a/ttmath/ttmathdec.h +++ b/ttmath/ttmathdec.h @@ -1,6 +1,6 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. + * and is distributed under the 3-Clause BSD Licence. * Author: Tomasz Sowa */ diff --git a/ttmath/ttmathint.h b/ttmath/ttmathint.h index 33c614d..b2c8d87 100644 --- a/ttmath/ttmathint.h +++ b/ttmath/ttmathint.h @@ -1,6 +1,6 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. + * and is distributed under the 3-Clause BSD Licence. * Author: Tomasz Sowa */ diff --git a/ttmath/ttmathmisc.h b/ttmath/ttmathmisc.h index 330a43a..fae4255 100644 --- a/ttmath/ttmathmisc.h +++ b/ttmath/ttmathmisc.h @@ -1,6 +1,6 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. + * and is distributed under the 3-Clause BSD Licence. * Author: Tomasz Sowa */ diff --git a/ttmath/ttmathobjects.h b/ttmath/ttmathobjects.h index c988570..39e9db8 100644 --- a/ttmath/ttmathobjects.h +++ b/ttmath/ttmathobjects.h @@ -1,6 +1,6 @@ /* * This file is a part of TTMath Mathematical Library - * and is distributed under the (new) BSD licence. + * and is distributed under the 3-Clause BSD Licence. * Author: Tomasz Sowa */ diff --git a/ttmath/ttmathparser.h b/ttmath/ttmathparser.h index f27f4bf..d9b7ce7 100644 --- a/ttmath/ttmathparser.h +++ b/ttmath/ttmathparser.h @@ -1,6 +1,6 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. + * and is distributed under the 3-Clause BSD Licence. * Author: Tomasz Sowa */ diff --git a/ttmath/ttmaththreads.h b/ttmath/ttmaththreads.h index 586227f..dc2aa4e 100644 --- a/ttmath/ttmaththreads.h +++ b/ttmath/ttmaththreads.h @@ -1,6 +1,6 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. + * and is distributed under the 3-Clause BSD Licence. * Author: Tomasz Sowa */ diff --git a/ttmath/ttmathtypes.h b/ttmath/ttmathtypes.h index 1fda735..7880f9a 100644 --- a/ttmath/ttmathtypes.h +++ b/ttmath/ttmathtypes.h @@ -1,6 +1,6 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. + * and is distributed under the 3-Clause BSD Licence. * Author: Tomasz Sowa */ diff --git a/ttmath/ttmathuint.h b/ttmath/ttmathuint.h index 7c5341a..4cfbeab 100644 --- a/ttmath/ttmathuint.h +++ b/ttmath/ttmathuint.h @@ -1,6 +1,6 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. + * and is distributed under the 3-Clause BSD Licence. * Author: Tomasz Sowa */ diff --git a/ttmath/ttmathuint_noasm.h b/ttmath/ttmathuint_noasm.h index 07c73fc..8ede287 100644 --- a/ttmath/ttmathuint_noasm.h +++ b/ttmath/ttmathuint_noasm.h @@ -1,6 +1,6 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. + * and is distributed under the 3-Clause BSD Licence. * Author: Tomasz Sowa */ diff --git a/ttmath/ttmathuint_x86.h b/ttmath/ttmathuint_x86.h index 1dd087f..da41e3e 100644 --- a/ttmath/ttmathuint_x86.h +++ b/ttmath/ttmathuint_x86.h @@ -1,6 +1,6 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. + * and is distributed under the 3-Clause BSD Licence. * Author: Tomasz Sowa */ diff --git a/ttmath/ttmathuint_x86_64.h b/ttmath/ttmathuint_x86_64.h index 188fc5e..2873da8 100644 --- a/ttmath/ttmathuint_x86_64.h +++ b/ttmath/ttmathuint_x86_64.h @@ -1,6 +1,6 @@ /* * This file is a part of TTMath Bignum Library - * and is distributed under the (new) BSD licence. + * and is distributed under the 3-Clause BSD Licence. * Author: Tomasz Sowa */ diff --git a/ttmath/ttmathuint_x86_64_msvc.asm b/ttmath/ttmathuint_x86_64_msvc.asm index 40353a5..f8f0e14 100644 --- a/ttmath/ttmathuint_x86_64_msvc.asm +++ b/ttmath/ttmathuint_x86_64_msvc.asm @@ -1,6 +1,6 @@ ; ; This file is a part of TTMath Bignum Library -; and is distributed under the (new) BSD licence. +; and is distributed under the 3-Clause BSD Licence. ; Author: Christian Kaiser , Tomasz Sowa ;