Home
last modified time | relevance | path

Searched refs:cbor_encode_half (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/libcbor/test/
H A Dfloat_ctrl_encoders_test.c48 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 Dstreaming_encoding.rst56 .. doxygenfunction:: cbor_encode_half
H A Dtype_7.rst68 …e>` values throughout the API. Encoding will be performed by :func:`cbor_encode_half`, which will …
/freebsd/contrib/libcbor/src/cbor/
H A Dencoding.h122 _CBOR_NODISCARD CBOR_EXPORT size_t cbor_encode_half(float, unsigned char *,
H A Dencoding.c127 size_t cbor_encode_half(float value, unsigned char *buffer, in cbor_encode_half() function
H A Dserialization.c360 return cbor_encode_half(cbor_float_get_float2(item), buffer, buffer_size); in cbor_serialize_float_ctrl()