diff options
author | Norbert Preining <norbert@preining.info> | 2020-08-07 03:02:55 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-08-07 03:02:55 +0000 |
commit | 3710c23789342d9d88783cbe9ad23eb5263a7c33 (patch) | |
tree | 1c40b2bfb9f6b652f7877ad0991f5d6b44391154 /graphics/asymptote/mod.h | |
parent | d99fea72e367e8d4d2809b43b3b0206b1bb526b8 (diff) |
CTAN sync 202008070302
Diffstat (limited to 'graphics/asymptote/mod.h')
-rw-r--r-- | graphics/asymptote/mod.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/asymptote/mod.h b/graphics/asymptote/mod.h index 89d017c6ce..b441d08b7c 100644 --- a/graphics/asymptote/mod.h +++ b/graphics/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); |