0
0

Initial commit from DCSP - 2026/1/15 15:11:58

This commit is contained in:
xb
2026-01-15 15:11:58 +08:00
commit c93536b187
100 changed files with 59765 additions and 0 deletions

16
lib/libconvert.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include "libconvert.h"
float convert_endian(float x)
{
union {
float f;
unsigned char b[4];
} src, dest;
src.f = x;
dest.b[0] = src.b[3];
dest.b[1] = src.b[2];
dest.b[2] = src.b[1];
dest.b[3] = src.b[0];
return dest.f;
}