[squeak-dev] FloatConstants?

Chris Muller asqueaker at gmail.com
Sat Dec 20 22:18:45 UTC 2014


On Fri, Dec 19, 2014 at 4:01 PM, Louis LaBrunda
<Lou at keystone-software.com> wrote:
> Hi Chris,
>
> Is this any faster?
>
> Float>>#hashKey32
>
> ^self isFinite ifTrue: [
>         self negative ifTrue: [4286578688 - self asIEEE32BitWord] ifFalse: [self
> asIEEE32BitWord + 2147483651]
> ] ifFalse: [self negative ifTrue: [0] ifFalse: [4294967294]].

About the same, but I think I like your code better.  Thanks.


More information about the Squeak-dev mailing list