mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 20:10:17 +00:00
fix linux_x64
This commit is contained in:
parent
62bf58dd2d
commit
81bd9e2203
@ -97,6 +97,5 @@ double acos(double x)
|
|||||||
SET_LOW_WORD(df,0);
|
SET_LOW_WORD(df,0);
|
||||||
c = (z-df*df)/(s+df);
|
c = (z-df*df)/(s+df);
|
||||||
w = R(z)*s+c;
|
w = R(z)*s+c;
|
||||||
// return 2*(df+w);
|
return 2*(df+w);
|
||||||
return 999.9;
|
|
||||||
}
|
}
|
||||||
|
@ -91,11 +91,6 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
if(NOT PK_ENABLE_DETERMINISTIC_FLOAT)
|
|
||||||
# use platform libm
|
|
||||||
target_link_libraries(${PROJECT_NAME} m)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(PK_ENABLE_OS)
|
if(PK_ENABLE_OS)
|
||||||
target_link_libraries(${PROJECT_NAME} dl)
|
target_link_libraries(${PROJECT_NAME} dl)
|
||||||
endif()
|
endif()
|
||||||
@ -112,7 +107,13 @@ endif()
|
|||||||
############################################
|
############################################
|
||||||
|
|
||||||
if(PK_ENABLE_DETERMINISTIC_FLOAT)
|
if(PK_ENABLE_DETERMINISTIC_FLOAT)
|
||||||
|
if(UNIX AND NOT APPLE)
|
||||||
target_link_libraries(${PROJECT_NAME} musl_math)
|
target_link_libraries(${PROJECT_NAME} musl_math)
|
||||||
|
# use platform libm
|
||||||
|
target_link_libraries(${PROJECT_NAME} m)
|
||||||
|
else()
|
||||||
|
target_link_libraries(${PROJECT_NAME} musl_math)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PK_BUILD_MODULE_LZ4)
|
if(PK_BUILD_MODULE_LZ4)
|
||||||
|
@ -75,7 +75,6 @@ assert math.atan2(-math.pi/4, -math.pi/4) == -2.356194490192345
|
|||||||
assert math.atan2(math.pi/4, -math.pi/4) == 2.356194490192345
|
assert math.atan2(math.pi/4, -math.pi/4) == 2.356194490192345
|
||||||
|
|
||||||
assert math.fsum([math.sin(i) for i in range(5000)] + [math.cos(i) for i in range(5000, 9999)]) == 3.217215564632461 - 4.440892098500626e-16
|
assert math.fsum([math.sin(i) for i in range(5000)] + [math.cos(i) for i in range(5000, 9999)]) == 3.217215564632461 - 4.440892098500626e-16
|
||||||
assert math.acos(0.9) == 999.9
|
|
||||||
assert sum([math.sin(i) for i in range(5000)] + [math.cos(i) for i in range(5000, 9999)]) == 3.21721556463248
|
assert sum([math.sin(i) for i in range(5000)] + [math.cos(i) for i in range(5000, 9999)]) == 3.21721556463248
|
||||||
|
|
||||||
assert math.fmod(-2.0, 3.0) == -2.0
|
assert math.fmod(-2.0, 3.0) == -2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user