Function report |
Source Code:lib\842\842_compress.c |
Create Date:2022-07-28 06:57:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:add_bits
Proto:static int add_bits(struct sw842_param *p, u64 d, u8 n)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct sw842_param * | p | |
| u64 | d | |
| u8 | n |
| 181 | If bits > 64 Then Return __split_add_bits(p, d, n, 32) |
| 188 | If DIV_ROUND_UP(bits, 8) > olen Then Return -ENOSPC |
| 196 | Else if bits <= 16 Then put value to a possibly mis-aligned location(cpu_to_be16(o << 8 | d), (__be16 * )out) |
| 198 | Else if bits <= 24 Then put value to a possibly mis-aligned location(cpu_to_be32(o << 24 | d << 8), (__be32 * )out) |
| 200 | Else if bits <= 32 Then put value to a possibly mis-aligned location(cpu_to_be32(o << 24 | d), (__be32 * )out) |
| 202 | Else if bits <= 40 Then put value to a possibly mis-aligned location(cpu_to_be64(o << 56 | d << 24), (__be64 * )out) |
| 204 | Else if bits <= 48 Then put value to a possibly mis-aligned location(cpu_to_be64(o << 56 | d << 16), (__be64 * )out) |
| 206 | Else if bits <= 56 Then put value to a possibly mis-aligned location(cpu_to_be64(o << 56 | d << 8), (__be64 * )out) |
| 208 | Else put value to a possibly mis-aligned location(cpu_to_be64(o << 56 | d), (__be64 * )out) |
| 213 | If bit > 7 Then |
| 219 | Return 0 |
| Name | Describe |
|---|---|
| __split_add_bits | |
| add_template | |
| add_repeat_template | |
| add_short_data_template | |
| add_zeros_template | |
| add_end_template | |
| sw842_compress | sw842_compress* Compress the uncompressed buffer of length @ilen at @in to the output buffer*@out, using no more than @olen bytes, using the 842 compression format |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |