The Trunk: Collections-eem.944.mcz

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

The Trunk: Collections-eem.944.mcz

commits-2
Eliot Miranda uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-eem.944.mcz

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

Name: Collections-eem.944
Author: eem
Time: 12 May 2021, 10:19:58.957605 am
UUID: 97274a09-ff46-4d4c-8f16-420df357849d
Ancestors: Collections-mt.943

Nuke duplicate methods in Float32Array inherited from FloatArray.

=============== Diff against Collections-mt.943 ===============

Item was removed:
- ----- Method: Float32Array>>* (in category 'arithmetic') -----
- * anObject
-
- ^self shallowCopy *= anObject!

Item was removed:
- ----- Method: Float32Array>>*= (in category 'arithmetic') -----
- *= anObject
- ^anObject isNumber
- ifTrue:[self primMulScalar: anObject asFloat]
- ifFalse:[self primMulArray: anObject]!

Item was removed:
- ----- Method: Float32Array>>+ (in category 'arithmetic') -----
- + anObject
-
- ^self shallowCopy += anObject!

Item was removed:
- ----- Method: Float32Array>>+= (in category 'arithmetic') -----
- += anObject
- ^anObject isNumber
- ifTrue:[self primAddScalar: anObject asFloat]
- ifFalse:[self primAddArray: anObject]!

Item was removed:
- ----- Method: Float32Array>>- (in category 'arithmetic') -----
- - anObject
-
- ^self shallowCopy -= anObject!

Item was removed:
- ----- Method: Float32Array>>-= (in category 'arithmetic') -----
- -= anObject
- ^anObject isNumber
- ifTrue:[self primSubScalar: anObject asFloat]
- ifFalse:[self primSubArray: anObject]!

Item was removed:
- ----- Method: Float32Array>>/ (in category 'arithmetic') -----
- / anObject
-
- ^self shallowCopy /= anObject!

Item was removed:
- ----- Method: Float32Array>>/= (in category 'arithmetic') -----
- /= anObject
- ^anObject isNumber
- ifTrue:[self primDivScalar: anObject asFloat]
- ifFalse:[self primDivArray: anObject]!

Item was removed:
- ----- Method: Float32Array>>\\= (in category 'arithmetic') -----
- \\= other
-
- other isNumber ifTrue: [
- 1 to: self size do: [:i |
- self at: i put: (self at: i) \\ other
- ].
- ^ self.
- ].
- 1 to: (self size min: other size) do: [:i |
- self at: i put: (self at: i) \\ (other at: i).
- ].
-
- !

Item was removed:
- ----- Method: Float32Array>>adaptToNumber:andSend: (in category 'arithmetic') -----
- adaptToNumber: rcvr andSend: selector
- "If I am involved in arithmetic with a Number. If possible,
- convert it to a float and perform the (more efficient) primitive operation."
- selector == #+ ifTrue:[^self + rcvr].
- selector == #* ifTrue:[^self * rcvr].
- selector == #- ifTrue:[^self negated += rcvr].
- selector == #/ ifTrue:[
- "DO NOT USE TRIVIAL CODE
- ^self reciprocal * rcvr
- BECAUSE OF GRADUAL UNDERFLOW
- self should: (1.0e-39 / (FloatArray with: 1.0e-39)) first < 2."
- ^(self class new: self size withAll: rcvr) / self
- ].
- ^super adaptToNumber: rcvr andSend: selector!

Item was removed:
- ----- Method: Float32Array>>asFloatArray (in category 'converting') -----
- asFloatArray
- ^self!

Item was removed:
- ----- Method: Float32Array>>length (in category 'accessing') -----
- length
- "Return the length of the receiver"
- ^self squaredLength sqrt!

Item was removed:
- ----- Method: Float32Array>>negated (in category 'arithmetic') -----
- negated
-
- ^self shallowCopy *= -1!

Item was removed:
- ----- Method: Float32Array>>replaceFrom:to:with:startingAt: (in category 'private') -----
- replaceFrom: start to: stop with: replacement startingAt: repStart
- "Primitive. This destructively replaces elements from start to stop in the receiver starting at index, repStart, in the collection, replacement. Answer the receiver. Range checks are performed in the primitive only. Optional. See Object documentation whatIsAPrimitive."
- <primitive: 105>
- super replaceFrom: start to: stop with: replacement startingAt: repStart!

Item was removed:
- ----- Method: Float32Array>>squaredLength (in category 'accessing') -----
- squaredLength
- "Return the squared length of the receiver"
- ^self dot: self!