Binary representation of number based on processor word size
Abstract
A method of converting a number to a binary representation based on a processor word size is described. In accordance with the method, a predetermined size segment of a number is converted to a binary representation wherein the predetermined size segment is based on the processor word size. Also described is a method of converting a number represented in binary form and comprised of more than one segment, wherein the segment size is determined based on processor word size, to a decimal representation. A first decimal segment resulting from converting a segment of the more than one binary segments to decimal form is combined with a second decimal segment resulting from converting another segment of the more than one binary segments to decimal form.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 2 · Forward citations: 4.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of operating a processor having a processor word size, the method comprising: sectioning, with the processor, a given non-binary number system number into one or more segments, wherein each of the one or more segments has a predetermined segment size of one or more digits equal to a maximum number of digits storable in one word having the processor word size, wherein each digit is able to represent all of the range of possible digits of the given non-binary number system; converting, with the processor, the segmented given non-binary number system number to a segmented binary represen
- Claim 2Depends on #1
The method of claim 1 , further comprising: setting the segment size to a number of
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (2)
Non-Patent Literature (5)
- Chen et al., "Storage-Efficient Representation of Decimal Data"; Communications of the ASM USA, vol. 18, No. 1, Jan. 1975; pp. 49-52.
- Gilbert et al.; Introduction to Saturn Assembly Language; URL:http://web.archive.org/web/20040414221018/http://www.exzodia.net/hp48/docs/asmtut.pdf; chapters 12-14.
- Mike Cowlishaw; "Densely Packet Decimal Encoding"; IEE Proceedings E. Computers & Digital Techniques, Institution of Electrical Engineers, vol. 149, No. 3, May 24, 2002.
- Mike Cowlishaw; "REXX Arithmetic-more than just a number"; URL:http://web.archive.org/web/20041023215445/http://rexxla.org/Symposium/2001/mike/rexxsy01.pdf; pp. 28-29.
- Peter Hemsley; "High-Speed Decimal to Binary for Pics"; Everyday Practical Electronics; Dec. 2003, pp. 887-888.