Searched refs:SQUARED (Results 1 – 1 of 1) sorted by relevance
39 #define SQUARED(x) ((x) * (x)) macro192 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()