[Ffmpeg-devel] ac3enc.c modifications

Måns Rullgård mru
Fri May 20 02:41:32 CEST 2005


Mike Melanson <mike at multimedia.cx> writes:

> Rich Felker wrote:
>> Yes it is. Performing an operation on an integer is inherently less
>> work than performing the same operation on a floating point number,
>> since you have the added exponent to deal with. If you make a cpu
>> where the floating point op is just as fast or faster, it means you
>> misdesigned your integer unit horribly, since a simplified version of
>> the floating point unit should be able to do the analogous integer
>> operation in less time.
>
> 	I didn't realize math majors had to take so many electrical &
> 	computer engineering courses.

They don't, but they like generalizing their highly theoretical view
of reality to cover all aspects of everything.

> 	How about this scenario: Both the floating point op and
> 	integer op take the same amount of time, say, 1 clock
> 	cycle. Where is the advantage for integer in this case? 
> 	Especially since the code probably has to do a few more
> 	maintenance operations on the integer after the operation
> 	(precision scaling, whatever).

I think that's closer to reality.

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list