[squeak-dev] Spur: Kernel-nice.842.mcz

commits at source.squeak.org commits at source.squeak.org
Sat May 10 22:27:07 UTC 2014


Eliot Miranda uploaded a new version of Kernel to project Spur:
http://source.squeak.org/spur/Kernel-nice.842.mcz

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

Name: Kernel-nice.842
Author: eem
Time: 10 May 2014, 3:16:59.322 pm
UUID: 1d96d1a1-8a60-44ed-8c83-7a20fe7ca8d8
Ancestors: Kernel-nice.842

Kernel-nice.842 patched for Spur by SpurBootstrapMonticelloPackagePatcher Cog-eem.150

Avoid using #reciprocalFloorLog:
#reciprocalFloorLog: does the same as #floorLog: just with more noise.
Once upon a time it was required, but it is not anymore and should be deprecated.

Note that floorLog: already cumulates 3 rounding errors via (self ln / base ln)

(-1 to: (Float fminDenormalized floorLog: 10) + 1 by: -1)
	count: [:i |
		| pow |
		pow := 10 raisedTo: i.
		(pow asFloat floorLog: 10) < i and: [pow asFloat >= pow]].
89

But reciprocalFloorLog: is even worse:

(-1 to: (Float fminDenormalized floorLog: 10) + 1 by: -1)
	count: [:i |
		| pow |
		pow := 10 raisedTo: i.
		(pow asFloat reciprocalFloorLog: 10) < i and: [pow asFloat >= pow]].
 149

=============== Diff against Kernel-nice.842 ===============



More information about the Squeak-dev mailing list