Home
last modified time | relevance | path

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

/system/chre/apps/sensor_world/
Dsensor_world.cc260 static uint16_t lfsr = 0x1337; in getNextLfsrState() local
261 uint16_t nextBit = ((lfsr << 14) ^ (lfsr << 13)) & 0x4000; in getNextLfsrState()
262 lfsr = nextBit | (lfsr >> 1); in getNextLfsrState()
264 return lfsr; in getNextLfsrState()
/system/chre/chpp/test/
Dtransport_test.cpp821 static uint8_t lfsr = 1; in TEST_F() local
823 test[i] = lfsr; in TEST_F()
824 lfsr = (lfsr >> 1) | in TEST_F()
825 (((lfsr << 7) ^ (lfsr << 5) ^ (lfsr << 4) ^ (lfsr << 3)) & 0x80); in TEST_F()