Home | History | Annotate | Download | only in libsensors_iio

Lines Matching refs:ldata

334 int inv_float_to_q16(float *fdata, long *ldata)
337 if (!fdata || !ldata)
339 ldata[0] = (long)(fdata[0] * 65536.f);
340 ldata[1] = (long)(fdata[1] * 65536.f);
341 ldata[2] = (long)(fdata[2] * 65536.f);
345 int inv_long_to_q16(long *fdata, long *ldata)
348 if (!fdata || !ldata)
350 ldata[0] = (fdata[1] * 65536.f);
351 ldata[1] = (fdata[2] * 65536.f);
352 ldata[2] = (fdata[3] * 65536.f);
356 int inv_float_to_round(float *fdata, long *ldata)
359 if (!fdata || !ldata)
361 ldata[0] = (long)fdata[0];
362 ldata[1] = (long)fdata[1];
363 ldata[2] = (long)fdata[2];
367 int inv_float_to_round2(float *fdata, short *ldata)
370 if (!fdata || !ldata)
372 ldata[0] = (short)fdata[0];
373 ldata[1] = (short)fdata[1];
374 ldata[2] = (short)fdata[2];
378 int inv_long_to_float(long *ldata, float *fdata)
381 if (!ldata || !fdata)
383 fdata[0] = (float)ldata[0];
384 fdata[1] = (float)ldata[1];
385 fdata[2] = (float)ldata[2];