# mathtor **Repository Path**: sambsp/mathtor ## Basic Information - **Project Name**: mathtor - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-07-31 - **Last Updated**: 2026-08-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 主体项目用CMake # 第三方库用了core-math ## core-math编译方式:通过vs2026编译dll而成,使用vs的CLang项目能直接编译(vs installer安装CLang,项目属性中的平台选择CLang)。 ## core-math源码每个方法独立,只要放入dll项目,然后用 #ifdef _WIN32 #define API_EXPORT __declspec(dllexport) #else #define API_EXPORT #endif 输出cr_ 方法即可 比如: API_EXPORT float cr_sinf(float x) 在需要的地方,对应: #ifdef __cplusplus extern "C" { #endif float cr_sinf(float x); double cr_sin(double x); #ifdef __cplusplus } #endif