* @brief Converts a 5.23 float value to int 28.0 * * @param value Value to convert * @return int32_t converted value in 28.0 format */
| 1312 | * @return int32_t converted value in 28.0 format |
| 1313 | */ |
| 1314 | int32_t SigmaDSP::floatToInt(float value) |
| 1315 | { |
| 1316 | // Convert float 5.23 to int 28.0 |
| 1317 | return (value * ((int32_t)1 << 23)); |
| 1318 | } |
| 1319 | |
| 1320 | |
| 1321 | /******************************************************************************************* |
nothing calls this directly
no outgoing calls
no test coverage detected