From 2bb33c26d0929d77c661cb38a10a2852759a3fbb Mon Sep 17 00:00:00 2001 From: niekbouman Date: Thu, 12 Apr 2018 09:56:56 +0200 Subject: [PATCH] changed header (#30) * changed headers in all files * updated license texts --- CMakeLists.txt | 26 +++----------------------- LICENSE | 24 ------------------------ NOTICE | 18 ++++++++++-------- benchmarks/CMakeLists.txt | 25 ++----------------------- benchmarks/src/bench-modexp.cpp | 25 ++----------------------- benchmarks/src/bench-montmul.cpp | 25 ++----------------------- benchmarks/src/bench-mul.cpp | 6 +++--- benchmarks/src/bench.cpp | 6 +++--- include/ctbignum/addition.hpp | 26 +++----------------------- include/ctbignum/barrett.hpp | 25 ++----------------------- include/ctbignum/bigint.hpp | 25 ++----------------------- include/ctbignum/bitshift.hpp | 25 ++----------------------- include/ctbignum/ctbignum.hpp | 25 ++----------------------- include/ctbignum/division.hpp | 25 ++----------------------- include/ctbignum/field.hpp | 25 ++----------------------- include/ctbignum/gcd.hpp | 25 ++----------------------- include/ctbignum/initialization.hpp | 25 ++----------------------- include/ctbignum/io.hpp | 25 ++----------------------- include/ctbignum/mod_exp.hpp | 25 ++----------------------- include/ctbignum/montgomery.hpp | 25 ++----------------------- include/ctbignum/mult.hpp | 25 ++----------------------- include/ctbignum/pow.hpp | 25 ++----------------------- include/ctbignum/print.hpp | 25 ++----------------------- include/ctbignum/relational_ops.hpp | 25 ++----------------------- include/ctbignum/slicing.hpp | 25 ++----------------------- include/ctbignum/type_traits.hpp | 25 ++----------------------- include/ctbignum/utility.hpp | 25 ++----------------------- test/CMakeLists.txt | 25 ++----------------------- test/src/tests_main.cpp | 25 ++----------------------- test/src/unit-field.cpp | 25 ++----------------------- test/src/unit-init.cpp | 25 ++----------------------- test/src/unit-tests.cpp | 25 ++----------------------- 32 files changed, 74 insertions(+), 682 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fac89b5..0dc4cfe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,26 +1,6 @@ -# -# This file is part of: -# -# CTBignum -# -# C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -# -# See the NOTICE file for the complete list of authors and contributors -# -# Copyright 2018 Niek J. Bouman -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# This file is distributed under the Apache License, Version 2.0. See the LICENSE +# file for details. + cmake_minimum_required(VERSION 3.0.0) # This cmake file was inspired by that of nlohmann/json diff --git a/LICENSE b/LICENSE index 261eeb9..66a27ec 100644 --- a/LICENSE +++ b/LICENSE @@ -175,27 +175,3 @@ END OF TERMS AND CONDITIONS - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/NOTICE b/NOTICE index 2100c2e..1841889 100644 --- a/NOTICE +++ b/NOTICE @@ -1,8 +1,12 @@ +CTBignum +C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic - Copyright 2018 Niek J. Bouman +Copyright 2018 Authors + Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. + you may not use the files in this repository except in compliance + with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @@ -14,15 +18,12 @@ limitations under the License. -This file is a list of people who have contributed to the ctbignum library. +The following is a list of people who have contributed to the ctbignum library. If you have contributed a patch or made some other contribution to ctbignum, please submit a patch to this file to add yourself, and it will be done! -The list is sorted by surname and formatted to allow easy grepping and -beautification by scripts. The fields are: name (N), email (E), web-address -(W), description (D) - -(The list format is inspired by the CREDITS.TXT file from the LLVM project.) +The list is sorted by surname and formatted to allow automatic processing. +The fields are: name (N), email (E), web-address (W), description (D) N: Niek J. Bouman E: n.j.bouman@tue.nl @@ -31,3 +32,4 @@ D: main designer/author N: Johan Engelen E: jbc.engelen@gmail.com D: CI scripts / code reviews / bugfixes / advice + diff --git a/benchmarks/CMakeLists.txt b/benchmarks/CMakeLists.txt index 6a4f089..c00c489 100644 --- a/benchmarks/CMakeLists.txt +++ b/benchmarks/CMakeLists.txt @@ -1,26 +1,5 @@ -# -# This file is part of: -# -# CTBignum -# -# C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -# -# See the NOTICE file for the complete list of authors and contributors -# -# Copyright 2018 Niek J. Bouman -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# This file is distributed under the Apache License, Version 2.0. See the LICENSE +# file for details. add_executable(bench src/bench.cpp) diff --git a/benchmarks/src/bench-modexp.cpp b/benchmarks/src/bench-modexp.cpp index 96edede..688c028 100644 --- a/benchmarks/src/bench-modexp.cpp +++ b/benchmarks/src/bench-modexp.cpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #include #include #include diff --git a/benchmarks/src/bench-montmul.cpp b/benchmarks/src/bench-montmul.cpp index 5167017..c5b611b 100644 --- a/benchmarks/src/bench-montmul.cpp +++ b/benchmarks/src/bench-montmul.cpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #include #include diff --git a/benchmarks/src/bench-mul.cpp b/benchmarks/src/bench-mul.cpp index f348a87..2fe42ec 100644 --- a/benchmarks/src/bench-mul.cpp +++ b/benchmarks/src/bench-mul.cpp @@ -1,3 +1,5 @@ +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. // // This file is part of: // @@ -5,9 +7,7 @@ // // C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic // -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman +// Copyright 2018 Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/benchmarks/src/bench.cpp b/benchmarks/src/bench.cpp index 0ced848..d1f3e90 100644 --- a/benchmarks/src/bench.cpp +++ b/benchmarks/src/bench.cpp @@ -1,3 +1,5 @@ +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. // // This file is part of: // @@ -5,9 +7,7 @@ // // C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic // -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman +// Copyright 2018 Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/include/ctbignum/addition.hpp b/include/ctbignum/addition.hpp index 17c5b61..bfe36ae 100644 --- a/include/ctbignum/addition.hpp +++ b/include/ctbignum/addition.hpp @@ -1,26 +1,6 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. + #ifndef CT_ADDITION_HPP #define CT_ADDITION_HPP diff --git a/include/ctbignum/barrett.hpp b/include/ctbignum/barrett.hpp index 2e3c6e0..36aa773 100644 --- a/include/ctbignum/barrett.hpp +++ b/include/ctbignum/barrett.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_BARRETT_HPP #define CT_BARRETT_HPP diff --git a/include/ctbignum/bigint.hpp b/include/ctbignum/bigint.hpp index 2681619..7f395af 100644 --- a/include/ctbignum/bigint.hpp +++ b/include/ctbignum/bigint.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_BIGINT_HPP #define CT_BIGINT_HPP diff --git a/include/ctbignum/bitshift.hpp b/include/ctbignum/bitshift.hpp index bd3fd96..32645d6 100644 --- a/include/ctbignum/bitshift.hpp +++ b/include/ctbignum/bitshift.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_BITSHIFTS_HPP #define CT_BITSHIFTS_HPP diff --git a/include/ctbignum/ctbignum.hpp b/include/ctbignum/ctbignum.hpp index 556bf76..e94a1f6 100644 --- a/include/ctbignum/ctbignum.hpp +++ b/include/ctbignum/ctbignum.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_BIGNUM_HPP #define CT_BIGNUM_HPP diff --git a/include/ctbignum/division.hpp b/include/ctbignum/division.hpp index 29776ee..b693941 100644 --- a/include/ctbignum/division.hpp +++ b/include/ctbignum/division.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_DIVISION_HPP #define CT_DIVISION_HPP diff --git a/include/ctbignum/field.hpp b/include/ctbignum/field.hpp index 577b853..94677ba 100644 --- a/include/ctbignum/field.hpp +++ b/include/ctbignum/field.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_FIELD_HPP #define CT_FIELD_HPP diff --git a/include/ctbignum/gcd.hpp b/include/ctbignum/gcd.hpp index d9e4e61..8c7ecb8 100644 --- a/include/ctbignum/gcd.hpp +++ b/include/ctbignum/gcd.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_GCD_HPP #define CT_GCD_HPP diff --git a/include/ctbignum/initialization.hpp b/include/ctbignum/initialization.hpp index bb50fb2..173f54e 100644 --- a/include/ctbignum/initialization.hpp +++ b/include/ctbignum/initialization.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_STRINGINIT_HPP #define CT_STRINGINIT_HPP diff --git a/include/ctbignum/io.hpp b/include/ctbignum/io.hpp index 47df5f2..e5e0be5 100644 --- a/include/ctbignum/io.hpp +++ b/include/ctbignum/io.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_INPUTOUTPUT_HPP #define CT_INPUTOUTPUT_HPP diff --git a/include/ctbignum/mod_exp.hpp b/include/ctbignum/mod_exp.hpp index d744acf..40599b2 100644 --- a/include/ctbignum/mod_exp.hpp +++ b/include/ctbignum/mod_exp.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_MODULAR_EXP_HPP #define CT_MODULAR_EXP_HPP diff --git a/include/ctbignum/montgomery.hpp b/include/ctbignum/montgomery.hpp index 0f41191..f2b2cf5 100644 --- a/include/ctbignum/montgomery.hpp +++ b/include/ctbignum/montgomery.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_MONTGOMERY_HPP #define CT_MONTGOMERY_HPP diff --git a/include/ctbignum/mult.hpp b/include/ctbignum/mult.hpp index a378d55..3b9222f 100644 --- a/include/ctbignum/mult.hpp +++ b/include/ctbignum/mult.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_MULT_HPP #define CT_MULT_HPP diff --git a/include/ctbignum/pow.hpp b/include/ctbignum/pow.hpp index 3821edf..2099995 100644 --- a/include/ctbignum/pow.hpp +++ b/include/ctbignum/pow.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_POW_HPP #define CT_POW_HPP diff --git a/include/ctbignum/print.hpp b/include/ctbignum/print.hpp index 9f8a2f0..1825378 100644 --- a/include/ctbignum/print.hpp +++ b/include/ctbignum/print.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef MYPRINT_HPP #define MYPRINT_HPP diff --git a/include/ctbignum/relational_ops.hpp b/include/ctbignum/relational_ops.hpp index da5df90..0fe8c2b 100644 --- a/include/ctbignum/relational_ops.hpp +++ b/include/ctbignum/relational_ops.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_RELATIONAL_HPP #define CT_RELATIONAL_HPP diff --git a/include/ctbignum/slicing.hpp b/include/ctbignum/slicing.hpp index 7ae61c7..17933af 100644 --- a/include/ctbignum/slicing.hpp +++ b/include/ctbignum/slicing.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_SLICING_HPP #define CT_SLICING_HPP diff --git a/include/ctbignum/type_traits.hpp b/include/ctbignum/type_traits.hpp index 2a75b24..93cd87b 100644 --- a/include/ctbignum/type_traits.hpp +++ b/include/ctbignum/type_traits.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_TYPE_TRAITS_HPP #define CT_TYPE_TRAITS_HPP diff --git a/include/ctbignum/utility.hpp b/include/ctbignum/utility.hpp index c4a433c..4b5b906 100644 --- a/include/ctbignum/utility.hpp +++ b/include/ctbignum/utility.hpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #ifndef CT_UTILITY_HPP #define CT_UTILITY_HPP diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b3e1cc8..14598fc 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,26 +1,5 @@ -# -# This file is part of: -# -# CTBignum -# -# C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -# -# See the NOTICE file for the complete list of authors and contributors -# -# Copyright 2018 Niek J. Bouman -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# +# This file is distributed under the Apache License, Version 2.0. See the LICENSE +# file for details. # Check dependencies find_package(NTL REQUIRED) diff --git a/test/src/tests_main.cpp b/test/src/tests_main.cpp index bf48d9f..97651f8 100644 --- a/test/src/tests_main.cpp +++ b/test/src/tests_main.cpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this // in one cpp file #include "catch.hpp" diff --git a/test/src/unit-field.cpp b/test/src/unit-field.cpp index 5aa5b09..47026a0 100644 --- a/test/src/unit-field.cpp +++ b/test/src/unit-field.cpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #include "catch.hpp" #include diff --git a/test/src/unit-init.cpp b/test/src/unit-init.cpp index 8357265..36a7b3f 100644 --- a/test/src/unit-init.cpp +++ b/test/src/unit-init.cpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #include "catch.hpp" #include diff --git a/test/src/unit-tests.cpp b/test/src/unit-tests.cpp index c5933cb..a79c45b 100644 --- a/test/src/unit-tests.cpp +++ b/test/src/unit-tests.cpp @@ -1,26 +1,5 @@ -// -// This file is part of: -// -// CTBignum -// -// C++ Library for Compile-Time and Run-Time Multi-Precision and Modular Arithmetic -// -// See the NOTICE file for the complete list of authors and contributors -// -// Copyright 2018 Niek J. Bouman -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +// This file is distributed under the Apache License, Version 2.0. See the LICENSE +// file for details. #include "catch.hpp" #include