X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=scheme.forth.jl.git;a=blobdiff_plain;f=src%2Ffloat.4th;h=bdedd9265be2ae906ecc176bc3d8190cd0aac823;hp=74a4f08469578fcc8a922699f43d6265017ac562;hb=dee0ca5343f31d2fd0480f515a07665c1a6c8951;hpb=73373387ae07d9da0ee049d96338555707b6d7b7 diff --git a/src/float.4th b/src/float.4th index 74a4f08..bdedd92 100644 --- a/src/float.4th +++ b/src/float.4th @@ -29,3 +29,53 @@ CODE f/ a = reinterpret(Float64, popPS()) pushPS(reinterpret(Int64, a/b)) END-CODE + +CODE f^ + b = reinterpret(Float64, popPS()) + a = reinterpret(Float64, popPS()) + pushPS(reinterpret(Int64, a^b)) +END-CODE + +CODE f> + b = reinterpret(Float64, popPS()) + a = reinterpret(Float64, popPS()) + pushPS(reinterpret(Int64, a>b)) +END-CODE + +CODE f< + b = reinterpret(Float64, popPS()) + a = reinterpret(Float64, popPS()) + pushPS(reinterpret(Int64, a= + b = reinterpret(Float64, popPS()) + a = reinterpret(Float64, popPS()) + pushPS(reinterpret(Int64, a>=b)) +END-CODE + +CODE flog + b = reinterpret(Float64, popPS()) + pushPS(reinterpret(Int64, log(a))) +END-CODE + +CODE fexp + b = reinterpret(Float64, popPS()) + pushPS(reinterpret(Int64, exp(a))) +END-CODE + +CODE i->f + pushPS(reinterpret(Int64, Float64(popPS()))) +END-CODE