summaryrefslogtreecommitdiff
path: root/tex/context/base/syst-con.mkiv
diff options
context:
space:
mode:
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)}}