Re: [FFmpeg-devel] Doubts regarding SoftFloat

2016-06-01 Thread Umair Khan
Hi, On Thu, Jun 2, 2016 at 4:02 AM, Moritz Barsnick wrote: > To expand on Michael's comments: > > On Tue, May 31, 2016 at 21:02:01 +0530, Umair Khan wrote: >> I replaced floats in my code with SoftFloat and the results weren't as >> expected. > > Why did you implement your own multiply()? It mak

Re: [FFmpeg-devel] Doubts regarding SoftFloat

2016-06-01 Thread Moritz Barsnick
To expand on Michael's comments: On Tue, May 31, 2016 at 21:02:01 +0530, Umair Khan wrote: > I replaced floats in my code with SoftFloat and the results weren't as > expected. Why did you implement your own multiply()? It makes incorrect assumptions about how SoftFloat works, as far as I can tel

Re: [FFmpeg-devel] Doubts regarding SoftFloat

2016-05-31 Thread Michael Niedermayer
On Tue, May 31, 2016 at 09:02:01PM +0530, Umair Khan wrote: > Hi all, > > I replaced floats in my code with SoftFloat and the results weren't as > expected. > I also had some doubts the way it is written. > > 1. The biggest one is why is the mantissa part of FLOAT_1 defined as > 0x2000 here

[FFmpeg-devel] Doubts regarding SoftFloat

2016-05-31 Thread Umair Khan
Hi all, I replaced floats in my code with SoftFloat and the results weren't as expected. I also had some doubts the way it is written. 1. The biggest one is why is the mantissa part of FLOAT_1 defined as 0x2000 here - https://github.com/FFmpeg/FFmpeg/blob/master/libavutil/softfloat.h#L41. If