[squeak-dev] FFI: FFI-Kernel-mt.122.mcz

commits at source.squeak.org commits at source.squeak.org
Sat May 1 06:25:29 UTC 2021

Marcel Taeumel uploaded a new version of FFI-Kernel to project FFI:

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

Name: FFI-Kernel-mt.122
Author: mt
Time: 1 May 2021, 8:25:28.22519 am
UUID: 6c3424fd-34f9-f44e-b109-3e27c0690885
Ancestors: FFI-Kernel-mt.121

Adds check to separate integer types from float types. There already is #isIntegerType. For example, callback handles can use this to choose between integer-registers and float-registers easily based on argument types.

=============== Diff against FFI-Kernel-mt.121 ===============

Item was added:
+ ----- Method: ExternalStructureType>>isFloatType (in category 'testing') -----
+ isFloatType
+ 	"Overwritten to not raise an error for struct types."
+ 	^ false!

Item was added:
+ ----- Method: ExternalType>>isFloatType (in category 'testing') -----
+ isFloatType
+ 	"Return true if the receiver is a built-in float type"
+ 	| type |
+ 	type := self atomicType.
+ 	^type = FFITypeSingleFloat or: [type = FFITypeDoubleFloat]!

More information about the Squeak-dev mailing list