Searched refs:cbor_encode_half (Results 1 – 5 of 5) sorted by relevance
| /freebsd-13.1/contrib/libcbor/test/ |
| H A D | type_7_encoders_test.c | 42 assert_int_equal(3, cbor_encode_half(1.5f, buffer, 512)); in test_half() 45 assert_int_equal(3, cbor_encode_half(-0.0f, buffer, 512)); in test_half() 48 assert_int_equal(3, cbor_encode_half(0.0f, buffer, 512)); in test_half() 51 assert_int_equal(3, cbor_encode_half(65504.0f, buffer, 512)); in test_half() 54 assert_int_equal(3, cbor_encode_half(0.00006103515625f, buffer, 512)); in test_half() 57 assert_int_equal(3, cbor_encode_half(-4.0f, buffer, 512)); in test_half() 61 assert_int_equal(3, cbor_encode_half(5.960464477539063e-8f, buffer, 512)); in test_half() 65 assert_int_equal(3, cbor_encode_half(5.960464477539062e-8f, buffer, 512)); in test_half() 70 assert_int_equal(3, cbor_encode_half(1e-25f, buffer, 512)); in test_half() 79 assert_int_equal(3, cbor_encode_half(INFINITY, buffer, 512)); in test_half() [all …]
|
| /freebsd-13.1/contrib/libcbor/doc/source/api/ |
| H A D | type_7.rst | 73 the encoding semantics are given by :func:`cbor_encode_half` as follows: 75 .. doxygenfunction:: cbor_encode_half
|
| /freebsd-13.1/contrib/libcbor/src/cbor/ |
| H A D | encoding.h | 95 CBOR_EXPORT size_t cbor_encode_half(float, unsigned char *, size_t);
|
| 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 | 275 return cbor_encode_half(cbor_float_get_float2(item), buffer, buffer_size); in cbor_serialize_float_ctrl()
|