Next: , Previous: , Up: Stack Manipulation   [Contents][Index]


5.6.2 Floating point stack

floating-stack ( – n  ) environment “floating-stack”

n is non-zero, showing that Gforth maintains a separate floating-point stack of depth n.

fdrop ( r – ) float “f-drop”
fnip ( r1 r2 – r2 ) gforth-0.4 “f-nip”
fdup ( r – r r ) float “f-dupe”
fover ( r1 r2 – r1 r2 r1 ) float “f-over”
fthird ( r1 r2 r3 – r1 r2 r3 r1 ) gforth-1.0 “fthird”
ffourth ( r1 r2 r3 r4 – r1 r2 r3 r4 r1 ) gforth-1.0 “ffourth”
ftuck ( r1 r2 – r2 r1 r2 ) gforth-0.4 “f-tuck”
fswap ( r1 r2 – r2 r1 ) float “f-swap”
fpick ( f:... u – f:... r ) gforth-0.4 “fpick”

Actually the stack effect is r0 ... ru u -- r0 ... ru r0 .

frot ( r1 r2 r3 – r2 r3 r1 ) float “f-rote”