ice40: convert tabs to spaces
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
61151b4618
commit
f2ae56a13e
10
ice40.c
10
ice40.c
@ -49,11 +49,11 @@ static uint32_t get_bit_offset(int x, int total_bits) {
|
||||
|
||||
uint32_t xorshift32(uint32_t x)
|
||||
{
|
||||
/* Algorithm "xor" from p. 4 of Marsaglia, "Xorshift RNGs" */
|
||||
x = x ^ (x << 13);
|
||||
x = x ^ (x >> 17);
|
||||
x = x ^ (x << 5);
|
||||
return x;
|
||||
/* Algorithm "xor" from p. 4 of Marsaglia, "Xorshift RNGs" */
|
||||
x = x ^ (x << 13);
|
||||
x = x ^ (x >> 17);
|
||||
x = x ^ (x << 5);
|
||||
return x;
|
||||
}
|
||||
|
||||
uint32_t get_rand(uint32_t x) {
|
||||
|
Loading…
Reference in New Issue
Block a user