Re: bsr-algorithm?



spamtrap wrote:
Uff, that's crazy ... you will think that too, if you know for what I
actually use the function: short <-> half-float <-> float <-> long
conversion, for transcoding and creating the exponent.

Why didn't you tell us that up front?

Please specify exactly what your input format is, and what you need as the final output!

The short input is probably signed 16-bit values, right?

How should they be converted, i.e. which features of the input do you actually need to extract?

Can you post a pseudo-code version of the full algorithm?

Terje
--
- <Terje.Mathisen@xxxxxxxxxxxxx>
"almost all programming can be viewed as an exercise in caching"

.



Relevant Pages

  • Re: long -> double -> long
    ... of mantisa as the minimum. ... it can not be presented in a double with zero exponent, ... the far left so no integers greater than 1 have a zero exponent (and ... conversion back produces the same value. ...
    (comp.lang.c)
  • Re: VHS tape to divx
    ... You may also want to look at mjpegtools for conversion, transcoding etc. ... It does have direct hardware support for some devices as well. ...
    (alt.os.linux.suse)
  • Re: bsr-algorithm?
    ... If you have to handle zero, then you'll have to add a compare against ... conversion, for transcoding and creating the exponent. ... short, convert it's exponent into a float, and extracting the ...
    (comp.lang.asm.x86)
  • Re: msbin to ieee
    ... Does anyone have the python version of the conversion from msbin to ... if not exponent: ...
    (comp.lang.python)
  • Re: printf and style g
    ... Let P equal the precision if nonzero, ... if a conversion with style E would have an exponent ... So I don't think an additional clarifying condition is necessary ...
    (comp.std.c)

Quantcast