1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>OSu8tof32</title> 10</head> 11 12<body> 13 14<h1>OSu8tof32</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/os.h> 19 20inline void OSu8tof32(u8* in, f32* out); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<TH>in</TH> 27<TD>Pointer to the unsigned 8-bit integer value to be converted.</TD> 28 </tr> 29 <tr> 30<TH><STRONG><EM><CODE>out</CODE></EM></STRONG></TH> 31<TD>Pointer to the 32-bit floating point value to be stored.</TD> 32 </tr> 33</TABLE> 34 35<h2>Return Values</h2> 36<p>None.</p> 37 38<H2>Description</H2> 39<P>Fast converts an unsigned 8-bit integer into a 32-bit floating value in two cycles (using a load and store).</P> 40<P>Be aware that the <A href="OSInitFastCast.html"><CODE>OSInitFastCast</CODE></A> function must be called prior to invoking this function.</P> 41<P>In the standard debug builds, this function and all other fast cast functions will not be inline-expanded.</P> 42<P>This function takes addresses as arguments to load/store instructions. Taking addresses as arguments ensures that the compiler will reserve space on the stack (rather than forcing the programmer or the inline function to allocate space). The stack-allocated variables will likely be in the cache.</P> 43 44<h2>See Also</h2> 45<P class="reference"> 46<a href="OSInitFastCast.html">OSInitFastCast</a>, 47<a href="OSf32tos16.html">OSf32tos16</a>, 48<a href="OSf32tos8.html">OSf32tos8</a>, 49<a href="OSf32tou16.html">OSf32tou16</a>, 50<a href="OSf32tou8.html">OSf32tou8</a>, 51<a href="OSs16tof32.html">OSs16tof32</a>, 52<a href="OSs8tof32.html">OSs8tof32</a>, 53<a href="OSu16tof32.html">OSu16tof32</a> 54</p> 55 56<H2>Revision History</H2> 57<P> 582006/03/01 Initial version.<br> 59</P> 60 61<hr><p>CONFIDENTIAL</p></body> 62</html>