summaryrefslogtreecommitdiff
path: root/tex/context/base/syst-con.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-12-03 20:04:00 +0100
committerHans Hagen <pragma@wxs.nl>2012-12-03 20:04:00 +0100
commita0b8219c62b19c148cab790a4a1a97eff0600936 (patch)
tree8c12ed3088a2c95106ee7c601f34105627554bf3 /tex/context/base/syst-con.mkiv
parente5e02b9504d32b70a7e86289fcf04e7ecabba9f2 (diff)
downloadcontext-a0b8219c62b19c148cab790a4a1a97eff0600936.tar.gz
beta 2012.12.03 20:04
Diffstat (limited to 'tex/context/base/syst-con.mkiv')
-rw-r--r--tex/context/base/syst-con.mkiv10
1 files changed, 7 insertions, 3 deletions
diff --git a/tex/context/base/syst-con.mkiv b/tex/context/base/syst-con.mkiv
index 6ef734c8f..de8ed597e 100644
--- a/tex/context/base/syst-con.mkiv
+++ b/tex/context/base/syst-con.mkiv
@@ -134,9 +134,13 @@
% \let\calculatecos\gobbleoneargument
% \let\calculatetan\gobbleoneargument
-\def\setcalculatedsin#1#2{\edef#1{\cldcontext{math.sind(#2)}}}
-\def\setcalculatedcos#1#2{\edef#1{\cldcontext{math.cosd(#2)}}}
-\def\setcalculatedtan#1#2{\edef#1{\cldcontext{math.tand(#2)}}}
+% \def\setcalculatedsin#1#2{\edef#1{\cldcontext{math.sind(#2)}}} % jit-unsafe
+% \def\setcalculatedcos#1#2{\edef#1{\cldcontext{math.cosd(#2)}}} % jit-unsafe
+% \def\setcalculatedtan#1#2{\edef#1{\cldcontext{math.tand(#2)}}} % jit-unsafe
+
+\def\setcalculatedsin#1#2{\edef#1{\ctxcommand{sind(#2)}}}
+\def\setcalculatedcos#1#2{\edef#1{\ctxcommand{cosd(#2)}}}
+\def\setcalculatedtan#1#2{\edef#1{\ctxcommand{tand(#2)}}}
\def\formatted#1{\ctxcommand{format(#1)}}
\unexpanded\def\format #1{\ctxcommand{format(#1)}}