OSs8tof32

Syntax

#include <cafe/os.h>

static inline void OSs8tof32(const s8* in, volatile f32* out);
static inline f32 OSs8tof32Value(const s8* in);

Parameters

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

Return Values

OSs8tof32 None.
OSs8tof32Value Result as an 8-bit signed integer value.

Description

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

The function OSs8tof32Value fast-converts a signed 8-bit integer value into a 32-bit floating 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

OSs8tof32

None.

OSs8tof32Value

None.

See Also

OSInitFastCast
OSf32tos16
OSf32tos8
OSf32tou16
OSf32tou8
OSs16tof32
OSu16tof32
OSu8tof32

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