From 066d3accf5a135bcdfcc9f2ddf1b413226e01f34 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Fri, 26 Jun 2020 11:56:33 +0900 Subject: [PATCH] add 11 to mulSmallUnit --- include/mcl/util.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mcl/util.hpp b/include/mcl/util.hpp index 0b5a729..0132405 100644 --- a/include/mcl/util.hpp +++ b/include/mcl/util.hpp @@ -327,6 +327,7 @@ bool mulSmallUnit(T& z, const T& x, U y) case 8: T::add(z, x, x); T::add(z, z, z); T::add(z, z, z); break; case 9: { T t; T::add(t, x, x); T::add(t, t, t); T::add(t, t, t); T::add(z, t, x); break; } case 10: { T t; T::add(t, x, x); T::add(t, t, t); T::add(t, t, x); T::add(z, t, t); break; } + case 11: { T t; T::add(t, x, x); T::add(t, t, x); T::add(t, t, t); T::add(t, t, t); T::sub(z, t, x); break; } default: return false; }