Skip to content

Commit

Permalink
Rerun clang formattter on PR #229
Browse files Browse the repository at this point in the history
  • Loading branch information
PJK committed Dec 25, 2022
1 parent 75858a8 commit 8e85089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cbor/encoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ size_t cbor_encode_half(float value, unsigned char *buffer,
absence of standard half-float in the language. */
res = (uint16_t)((val & 0x80000000u) >> 16u) | // Extract sign bit
((uint16_t)(1u << (24u + logical_exp)) +
(uint16_t)(((mant >> (-logical_exp - 2)) + 1) >>
1)); // Round half away from zero for simplicity
(uint16_t)(((mant >> (-logical_exp - 2)) + 1) >>
1)); // Round half away from zero for simplicity
} else {
res = (uint16_t)((val & 0x80000000u) >> 16u |
((((uint8_t)logical_exp) + 15u) << 10u) |
Expand Down

0 comments on commit 8e85089

Please sign in to comment.