[theora-dev] "Xiph needs someone to help with assembly for MSVC!"

Chris Brien chris.brien at tandberg.com
Thu Oct 2 07:38:31 PDT 2008

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));


More information about the theora-dev mailing list