From: Sergey Matveev Date: Wed, 18 Jun 2025 17:54:23 +0000 (+0300) Subject: FLOAT warning X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4f49c73297e2f72fac7d89ea0889c85de7989e61f1e65148a1804c7206334559;p=keks.git FLOAT warning --- diff --git a/spec/encoding/FLOAT b/spec/encoding/FLOAT index 82b2670..2e52413 100644 --- a/spec/encoding/FLOAT +++ b/spec/encoding/FLOAT @@ -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. diff --git a/spec/encoding/FullTable b/spec/encoding/FullTable index 022ced6..6bd0d64 100644 --- a/spec/encoding/FullTable +++ b/spec/encoding/FullTable @@ -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 | diff --git a/spec/encoding/index b/spec/encoding/index index 3f512ee..d61de13 100644 --- a/spec/encoding/index +++ b/spec/encoding/index @@ -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