The Trunk: EToys-nice.271.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: EToys-nice.271.mcz

commits-2
Nicolas Cellier uploaded a new version of EToys to project The Trunk:
http://source.squeak.org/trunk/EToys-nice.271.mcz

==================== Summary ====================

Name: EToys-nice.271
Author: nice
Time: 30 October 2016, 5:02:11.360778 pm
UUID: 91b38d55-a069-4f41-9755-1dfb6e23ddc9
Ancestors: EToys-tfel.270

Remove Float>>timesTwoPower: which is unecessary and correspond to an old and incomplete Squeak version.

It has been superseded by Kernel-nice.900.mcz
http://lists.squeakfoundation.org/pipermail/packages/2015-February/007538.html

Then the code has been moved to Float subclasses during Spur transition.

=============== Diff against EToys-tfel.270 ===============

Item was removed:
- ----- Method: Float>>timesTwoPower: (in category '*Etoys-Squeakland-mathematical functions') -----
- timesTwoPower: anInteger
- "Primitive. Answer with the receiver multiplied by 2.0 raised
- to the power of the argument.
- Optional. See Object documentation whatIsAPrimitive."
-
- <primitive: 54>
-
- anInteger < -29 ifTrue: [^ self * (2.0 raisedToInteger: anInteger)].
- anInteger < 0 ifTrue: [^ self / (1 bitShift: (0 - anInteger)) asFloat].
- anInteger < 30 ifTrue: [^ self * (1 bitShift: anInteger) asFloat].
- ^ self * (2.0 raisedToInteger: anInteger)!