diff options
| author | Eugen Wissner <belka@caraus.de> | 2016-11-30 16:48:46 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2016-11-30 16:48:46 +0100 |
| commit | b752acdff7c8c14c9019c5b5629f8432f89ce528 (patch) | |
| tree | a9e6b61d9311d84f1bdd62ac1a1f9da7cc0f9293 /source | |
| parent | cbeb0395f92d64ffdd73e1896cbfa25588f868dd (diff) | |
| download | tanya-b752acdff7c8c14c9019c5b5629f8432f89ce528.tar.gz | |
Fix tanya.math module name
Diffstat (limited to 'source')
| -rw-r--r-- | source/tanya/math/package.d (renamed from source/tanya/math.d) | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/tanya/math.d b/source/tanya/math/package.d index 46932b2..7a5c295 100644 --- a/source/tanya/math.d +++ b/source/tanya/math/package.d @@ -8,15 +8,13 @@ * Mozilla Public License, v. 2.0). * Authors: $(LINK2 mailto:belka@caraus.de, Eugene Wissner) */ -module tanya.container.math; +module tanya.math; version (unittest) { import std.algorithm.iteration; } -@nogc: - /** * Computes $(D_PARAM x) to the power $(D_PARAM y) modulo $(D_PARAM z). * @@ -28,7 +26,7 @@ version (unittest) * Returns: Reminder of the division of $(D_PARAM x) to the power $(D_PARAM y) * by $(D_PARAM z). */ -ulong pow(ulong x, ulong y, ulong z) @safe nothrow pure +ulong pow(ulong x, ulong y, ulong z) nothrow pure @safe @nogc in { assert(z > 0); @@ -94,7 +92,7 @@ unittest * Returns: $(D_KEYWORD true) if $(D_PARAM x) is a prime number, * $(D_KEYWORD false) otherwise. */ -bool isPseudoprime(ulong x) @safe nothrow pure +bool isPseudoprime(ulong x) nothrow pure @safe @nogc { return pow(2, x - 1, x) == 1; } |
