2019-12-27 19:04发布
zack_cf 发表于 2017-5-14 21:14 发明人宣布MP3退出历史舞台,AAC取而代之 上世纪90年代开始兴起并对音乐消费方式产生革命性影响的播放格 ...
lusson 发表于 2017-5-15 21:24 我用的是Libmad解码库,你也可以网上搜搜相关的。
最多设置5个标签!
不简单啦,了解的很全面啦
你好,这个苦能否移植到 iar 的平台上啊 ??
我在网上找了几个,都是基于keil 的平台,但是移植到 iar 的平台上,貌似汇编部分就不行了
- #elif defined(EWARM) /* mowin add */
- #define __inline inline
- /*
- * MULSHIFT32(x, y) signed multiply of two 32-bit integers (x and y), returns top 32 bits of 64-bit result
- * FASTABS(x) branchless absolute value of signed integer x
- * CLZ(x) count leading zeros in x
- * MADD64(sum, x, y) (Windows only) sum [64-bit] += x [32-bit] * y [32-bit]
- * SHL64(sum, x, y) (Windows only) 64-bit left shift using __int64
- * SAR64(sum, x, y) (Windows only) 64-bit right shift using __int64 */
- /* 1 MULSHIFT32 */
- static long MULSHIFT32(long x, long y)
- {
- Word64 r = (Word64)x * y;
- return (r >> 32);
- }
- /* 2 FASTABS */
- static __inline int FASTABS(int x)
- {
- int sign;
- sign = x >> (sizeof(int) * 8 - 1);
- x ^= sign;
- x -= sign;
- return x;
- }
- /* 3 CLZ */
- #include "stm32f4xx.h" /* mowin 2016-12-12 */
- static __inline int CLZ(int x)
- {
- return __CLZ(x);
- }
- /* 4 MADD64 */
- static __inline Word64 MADD64(Word64 sum64, int x, int y)
- {
- return (Word64)x * y + sum64;
- }
- /* 5 SHL64 */
- /* 6 SAR64 */
- static __inline Word64 SAR64(Word64 x, int n)
- {
- return x >> n;
- }
复制代码一周热门 更多>