Debian Codegraph @

doc/html/format_fp.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <meta http-equiv="X-UA-Compatible" content="IE=11"/>
6 <meta name="generator" content="Doxygen 1.9.4"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>libkate: Format - floating point value</title>
9 <link href="tabs.css" rel="stylesheet" type="text/css"/>
10 <script type="text/javascript" src="jquery.js"></script>
11 <script type="text/javascript" src="dynsections.js"></script>
12 <link href="doxygen.css" rel="stylesheet" type="text/css" />
13 </head>
14 <body>
15 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
16 <div id="titlearea">
17 <table cellspacing="0" cellpadding="0">
18 <tbody>
19 <tr id="projectrow">
20 <td id="projectalign">
21 <div id="projectname">libkate<span id="projectnumber">&#160;0.4.3</span>
22 </div>
23 </td>
24 </tr>
25 </tbody>
26 </table>
27 </div>
28 <!-- end header part -->
29 <!-- Generated by Doxygen 1.9.4 -->
30 <script type="text/javascript" src="menudata.js"></script>
31 <script type="text/javascript" src="menu.js"></script>
32 <script type="text/javascript">
33 /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
34 $(function() {
35 initMenu('',false,false,'search.php','Search');
36 });
37 /* @license-end */
38 </script>
39 <div id="main-nav"></div>
40 </div><!-- top -->
41 <div><div class="header">
42 <div class="headertitle"><div class="title">Format - floating point value </div></div>
43 </div><!--header-->
44 <div class="contents">
45 <div class="textblock"><p >Floating point values are stored as a series of digitized fixed point values in the Kate bitstream format. Several distinct streams of floating point values may be saved at the same time. A stream has a constant format (number of bits saved per value). Streams may be merged together (eg, merging 2 streams of V values yields a single stream of 2*V values). Streams stored together always have the same number of values.</p>
46 <p >When loading N streams, the bitstream format is as follows:</p>
47 <ul>
48 <li>1 bit, being 1 if the streams are merged.</li>
49 </ul>
50 <p>If the streams to load are merged, the different streams are stored as a single stream. In this case, N is set to 1, and the number of values is equal to the total number of values in all streams (eg, the original N times the number of values in a single stream).</p>
51 <p >Then, for each stream:</p>
52 <ul>
53 <li>4bits being the number of zero bits in the high bits of the integer part of a number (&lsquo;head&rsquo;). </li>
54 <li>4bits being the number of bits in the low bits of the fractional part of a number (&lsquo;tail&rsquo;).</li>
55 </ul>
56 <p>Then, for each value:</p>
57 <ul>
58 <li>if head is strictly positive, a bit representing the sign of the number. </li>
59 <li>32-(head+tail) bits, representing the middle bits of the absolute value of the number.</li>
60 </ul>
61 <p>Each number may then be reconstructed by concatenating the given number of high zero bits (&lsquo;head&rsquo;), the middle bits, the given number of low zero bits (&lsquo;tail&rsquo;), and negating the number if the sign bit was 1. </p>
62 </div></div><!-- contents -->
63 </div><!-- PageDoc -->
64 <!-- start footer part -->
65 <hr class="footer"/><address class="footer"><small>
66 Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4
67 </small></address>
68 </body>
69 </html>