Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: PowerPC Numerics / Part 3 - Numerics in PowerPC Assembly Language
Chapter 13 - Assembly-Language Numeric Conversions


Conversions From Single to Double Format

To convert a single floating-point number to double format, you simply load a single-format number into a floating-point register; the conversion takes place automatically. The following load instructions automatically convert single format to double. These instructions raise no floating-point exceptions and treat zeros, NaNs, and Infinities like any other value.
lfsLoad single format.
lfsuLoad single format and update.
lfsuxLoad single format and update indexed.
lfsxLoad single format indexed.

For more information on the load instructions, see Chapter 11, "Introduction to Assembly-Language Numerics."


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996