Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CogVM source as per VMMaker.oscog-eem.3382
Add primitive 150, BoxedFloat64>>primitiveCosine and primitive 560, SmallFloat64>>primitiveCosine. Make all of BoxedFloat64 primitives 51 through 58, primitiveArctan, primitiveExp, primitiveExponent, primitiveFractionalPart, primitiveLogN, primitiveSine, primitiveSquareRoot, primitiveTimesTwoPower, primitiveTruncated BoxedFloat64 only, no longer checking but insisting on the receiver being a BoxedFloat64. Increases performance, e.g. from 898 nanoseconds per invocation to 597 nanoseconds on a 2021 Apple M1 Max MPB. To implement the above add noFailFloatValueOf: to the object memories. Discard dbgFloatValueOf: since all its invocations can be replaced with noFailFloatValueOf:.
- Loading branch information