Differences From Artifact [70f21d39ef]:
- File
src/OFNumber.m
— part of check-in
[1255f3a11a]
at
2012-08-10 20:08:24
on branch trunk
— Directly use the runtime's autorelease pools.
This greatly improves performance, as it gets rid of the overhead of
OFAutoreleasePool. (user: js, size: 29064) [annotate] [blame] [check-ins using]
To Artifact [494724f548]:
- File src/OFNumber.m — part of check-in [b791e6fcc4] at 2012-09-09 14:14:02 on branch trunk — Fix -[OFNumber isEqual:]. (user: js, size: 28547) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
925 926 927 928 929 930 931 | OFNumber *number; if (![object isKindOfClass: [OFNumber class]]) return NO; number = object; | < | > | | < < < < < < < < | < < < < < < < < < < < < | < < < < < < | 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 | OFNumber *number; if (![object isKindOfClass: [OFNumber class]]) return NO; number = object; if (type & OF_NUMBER_FLOAT || number->type & OF_NUMBER_FLOAT) return ([number doubleValue] == [self doubleValue]); if (type & OF_NUMBER_SIGNED || number->type & OF_NUMBER_SIGNED) return ([number intMaxValue] == [self intMaxValue]); return ([number uIntMaxValue] == [self uIntMaxValue]); } - (uint32_t)hash { uint32_t hash; uint8_t i; |
︙ | ︙ |