This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

inline assenbly

Hi!

Controler: STM32F4
Toolchain: MDK-ARM Professional Version: 5.21a

I want to compile the following peace of code

static __inline int MULSHIFT32(int x, int y)
{
        int zlow;

        __asm__ volatile
        (
                "smull %0,%1,%2,%3"
                : "=&r" (zlow), "=r" (y)
                : "r" (x), "1" (y)
                : "cc"
        );

        return y;
}

and I get the compiler error

error: #18: expected a ")"
: "=&r" (zlow), "=r" (y)

The code is part of helix mp3 decoder, I want to test with my controler.
What kind of failure I make?

regards Marc

Parents Reply Children
No data