Home
last modified time | relevance | path

Searched refs:val (Results 1 – 5 of 5) sorted by relevance

/zcbor-latest/tests/decode/test5_corner_cases/
Dfloats.py21 def print_32_64(str_val, val = None): argument
22 val = val or float(str_val)
23 print_var(str_val, val, struct.pack("!e", numpy.float16(val)))
24 …print_var(str_val, val, struct.pack("!f", struct.unpack("!e", struct.pack("!e", numpy.float16(val)…
25 print (numpy.float32(struct.unpack("!e", struct.pack("!e", numpy.float16(val)))[0]))
26 print_var(str_val, val, struct.pack("!f", val))
27 print_var(str_val, val, struct.pack("!d", val))
28 print_var(str_val, val, struct.pack("!d", struct.unpack("!f", struct.pack("!f", val))[0]))
/zcbor-latest/zcbor/
Dzcbor.py201 def val_to_str(val): argument
202 if isinstance(val, bool):
203 return str(val).lower()
204 elif isinstance(val, Hashable) and val in val_conversions:
205 return val_conversions[val]
206 return str(val)
278 {my_type: None for my_type, val in type_strings.items() if not val.startswith("&(")}
280 {my_cg: None for my_cg, val in type_strings.items() if val.startswith("&(")}
1572 val = next(it)
1577 + "\n elem: ".join(str(elem) for elem in ([val] + list(it))))
[all …]
/zcbor-latest/src/
Dzcbor_encode.c19 static uint8_t log2ceil(size_t val) in log2ceil() argument
21 switch(val) { in log2ceil()
/zcbor-latest/
DARCHITECTURE.md28 …g the base CDDL type, the options are (corresponding CBOR types are in the form of #majortype.val):
DREADME.md159 … pairs are represented as `{"zcbor_keyval<unique int>": {"key": <key, not text>, "val": <value>}}`.