Home
last modified time | relevance | path

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

/hal_nxp-3.5.0/mcux/mcux-sdk/middleware/issdk/algorithms/pedometer/source/
Dpedometer.c39 #define SQUARED(x) ((x) * (x)) macro
192 uint32_t mag2 = SQUARED(pData->accel[0]) + SQUARED(pData->accel[1]) + SQUARED(pData->accel[2]); in suspend_compute()
194 …(mag2 > SQUARED(pPedometer->config.sleepminimum)) && (mag2 < SQUARED(pPedometer->config.sleepmaxim… in suspend_compute()