Searched refs:lfsr (Results 1 – 5 of 5) sorted by relevance
30 v32_t lfsr; in compute_period() local34 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()
10 static uint32_t lfsr = 1; in cpu_mips_get_random() local15 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()
29 unsigned long lfsr = 0xAAAAAAAAUL; variable33 if (lfsr & 0x80000000UL) { in lbit()34 lfsr = ((lfsr << 1) ^ 0x8000001BUL) & 0xFFFFFFFFUL; in lbit()37 lfsr <<= 1; in lbit()
27 unsigned long lfsr = 0xAAAAAAAAUL; variable31 if (lfsr & 0x80000000UL) { in lbit()32 lfsr = ((lfsr << 1) ^ 0x8000001BUL) & 0xFFFFFFFFUL; in lbit()35 lfsr <<= 1; in lbit()
42 strip out test/lfsr.c