From b752acdff7c8c14c9019c5b5629f8432f89ce528 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Wed, 30 Nov 2016 16:48:46 +0100 Subject: [PATCH] Fix tanya.math module name --- source/tanya/{math.d => math/package.d} | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) rename source/tanya/{math.d => math/package.d} (93%) diff --git a/source/tanya/math.d b/source/tanya/math/package.d similarity index 93% rename from source/tanya/math.d rename to 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; }