aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/common/lib/forth2012/double/d-max.frt
diff options
context:
space:
mode:
Diffstat (limited to 'amforth-6.5/common/lib/forth2012/double/d-max.frt')
-rw-r--r--amforth-6.5/common/lib/forth2012/double/d-max.frt3
1 files changed, 3 insertions, 0 deletions
diff --git a/amforth-6.5/common/lib/forth2012/double/d-max.frt b/amforth-6.5/common/lib/forth2012/double/d-max.frt
new file mode 100644
index 0000000..fcf979a
--- /dev/null
+++ b/amforth-6.5/common/lib/forth2012/double/d-max.frt
@@ -0,0 +1,3 @@
+
+: dmax ( d1 d2 -- d ) \ double d-max
+ 2over 2over d< if 2swap then 2drop ;