Home
last modified time | relevance | path

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

/external/srtp/test/
Dlfsr.c30 v32_t lfsr; in compute_period() local
34 lfsr.value = 1; in compute_period()
40 if (parity(mask.value & lfsr.value)) in compute_period()
41 lfsr.value = ((lfsr.value << 1) | 1) & 0xff; in compute_period()
43 lfsr.value = (lfsr.value << 1) & 0xff; in compute_period()
46 if (lfsr.value == 1) { in compute_period()
/external/qemu/hw/
Dmips_timer.c10 static uint32_t lfsr = 1; in cpu_mips_get_random() local
15 lfsr = (lfsr >> 1) ^ (-(lfsr & 1u) & 0xd0000001u); in cpu_mips_get_random()
16 idx = lfsr % (env->tlb->nb_tlb - env->CP0_Wired) + env->CP0_Wired; in cpu_mips_get_random()
/external/dropbear/libtommath/demo/
Dtiming.c29 unsigned long lfsr = 0xAAAAAAAAUL; variable
33 if (lfsr & 0x80000000UL) { in lbit()
34 lfsr = ((lfsr << 1) ^ 0x8000001BUL) & 0xFFFFFFFFUL; in lbit()
37 lfsr <<= 1; in lbit()
Ddemo.c27 unsigned long lfsr = 0xAAAAAAAAUL; variable
31 if (lfsr & 0x80000000UL) { in lbit()
32 lfsr = ((lfsr << 1) ^ 0x8000001BUL) & 0xFFFFFFFFUL; in lbit()
35 lfsr <<= 1; in lbit()
/external/srtp/
DTODO42 strip out test/lfsr.c