Path: csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.ripco.com!feeder.erje.net!2.us.feeder.erje.net!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail From: Grant Edwards Newsgroups: comp.arch.embedded Subject: Re: Integer/Fixedpoint to 32 bit float Date: Wed, 6 Apr 2016 17:56:31 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 21 Message-ID: References: <27iagb5s0l5um0dhlrum0g46bmgfiufb53@4ax.com> NNTP-Posting-Host: 67-130-15-94.dia.static.qwest.net X-Trace: reader1.panix.com 1459965391 11724 67.130.15.94 (6 Apr 2016 17:56:31 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Wed, 6 Apr 2016 17:56:31 +0000 (UTC) User-Agent: slrn/1.0.2 (Linux) Xref: csiph.com comp.arch.embedded:23545 On 2016-04-06, Robert Wessel wrote: > [16-bit signed to IEEE single conversion algorithm] And then write a test program that tests and verifies the conversion function for all 65536 possible input values. You could try to figure out a minimal set of inputs that provides 100% test coverage, but a) you'll be wrong[*] b) with only a 16-bit input space, it'll be faster and easier to just test all possible inputs [*] At least that's been my experience with stuff like this. -- Grant Edwards grant.b.edwards Yow! Now that I have my at "APPLE", I comprehend COST gmail.com ACCOUNTING!!