Add transmission dataPreperation

This commit is contained in:
kradchen
2023-05-10 17:00:36 +08:00
parent aff5106a37
commit 640ab04854
5 changed files with 130 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ namespace {
_mm_set_epi16(2048, 2048, 2048, 2048, 2048, 2048, 2048, 2048);
const uint CONVERT_ADD_VALUE = UINT32_MAX - 4095;
void convert(short * ptr, double* des,bool single = false){
// 初始化值
// 初始化值
auto value = _mm_set_epi16(ptr[0], ptr[1], ptr[2], ptr[3], single?ptr[0]:ptr[4], single?ptr[0]:ptr[5],
single?ptr[0]:ptr[6], single?ptr[0]:ptr[7]);
auto uvalue = _mm_set_epi16(