Searched refs:cbor_encode_half (Results 1 – 6 of 6) sorted by relevance
/freebsd/contrib/libcbor/test/ |
H A D | float_ctrl_encoders_test.c | 48 assert_size_equal(3, cbor_encode_half(cbor_float_get_float2(half_float), in assert_half_float_codec_identity() 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() 71 assert_size_equal(3, cbor_encode_half(0.00006103515625f, buffer, 512)); in test_half() 75 assert_size_equal(3, cbor_encode_half(-4.0f, buffer, 512)); in test_half() 80 assert_size_equal(3, cbor_encode_half(5.960464477539063e-8f, buffer, 512)); in test_half() 85 assert_size_equal(3, cbor_encode_half(5.960464477539062e-8f, buffer, 512)); in test_half() 89 assert_size_equal(3, cbor_encode_half(4.172325134277344e-7f, buffer, 512)); in test_half() [all …]
|
/freebsd/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 …
|
/freebsd/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()
|