LispWorks User Guide and Reference Manual > 9 The Compiler > 9.6 Optimizing your code > 9.6.2 Fast 32-bit arithmetic

NextPrevUpTopContentsIndex

9.6.2.1 Optimized and unoptimized INT32 code

When optimized correctly, the intermediate int32 objects are not constructed.

In unoptimized code, sequences of operations like

(sys:int32+ (sys:int32- a b) (sys:int32- c d))

will generate intermediate int32 objects for the results of the subtraction, but the compiler can optimize these away because it knows that the function int32+ consumes int32 objects.

Note: the INT32 API is not designed to optimize sys:int32 objects passed as arguments.


LispWorks User Guide and Reference Manual - 22 Dec 2009

NextPrevUpTopContentsIndex