diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2019-11-23 12:42:01 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2020-01-09 15:55:03 +0100 |
commit | d76433ade0b75c8cc2b45fdae52a21d7fb28f526 (patch) | |
tree | 2cdcffee67e58045e4da8617497080e089f15405 /libs/bitfield-c/src/bitfield/8byte.c | |
parent | 28340674704f385c916e528f66e368b10fad31d8 (diff) |
decoder/encoder: simplification of code.
- Useless tests removed
- Bit operation changed to more readable ones
- Handle correctly mask to decode signal on 1 byte or in-between bytes more clearly.
- using static_cast now instead of C casting method.
- Avoid manual vector initialization and using default constructors instead.
- Avoid using intermediate variables when this isn't necessary.
Bug-AGL: SPEC-2988
Change-Id: I049d65f460109772b57df7572bdac8e6500242e0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'libs/bitfield-c/src/bitfield/8byte.c')
0 files changed, 0 insertions, 0 deletions