Lines Matching refs:float
72 /// Parse the exponent of the float.
127 /// Parse float from input bytes, returning the float and the remaining bytes.
129 /// * `bytes` - Array of bytes leading with float-data.
141 let mut float = F::from_bits(F::EXPONENT_MASK | (F::HIDDEN_BIT_MASK >> 1));
143 float = -float;
145 return (float, &bytes[3..]);
147 let mut float = F::from_bits(F::EXPONENT_MASK);
149 float = -float;
151 return (float, &bytes[8..]);
153 let mut float = F::from_bits(F::EXPONENT_MASK);
155 float = -float;
157 return (float, &bytes[3..]);
160 // Extract and parse the float components:
183 // Note: You may want to check and validate the float data here:
198 // Create the float and return our data.
199 let mut float: F =
202 float = -float;
205 (float, bytes)