Home
last modified time | relevance | path

Searched refs:floatToInt16 (Results 1 – 1 of 1) sorted by relevance

/device/google/contexthub/firmware/os/core/
DhostIntf.c814 static inline int16_t floatToInt16(float val) in floatToInt16() function
1048 sensor->buffer.rawTriple[0].ix = floatToInt16(triple->samples[i].x * sensor->rawScale); in copyTripleSamplesRaw()
1049 sensor->buffer.rawTriple[0].iy = floatToInt16(triple->samples[i].y * sensor->rawScale); in copyTripleSamplesRaw()
1050 sensor->buffer.rawTriple[0].iz = floatToInt16(triple->samples[i].z * sensor->rawScale); in copyTripleSamplesRaw()
1074 … sensor->buffer.rawTriple[numSamples].ix = floatToInt16(triple->samples[0].x * sensor->rawScale); in copyTripleSamplesRaw()
1075 … sensor->buffer.rawTriple[numSamples].iy = floatToInt16(triple->samples[0].y * sensor->rawScale); in copyTripleSamplesRaw()
1076 … sensor->buffer.rawTriple[numSamples].iz = floatToInt16(triple->samples[0].z * sensor->rawScale); in copyTripleSamplesRaw()
1087 … sensor->buffer.rawTriple[numSamples].ix = floatToInt16(triple->samples[i].x * sensor->rawScale); in copyTripleSamplesRaw()
1088 … sensor->buffer.rawTriple[numSamples].iy = floatToInt16(triple->samples[i].y * sensor->rawScale); in copyTripleSamplesRaw()
1089 … sensor->buffer.rawTriple[numSamples].iz = floatToInt16(triple->samples[i].z * sensor->rawScale); in copyTripleSamplesRaw()