OSu8tof32

Syntax

#include <cafe/os.h>

static inline void OSu8tof32(const u8* in, volatile f32* out);
static inline f32 OSu8tof32Value(const u8* in);

Parameters

in Pointer to the unsigned 8-bit integer value to convert.
out Pointer to a 32-bit floating-point value to store.

Return Values

OSu8tof32 None.
OSu8tof32Value Result as an 8-bit unsigned integer value.

Description

The function OSu8tof32 fast-converts unsigned 8-bit integer memory into 32-bit floating-point memory in two instructions (using a load and a store).

The function OSu8tof32Value fast-converts an unsigned 8-bit integer value into a 32-bit floating-point value in two instructions (using a store and a load).

Call the OSInitFastCast function before invoking this function if the state of GQRs 2 through 5 have been changed on the current thread.

Do Not Call From

OSu8tof32

None.

OSu8tof32Value

None.

See Also

OSInitFastCast
OSf32tos16
OSf32tos8
OSf32tou16
OSf32tou8
OSs16tof32
OSs8tof32
OSu16tof32

Revision History

2013-05-08 Automated cleanup pass.
2012-08-02 Cleanup Pass.
2011-07-19 Updated for Cafe OS.
2010-08-30 Initial version.


CONFIDENTIAL