summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/mod.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-01-02 16:31:31 +0000
committerKarl Berry <karl@freefriends.org>2021-01-02 16:31:31 +0000
commit6457cd3f6e21e23e21db6dafff021d17f5457567 (patch)
tree08f169333e47c5fc1c50e828cf3a0f50bdf9b508 /Build/source/utils/asymptote/mod.h
parentdc2504a4c02af0ec2fff00e6b833c6143a06b4cd (diff)
asy 2.68 sources
git-svn-id: svn://tug.org/texlive/trunk@57291 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/mod.h')
-rw-r--r--Build/source/utils/asymptote/mod.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/mod.h b/Build/source/utils/asymptote/mod.h
index 89d017c6ced..b441d08b7c5 100644
--- a/Build/source/utils/asymptote/mod.h
+++ b/Build/source/utils/asymptote/mod.h
@@ -16,8 +16,8 @@ using std::fmod;
inline Int Mod(Int x, Int y) {return x % y;}
inline double Mod(double x, double y) {return fmod(x,y);}
-
-template<typename T>
+
+template<typename T>
inline T portableMod(T x,T y)
{
// Implementation-independent definition of mod; ensure that result has
@@ -26,7 +26,7 @@ inline T portableMod(T x,T y)
if((y > 0 && val < 0) || (y < 0 && val > 0)) val += y;
return val;
}
-
+
inline Int imod(Int x, Int y)
{
return portableMod<Int>(x,y);