projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0e7238
)
Remove extra whitespace.
author
Tim 'mithro' Ansell
<me@mith.ro>
Mon, 2 Sep 2019 21:47:20 +0000
(14:47 -0700)
committer
Tim 'mithro' Ansell
<me@mith.ro>
Mon, 2 Sep 2019 21:47:20 +0000
(14:47 -0700)
litex/soc/software/libbase/crc16.c
patch
|
blob
|
history
diff --git
a/litex/soc/software/libbase/crc16.c
b/litex/soc/software/libbase/crc16.c
index df9ed09eb5bee3a91385b8b0d15912dcc69f43f4..82e3102b139e405fe64777c3e55ddf9d591d9a4a 100644
(file)
--- a/
litex/soc/software/libbase/crc16.c
+++ b/
litex/soc/software/libbase/crc16.c
@@
-38,11
+38,11
@@
static const unsigned int crc16_table[256] = {
unsigned short crc16(const unsigned char *buffer, int len)
{
unsigned short crc;
-
+
crc = 0;
while(len-- > 0)
crc = crc16_table[((crc >> 8) ^ (*buffer++)) & 0xFF] ^ (crc << 8);
-
+
return crc;
}
#else
@@
-57,4
+57,4
@@
unsigned short crc16(const unsigned char* data_p, int length) {
}
return crc;
}
-#endif
\ No newline at end of file
+#endif