Commit ea2d785
modem: cmux: replace
To improve performance in FCS calculation, this commit replaces
the usage of the generic `crc8` function with the specific `crc8_rohc`
function in `modem_cmux.c`.
The `crc8_rohc` function utilizes a small table approach, enhancing
the efficiency of CRC-8/ROHC variant calculations while optimizing
memory usage.
Signed-off-by: Pisit Sawangvonganan <[email protected]>crc8 with crc8_rohc for FCS calculation1 parent d6024c5 commit ea2d785
1 file changed
+6
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
| 298 | + | |
300 | 299 | | |
301 | 300 | | |
302 | 301 | | |
303 | 302 | | |
304 | 303 | | |
305 | | - | |
| 304 | + | |
306 | 305 | | |
307 | 306 | | |
308 | 307 | | |
| |||
845 | 844 | | |
846 | 845 | | |
847 | 846 | | |
| 847 | + | |
| 848 | + | |
848 | 849 | | |
849 | | - | |
850 | | - | |
851 | | - | |
| 850 | + | |
852 | 851 | | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
| 852 | + | |
858 | 853 | | |
859 | 854 | | |
860 | 855 | | |
| |||
0 commit comments