Tomasz Wróbel
2007-Jan-20 07:40 UTC
[Vorbis-dev] Making Ogg Vorbis encoder use emulated FPU class
Hello! I have written a class which emulates FPU on fixed point. I was told to test its efficiency in some real application, by making it use my class instead of hardware FPU. Somehow I thought about Ogg Vorbis encoder, because I was told it uses FPU for encoding. I have some questions on this: - does it make sense to do it with Ogg Vorbis encoder? - is it possible to do it in reasonable time? - if so, where is the code I would have to alter - what problems can occur I would really appreaciate any anwer to these questions, and any hint you think might be useful for this. Best regards Tomek Wr?bel -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20070120/2eb816f8/attachment.htm
Balatoni Denes
2007-Jan-20 08:03 UTC
[Vorbis-dev] Making Ogg Vorbis encoder use emulated FPU class
Hi!> - does it make sense to do it with Ogg Vorbis encoder?Sure.> - is it possible to do it in reasonable time?I don''t think so.> - if so, where is the code I would have to alterAll over the place in the encoder. Or you mean where to get the encoder sources?> - what problems can occurYou miss some places to alter in the source, etc.> I would really appreaciate any anwer to these questions, and any hint you > think might be useful for this. > > Best regards > > Tomek Wr?belbye Denes -- --- What kills me, doesn''t make me stronger.
Frederic Bastien
2007-Jan-20 11:23 UTC
[Vorbis-dev] Making Ogg Vorbis encoder use emulated FPU class
Hi, The standard decoder also use FPU. I didn''t look at the encoder, but I suppose the decoder is simpler, so you could use it if you are short in time. If this class define function with the same name as the standard operation on FPU (+,-,*,/). Meaby you could just change the type of the used variables instead of changing the operation. This way you will have less change to do. If this work, you could just a "cherche and replace" to replace "double" and "float" type to your class. Hope this help Fr?d?ric Bastien Balatoni Denes wrote:> Hi! > > >> - does it make sense to do it with Ogg Vorbis encoder? >> > Sure. > > >> - is it possible to do it in reasonable time? >> > I don''t think so. > > >> - if so, where is the code I would have to alter >> > All over the place in the encoder. Or you mean where to get the encoder > sources? > > >> - what problems can occur >> > You miss some places to alter in the source, etc. > > > >> I would really appreaciate any anwer to these questions, and any hint you >> think might be useful for this. >> >> Best regards >> >> Tomek Wr?bel >> > > bye > Denes > >