]> Cypherpunks repositories - keks.git/commitdiff
FLOAT warning
authorSergey Matveev <stargrave@stargrave.org>
Wed, 18 Jun 2025 17:54:23 +0000 (20:54 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 18 Jun 2025 17:54:28 +0000 (20:54 +0300)
spec/encoding/FLOAT
spec/encoding/FullTable
spec/encoding/index

index 82b2670b1d45e58e9a4eede20ea8df1af7b23453fe977843ea4af6ce5d5c3598..2e52413e010be675311af91039dfab1df9bd4a6a9e96f99e20505715cadca2b6 100644 (file)
@@ -1,3 +1,9 @@
+          ====================================================
+                                WARNING
+          ====================================================
+           Currently not implemented and format is not fixed.
+          ====================================================
+
 Floats are encoded in IEEE 754 binary formats: half, single, double,
 quadruple, octuple precision ones.
 
@@ -5,5 +11,4 @@ Negative zero *must not* be used. Shortest possible form *must* be used.
 
 Hint: look at CBOR's RFC for example code of float16 conversion.
 
-Maybe there appear additional restrictions and rules. Currently no
-implementation supports floats.
+Maybe there appear additional restrictions and rules.
index 022ced64f7ce8b6399ebf17452cb3fcd224a96e1189eb7429452ee326ad0e028..6bd0d64a063d94233bab2cd9c6220f5a2e6f6f233ac18323e3d782784ebaa512 100644 (file)
@@ -14,12 +14,12 @@ dec | hex | bin      | vlen |
 012 | 0C  | 00001100 | 1+~  | + [encoding/INT]
 013 | 0D  | 00001101 | 1+~  | - [encoding/INT]
 014 | 0E  | 00001110 | 0    |
-015 | 0F  | 00001111 | 0    |
-016 | 10  | 00010000 | 2    | [encoding/FLOAT] 16
-017 | 11  | 00010001 | 4    | [encoding/FLOAT] 32
-018 | 12  | 00010010 | 8    | [encoding/FLOAT] 64
-019 | 13  | 00010011 | 16   | [encoding/FLOAT] 128
-020 | 14  | 00010100 | 32   | [encoding/FLOAT] 256
+015 | 0F  | 00001111 | ?    | [encoding/FLOAT]
+016 | 10  | 00010000 | 0    |
+017 | 11  | 00010001 | 0    |
+018 | 12  | 00010010 | 0    |
+019 | 13  | 00010011 | 0    |
+020 | 14  | 00010100 | 0    |
 021 | 15  | 00010101 | 0    |
 022 | 16  | 00010110 | 0    |
 023 | 17  | 00010111 | 0    |
index 3f512ee952163a6a95dfe1adfd3f941ba9ba4656d66a813a046413ea7df4209a..d61de13b4dd64261c2572200286555af3a80e38ba97b77e86ce09f6cd10c98d8 100644 (file)
@@ -17,11 +17,7 @@ dec | hex | bin      | vlen |
 012 | 0C  | 00001100 | 1+~  | + [encoding/INT]
 013 | 0D  | 00001101 | 1+~  | - [encoding/INT]
 ... | ... | ...      | ...  | ...
-016 | 10  | 00010000 | 2    | [encoding/FLOAT] 16
-017 | 11  | 00010001 | 4    | [encoding/FLOAT] 32
-018 | 12  | 00010010 | 8    | [encoding/FLOAT] 64
-019 | 13  | 00010011 | 16   | [encoding/FLOAT] 128
-020 | 14  | 00010100 | 32   | [encoding/FLOAT] 256
+015 | 0F  | 00001111 | ?    | [encoding/FLOAT]
 ... | ... | ...      | ...  | ...
 024 | 18  | 00011000 | 8    | [encoding/TAI]64
 025 | 19  | 00011001 | 12   | [encoding/TAI]64N