init commit

This commit is contained in:
2026-06-22 11:39:50 +03:00
commit ba6f1bde22
128 changed files with 17716 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
/* IA-32 SSE version of peakval
* Copyright 2004 Phil Karn, KA9Q
*/
#include <stdlib.h>
#include "fec.h"
int peakval_sse_assist(signed short *,int);
int peakval_sse(signed short *b,int cnt){
int peak = 0;
int a;
while(((int)b & 7) != 0 && cnt != 0){
a = abs(*b);
if(a > peak)
peak = a;
b++;
cnt--;
}
a = peakval_sse_assist(b,cnt);
if(a > peak)
peak = a;
b += cnt & ~3;
cnt &= 3;
while(cnt != 0){
a = abs(*b);
if(a > peak)
peak = a;
b++;
cnt--;
}
return peak;
}