Searched refs:cbor_encode_half (Results 1 – 6 of 6) sorted by relevance
| /freebsd-14.2/contrib/libcbor/test/ |
| H A D | float_ctrl_encoders_test.c | 55 assert_size_equal(3, cbor_encode_half(1.5f, buffer, 512)); in test_half() 59 assert_size_equal(3, cbor_encode_half(-0.0f, buffer, 512)); in test_half() 63 assert_size_equal(3, cbor_encode_half(0.0f, buffer, 512)); in test_half() 67 assert_size_equal(3, cbor_encode_half(65504.0f, buffer, 512)); in test_half() 75 assert_size_equal(3, cbor_encode_half(-4.0f, buffer, 512)); in test_half() 103 assert_size_equal(3, cbor_encode_half(1e-25f, buffer, 512)); in test_half() 115 assert_size_equal(3, cbor_encode_half(INFINITY, buffer, 512)); in test_half() 121 assert_size_equal(3, cbor_encode_half(NAN, buffer, 512)); in test_half_special() 129 assert_size_equal(3, cbor_encode_half(nanf("2"), buffer, 512)); in test_half_special() 135 assert_size_equal(3, cbor_encode_half(INFINITY, buffer, 512)); in test_half_infinity() [all …]
|
| /freebsd-14.2/contrib/libcbor/src/cbor/ |
| H A D | encoding.h | 122 _CBOR_NODISCARD CBOR_EXPORT size_t cbor_encode_half(float, unsigned char *,
|
| H A D | encoding.c | 127 size_t cbor_encode_half(float value, unsigned char *buffer, in cbor_encode_half() function
|
| H A D | serialization.c | 360 return cbor_encode_half(cbor_float_get_float2(item), buffer, buffer_size); in cbor_serialize_float_ctrl()
|
| /freebsd-14.2/contrib/libcbor/doc/source/api/ |
| H A D | streaming_encoding.rst | 56 .. doxygenfunction:: cbor_encode_half
|
| H A D | type_7.rst | 68 …e>` values throughout the API. Encoding will be performed by :func:`cbor_encode_half`, which will …
|