[Ffmpeg-devel] ac3enc.c modifications
Mike Melanson
mike
Fri May 20 02:15:08 CEST 2005
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.
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).
--
-Mike Melanson
More information about the ffmpeg-devel
mailing list