diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/xint/xint.sty')
-rw-r--r-- | Master/texmf-dist/tex/generic/xint/xint.sty | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/generic/xint/xint.sty b/Master/texmf-dist/tex/generic/xint/xint.sty index f8413488235..4137ad675a7 100644 --- a/Master/texmf-dist/tex/generic/xint/xint.sty +++ b/Master/texmf-dist/tex/generic/xint/xint.sty @@ -21,7 +21,7 @@ %% same distribution. (The sources need not necessarily be %% in the same archive or directory.) %% --------------------------------------------------------------- -%% The xint bundle 1.3d 2019/01/06 +%% The xint bundle 1.3e 2019/04/05 %% Copyright (C) 2013-2019 by Jean-Francois Burnol %% xint: Expandable operations on big integers %% --------------------------------------------------------------- @@ -70,7 +70,7 @@ \XINTsetupcatcodes% defined in xintkernel.sty (loaded by xintcore.sty) \XINT_providespackage \ProvidesPackage{xint}% - [2019/01/06 1.3d Expandable operations on big integers (JFB)]% + [2019/04/05 1.3e Expandable operations on big integers (JFB)]% \long\def\xint_firstofthree #1#2#3{#1}% \long\def\xint_secondofthree #1#2#3{#2}% \long\def\xint_thirdofthree #1#2#3{#3}% @@ -98,6 +98,17 @@ {% \expandafter\XINT_length_loop\xint_UDsignfork#1{}-#1\krof }% +\def\xintiiLogTen {\the\numexpr\xintiilogten }% +\def\xintiilogten #1% +{% + \expandafter\XINT_iilogten\romannumeral`&&@#1% + \xint:\xint:\xint:\xint:\xint:\xint:\xint:\xint:\xint: + \xint_c_viii\xint_c_vii\xint_c_vi\xint_c_v + \xint_c_iv\xint_c_iii\xint_c_ii\xint_c_i\xint_c_\xint_bye + \relax +}% +\def\XINT_iilogten #1{\if#10-"7FFF8000\fi -1+% + \expandafter\XINT_length_loop\xint_UDsignfork#1{}-#1\krof}% \def\xintReverseDigits {\romannumeral0\xintreversedigits }% \def\xintreversedigits #1% {% |