ice40: convert tabs to spaces

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2019-02-26 13:02:41 +08:00
parent 61151b4618
commit f2ae56a13e

10
ice40.c
View File

@ -49,11 +49,11 @@ static uint32_t get_bit_offset(int x, int total_bits) {
uint32_t xorshift32(uint32_t x) uint32_t xorshift32(uint32_t x)
{ {
/* Algorithm "xor" from p. 4 of Marsaglia, "Xorshift RNGs" */ /* Algorithm "xor" from p. 4 of Marsaglia, "Xorshift RNGs" */
x = x ^ (x << 13); x = x ^ (x << 13);
x = x ^ (x >> 17); x = x ^ (x >> 17);
x = x ^ (x << 5); x = x ^ (x << 5);
return x; return x;
} }
uint32_t get_rand(uint32_t x) { uint32_t get_rand(uint32_t x) {