I've been out of town for some weeks, but in case you (and anyone else) is 
still interested, here it is once again...
No warranty for 100% seamless operation, I just did run a quick test on all 
functions, only used one of them in a project.

You'll need to define the ATOMIC macro somewhere. I use it to handle nested 
DINT() sections (because just saving R2 to stack will break many compiler 
optimizations with the stack frame):

unsigned int ATOMIC_CNT;
#define ATOMIC(x) do { __asm__ __volatile__ ("inc %0\n  
dint\n":"=m"(ATOMIC_CNT):); x; __asm__ __volatile__ ("dec %0\n  jnz .LA%=\n  
eint\n .LA%=:":"=m"(ATOMIC_CNT):);}while(0)


JMGross


----- Ursprüngliche Nachricht -----
Von: Andres Vahter
An: [email protected]
Gesendet am: 03 Sep 2010 14:33:57
Betreff: Re: [Mspgcc-users] Multiplication using Horner's method

It would be interesting. Could you publish them again if it isn't too much 
trouble.

Andres

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to