Re: "Xiph needs someone to help with assembly for MSVC!"

Chris Brien <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.theora.devel
Message-ID <[email protected]>
Fernando Pelliccioni wrote:

> I don't known how to count the 'asm_c_var' entries to convert to '%0',
> '%1', ... '%n' ...

You don't. Since GCC 3.1, you can name variables in asm (the names exist 
in a different namespace from C variables so they have to be bound as 
constraints). The example from 
http://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html reads

asm ("fsinx %[angle],%[output]"
           : [output] "=f" (result)
           : [angle] "f" (angle));

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.