Re: How to inline a huge m68k code?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ami_stuff wrote:
>
> Maybe it's also possible to use this asm inline also for these functions?
> 
> #ifndef MULL
> #   define MULL(a,b,s) (((int64_t)(a) * (int64_t)(b)) >> (s))
> #endif
> 
> #ifndef MUL64
> #   define MUL64(a,b) ((int64_t)(a) * (int64_t)(b))
> #endif
> 
> #ifndef MAC64
> #   define MAC64(d, a, b) ((d) += MUL64(a, b))
> #endif
> 
> #ifndef MLS64
> #   define MLS64(d, a, b) ((d) -= MUL64(a, b))
> #endif
> 
> All functions used by FFmpeg's mp3 decoder.

Yes, but you must be careful.  These macros will be interpreted differently
depending on whether their arguments are signed or unsigned, so you must
ensure their assembly replacements are appropriate.

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux