@@ -39,7 +39,7 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64" AND NOT ${LIBPGMATH_WITH_GENERIC})
3939 add_subdirectory ("tanf" )
4040
4141 # Specific definition, will probably need to remove when we create a single file for each def
42- set_property (SOURCE dispatch.c APPEND_STRING PROPERTY COMPILE_FLAGS "-fno-builtin-c{sqrt,pow,log,exp,acos,asin,atan,cos,sin,tan,cosh,sinh,tanh}{,f}" )
42+ set_property (SOURCE dispatch.c APPEND_STRING PROPERTY COMPILE_FLAGS "-fno-builtin-c{sqrt,pow,log,exp,acos,asin,atan,cos,sin,tan,cosh,sinh,tanh}{,f} -fno-builtin-{ceil,floor}{,f} " )
4343 set_property (SOURCE dispatch.c APPEND PROPERTY COMPILE_DEFINITIONS FOR_LIBPGC PGFLANG)
4444 set_property (SOURCE mth_xintrinsics.c APPEND_STRING PROPERTY COMPILE_FLAGS "-march=core2 " )
4545 set_property (SOURCE mth_yintrinsics.c APPEND_STRING PROPERTY COMPILE_FLAGS "-march=sandybridge " )
@@ -79,7 +79,7 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64" AND NOT ${LIBPGMATH_WITH_GENERIC})
7979 add_subdirectory ("tanf" )
8080
8181 # Specific definition, will probably need to remove when we create a single file for each def
82- set_property (SOURCE dispatch.c APPEND_STRING PROPERTY COMPILE_FLAGS "-fno-builtin-c{sqrt,pow,log,exp,acos,asin,atan,cos,sin,tan,cosh,sinh,tanh}{,f}" )
82+ set_property (SOURCE dispatch.c APPEND_STRING PROPERTY COMPILE_FLAGS "-fno-builtin-c{sqrt,pow,log,exp,acos,asin,atan,cos,sin,tan,cosh,sinh,tanh}{,f} -fno-builtin-{ceil,floor}{,f} " )
8383 set_property (SOURCE dispatch.c APPEND PROPERTY COMPILE_DEFINITIONS FOR_LIBPGC PGFLANG)
8484 set_property (SOURCE mth_xintrinsics.c APPEND_STRING PROPERTY COMPILE_FLAGS "-msse2 " )
8585 set_property (SOURCE mth_yintrinsics.c APPEND_STRING PROPERTY COMPILE_FLAGS "-mavx " )
@@ -218,6 +218,7 @@ set(SRCS
218218 bessel_y0.c
219219 bessel_y1.c
220220 bessel_yn.c
221+ ceil.c
221222 ${MTH_CMPLX_SRCS}
222223 cosd.c
223224 cvt.c
@@ -231,7 +232,9 @@ set(SRCS
231232 dbessel_y0.c
232233 dbessel_y1.c
233234 dbessel_yn.c
235+ dceil.c
234236 dcosd.c
237+ dfloor.c
235238 dmod.c
236239 dpowi.c
237240 dpowk.c
@@ -244,6 +247,7 @@ set(SRCS
244247 erfc_scaledf.c
245248 erfcf.c
246249 erff.c
250+ floor.c
247251 fpcvt.c
248252 gamma.c
249253 gammaf.c
0 commit comments