Searched refs:cbor_encode_half (Results 1 – 5 of 5) sorted by relevance
/netbsd-src/external/mit/libcbor/dist/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() 73 assert_int_equal(3, cbor_encode_half(1.1920928955078125e-7, buffer, 512)); in test_half() [all …]
|
/netbsd-src/external/mit/libcbor/dist/doc/source/api/ |
H A D | type_7.rst | 74 the encoding semantics are given by :func:`cbor_encode_half` as follows: 76 .. doxygenfunction:: cbor_encode_half
|
/netbsd-src/external/mit/libcbor/dist/src/cbor/ |
H A D | encoding.h | 93 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()
|