⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sumsq.c

📁 FEC Optimized viterbi code
💻 C
字号:
/* Compute the sum of the squares of a vector of signed shorts * Copyright 2004 Phil Karn, KA9Q * May be used under the terms of the GNU Lesser General Public License (LGPL) */#include <stdlib.h>#include "fec.h"unsigned long long sumsq_port(signed short *,int);#ifdef __i386__unsigned long long sumsq_mmx(signed short *,int);unsigned long long sumsq_sse(signed short *,int);unsigned long long sumsq_sse2(signed short *,int);#endif#ifdef __VEC__unsigned long long sumsq_av(signed short *,int);#endifunsigned long long sumsq(signed short *in,int cnt){  switch(Cpu_mode){  case PORT:  default:    return sumsq_port(in,cnt);#ifdef __i386__  case SSE:  case MMX:    return sumsq_mmx(in,cnt);  case SSE2:    return sumsq_sse2(in,cnt);#endif#ifdef __VEC__  case ALTIVEC:    return sumsq_av(in,cnt);#endif  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -