谁有 mp3的解码库啊 ?

2019-12-27 19:04发布

谁有 mp3的解码库啊 ?
28条回答
mowin
2019-12-30 08:58
  1. #elif defined(EWARM) /* mowin add */

  2. #define __inline  inline
  3. /*
  4. * MULSHIFT32(x, y)    signed multiply of two 32-bit integers (x and y), returns top 32 bits of 64-bit result
  5. * FASTABS(x)          branchless absolute value of signed integer x
  6. * CLZ(x)              count leading zeros in x
  7. * MADD64(sum, x, y)   (Windows only) sum [64-bit] += x [32-bit] * y [32-bit]
  8. * SHL64(sum, x, y)    (Windows only) 64-bit left shift using __int64
  9. * SAR64(sum, x, y)    (Windows only) 64-bit right shift using __int64 */

  10. /* 1 MULSHIFT32 */
  11. static long MULSHIFT32(long x, long y)
  12. {
  13.     Word64 r = (Word64)x * y;
  14.     return (r >> 32);
  15. }

  16. /* 2 FASTABS */
  17. static __inline int FASTABS(int x)
  18. {
  19.         int sign;

  20.         sign = x >> (sizeof(int) * 8 - 1);
  21.         x ^= sign;
  22.         x -= sign;

  23.         return x;
  24. }

  25. /* 3 CLZ */
  26. #include "stm32f4xx.h" /* mowin 2016-12-12 */
  27. static __inline int CLZ(int x)
  28. {
  29.     return __CLZ(x);
  30. }

  31. /* 4 MADD64 */
  32. static __inline Word64 MADD64(Word64 sum64, int x, int y)
  33. {
  34.     return (Word64)x * y + sum64;
  35. }

  36. /* 5 SHL64 */

  37. /* 6 SAR64 */
  38. static __inline Word64 SAR64(Word64 x, int n)
  39. {
  40.         return x >> n;
  41. }
复制代码

一周热门 更多>