added SplitFloat32/64, Float32toFloat16, MergeFloat32,MergeFloat64

This commit is contained in:
2023-02-09 14:27:53 +08:00
parent 488df40d42
commit eae442ce66
5 changed files with 112 additions and 26 deletions

View File

@@ -14,7 +14,8 @@ namespace hgl
using int64 = signed long long; ///<有符号64位整型
using uint64 =unsigned long long; ///<无符号64位整型
using half_float=uint16;
using float32 =float;
using float64 =double;

View File

@@ -13,6 +13,7 @@ namespace hgl
using u32=uint32;
using u64=uint64;
using f16=half_float;
using f32=float;
using f64=double;

View File

@@ -1,5 +1,6 @@
#ifndef HGL_DATATYPE_WINDOWS_INCLUDE
#define HGL_DATATYPE_WINDOWS_INCLUDE
namespace hgl
{
using int8 = signed __int8 ; ///<有符号 8位整型
@@ -10,7 +11,8 @@ namespace hgl
using uint32 =unsigned __int32; ///<无符号32位整型
using int64 = signed __int64; ///<有符号64位整型
using uint64 =unsigned __int64; ///<无符号64位整型
using half_float=uint16;
using float32 =float;
using float64 =double;