Skip to content

Commit

Permalink
changed header (#30)
Browse files Browse the repository at this point in the history
* changed headers in all files
* updated license texts
  • Loading branch information
niekbouman authored Apr 12, 2018
1 parent 77e010b commit 2bb33c2
Show file tree
Hide file tree
Showing 32 changed files with 74 additions and 682 deletions.
26 changes: 3 additions & 23 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
24 changes: 0 additions & 24 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -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.
18 changes: 10 additions & 8 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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: [email protected]
Expand All @@ -31,3 +32,4 @@ D: main designer/author
N: Johan Engelen
E: [email protected]
D: CI scripts / code reviews / bugfixes / advice

25 changes: 2 additions & 23 deletions benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
25 changes: 2 additions & 23 deletions benchmarks/src/bench-modexp.cpp
Original file line number Diff line number Diff line change
@@ -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 <NTL/ZZ.h>
#include <NTL/ZZ_p.h>
#include <benchmark/benchmark.h>
Expand Down
25 changes: 2 additions & 23 deletions benchmarks/src/bench-montmul.cpp
Original file line number Diff line number Diff line change
@@ -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 <benchmark/benchmark.h>
#include <random>

Expand Down
6 changes: 3 additions & 3 deletions benchmarks/src/bench-mul.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// This file is distributed under the Apache License, Version 2.0. See the LICENSE
// file for details.
//
// 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
// 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.
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/src/bench.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// This file is distributed under the Apache License, Version 2.0. See the LICENSE
// file for details.
//
// 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
// 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.
Expand Down
26 changes: 3 additions & 23 deletions include/ctbignum/addition.hpp
Original file line number Diff line number Diff line change
@@ -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

Expand Down
25 changes: 2 additions & 23 deletions include/ctbignum/barrett.hpp
Original file line number Diff line number Diff line change
@@ -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

Expand Down
25 changes: 2 additions & 23 deletions include/ctbignum/bigint.hpp
Original file line number Diff line number Diff line change
@@ -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

Expand Down
25 changes: 2 additions & 23 deletions include/ctbignum/bitshift.hpp
Original file line number Diff line number Diff line change
@@ -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

Expand Down
25 changes: 2 additions & 23 deletions include/ctbignum/ctbignum.hpp
Original file line number Diff line number Diff line change
@@ -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

Expand Down
25 changes: 2 additions & 23 deletions include/ctbignum/division.hpp
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Loading

0 comments on commit 2bb33c2

Please sign in to comment.