summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/xint/xintgcd.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-11-08 23:51:15 +0000
committerKarl Berry <karl@freefriends.org>2014-11-08 23:51:15 +0000
commit9a870ba0873e5855067323ca60f8211fedfa23cc (patch)
treee5d74dfe6a59a441aefbe010a4818ab72a71a775 /Master/texmf-dist/tex/generic/xint/xintgcd.sty
parent4435db29aea2c716c788f96372d03d17a7cc6486 (diff)
xint (8nov14)
git-svn-id: svn://tug.org/texlive/trunk@35545 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/xint/xintgcd.sty')
-rw-r--r--Master/texmf-dist/tex/generic/xint/xintgcd.sty22
1 files changed, 20 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/generic/xint/xintgcd.sty b/Master/texmf-dist/tex/generic/xint/xintgcd.sty
index ec42410dc1c..7d6cd8d12c4 100644
--- a/Master/texmf-dist/tex/generic/xint/xintgcd.sty
+++ b/Master/texmf-dist/tex/generic/xint/xintgcd.sty
@@ -21,7 +21,7 @@
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%% ---------------------------------------------------------------
-%% The xint bundle v1.1 (2014/10/28)
+%% The xint bundle v1.1a (2014/11/07)
%% Copyright (C) 2013-2014 by Jean-Francois Burnol
%% xintgcd: Euclidean algorithm with xint package
%% ---------------------------------------------------------------
@@ -70,7 +70,7 @@
\XINTsetupcatcodes% defined in xintkernel.sty
\XINT_providespackage
\ProvidesPackage{xintgcd}%
- [2014/10/28 v1.1 Euclide algorithm with xint package (jfB)]%
+ [2014/11/07 v1.1a Euclide algorithm with xint package (jfB)]%
\def\xintGCD {\romannumeral0\xintgcd }%
\def\xintgcd #1%
{%
@@ -80,6 +80,15 @@
{%
\expandafter\XINT_gcd_fork\romannumeral0\xintiabs {#2}\Z #1\Z
}%
+\def\xintiiGCD {\romannumeral0\xintiigcd }%
+\def\xintiigcd #1%
+{%
+ \expandafter\XINT_iigcd\expandafter{\romannumeral0\xintiiabs {#1}}%
+}%
+\def\XINT_iigcd #1#2%
+{%
+ \expandafter\XINT_gcd_fork\romannumeral0\xintiiabs {#2}\Z #1\Z
+}%
\def\XINT_gcd_fork #1#2\Z #3#4\Z
{%
\xint_UDzerofork
@@ -113,6 +122,15 @@
{%
\expandafter\XINT_lcm_fork\romannumeral0\xintiabs {#2}\Z #1\Z
}%
+\def\xintiiLCM {\romannumeral0\xintiilcm}%
+\def\xintiilcm #1%
+{%
+ \expandafter\XINT_iilcm\expandafter{\romannumeral0\xintiiabs {#1}}%
+}%
+\def\XINT_iilcm #1#2%
+{%
+ \expandafter\XINT_lcm_fork\romannumeral0\xintiiabs {#2}\Z #1\Z
+}%
\def\XINT_lcm_fork #1#2\Z #3#4\Z
{%
\xint_UDzerofork