this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

src/libm: Misc Cleanup

* Move arch specific stuff in TARGET_i386/x86_64
* Remove empty ARM assembly files.
* If not TARGET_i386/x86_64, compile system_m_extra with empty.c

Thomas A 0a52eec9 8e59ab1f

+141 -129
+141 -129
src/libm/CMakeLists.txt
··· 3 3 cmake_minimum_required(VERSION 2.4.0) 4 4 enable_language(C ASM) 5 5 6 - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse -msse2 -msse3 -w -ggdb -O0") 7 - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__DARWIN_UNIX03 -fPIC -w -DBUILDING_FOR_CARBONCORE_LEGACY -funroll-loops -msse3") # -DBUILDING_FOR_CARBONCORE_LEGACY") 6 + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__DARWIN_UNIX03 -fPIC -w -ggdb -O0 -DBUILDING_FOR_CARBONCORE_LEGACY -funroll-loops") # -DBUILDING_FOR_CARBONCORE_LEGACY") 8 7 set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -DBUILDING_FOR_CARBONCORE_LEGACY") 9 8 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -nostdlib") 10 9 11 - include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Source/Intel) 12 10 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Source) 13 11 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../libc/darwin) 14 - add_definitions(-Dmovsxw=movswl -DPRIVATE) 12 + add_definitions(-DPRIVATE) 13 + 14 + if (TARGET_i386 OR TARGET_x86_64) 15 + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse -msse2 -msse3") 16 + include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Source/Intel) 17 + add_definitions(-Dmovsxw=movsw) 18 + endif () 15 19 16 20 set(libm_sources 17 21 Source/abs.c ··· 20 24 #Source/nan.c 21 25 #Source/nanl.c 22 26 #Source/version_info.c 23 - Source/Intel/acos.c 24 - Source/Intel/asin.c 25 - Source/Intel/atan.c 26 - Source/Intel/complex.c 27 - Source/Intel/containsNothingIntel.c 28 - Source/Intel/e_acosh.c 29 - Source/Intel/e_atanh.c 30 - Source/Intel/e_cosh.c 31 - Source/Intel/e_j0.c 32 - Source/Intel/e_j1.c 33 - Source/Intel/e_jn.c 34 - Source/Intel/e_sinh.c 35 - Source/Intel/expf_logf_powf.c 36 - Source/Intel/fenv.c 37 - Source/Intel/fmaf.c 38 - Source/Intel/nan.c 39 - Source/Intel/nanl.c 40 - Source/Intel/rndtol.c 41 - Source/Intel/s_asinh.c 42 - Source/Intel/sincostan.c 43 - Source/Intel/s_matherr.c 44 - Source/Intel/s_tanh.c 45 - Source/Intel/xmm_arcsincostan.c 46 - Source/Intel/xmm_erfgamma.c 47 - Source/Intel/xmm_exp.c 48 - Source/Intel/xmm_fma.c 49 - Source/Intel/xmm_log.c 50 - Source/Intel/xmm_misc.c 51 - Source/Intel/xmm_nextafter.c 52 - Source/Intel/xmm_power.c 53 - Source/Intel/xmm_remainder.c 54 - Source/Intel/xmm_sqrt.c 55 - 56 - Source/Intel/acosf.S 57 - Source/Intel/acoshf.S 58 - Source/Intel/asinf.S 59 - Source/Intel/asinhf.S 60 - Source/Intel/atan2f.S 61 - Source/Intel/atanf.S 62 - Source/Intel/atanhf.S 63 - Source/Intel/cbrtf.S 64 - Source/Intel/ceilf.S 65 - Source/Intel/ceill.S 66 - Source/Intel/ceil.S 67 - Source/Intel/copysign.S 68 - Source/Intel/coshf.S 69 - Source/Intel/cosh.S 70 - Source/Intel/e_acos.S 71 - Source/Intel/e_asin.S 72 - Source/Intel/e_atan2.S 73 - Source/Intel/e_cbrtl.S 74 - Source/Intel/e_exp.S 75 - Source/Intel/e_log10.S 76 - Source/Intel/e_log.S 77 - Source/Intel/e_remainder.S 78 - #Source/Intel/e_remquol.S 79 - Source/Intel/e_sqrt.S 80 - Source/Intel/exp2f.S 81 - Source/Intel/exp2.S 82 - Source/Intel/expf.S 83 - Source/Intel/expl.S 84 - Source/Intel/expm1f.S 85 - Source/Intel/expm1.S 86 - Source/Intel/exp.S 87 - Source/Intel/floorf.S 88 - Source/Intel/floorl.S 89 - Source/Intel/floor.S 90 - Source/Intel/fmaxfminfdim.S 91 - Source/Intel/fmod.S 92 - Source/Intel/frexp.S 93 - Source/Intel/fyl2x.S 94 - Source/Intel/hypotf.S 95 - Source/Intel/hypotl.S 96 - Source/Intel/hypot.S 97 - Source/Intel/ilogb.S 98 - Source/Intel/log10f.S 99 - Source/Intel/log2f.S 100 - Source/Intel/log2.S 101 - Source/Intel/logf.S 102 - #Source/Intel/log.S 103 - Source/Intel/lrintl.S 104 - Source/Intel/lroundf.S 105 - Source/Intel/lroundl.S 106 - Source/Intel/lround.S 107 - Source/Intel/modff.S 108 - Source/Intel/modfl.S 109 - Source/Intel/modf.S 110 - Source/Intel/nearbyintf.S 111 - Source/Intel/nearbyintl.S 112 - Source/Intel/nearbyint.S 113 - Source/Intel/nextafterf.S 114 - Source/Intel/nextafterl.S 115 - Source/Intel/nextafter.S 116 - #Source/Intel/powf.S 117 - Source/Intel/rintf.S 118 - Source/Intel/rintl.S 119 - Source/Intel/rint.S 120 - Source/Intel/roundf.S 121 - Source/Intel/roundl.S 122 - Source/Intel/round.S 123 - Source/Intel/s_atan.S 124 - Source/Intel/scalbnf.S 125 - Source/Intel/scalbnl.S 126 - Source/Intel/scalbn.S 127 - Source/Intel/s_cosisin.S 128 - Source/Intel/s_cos.S 129 - #Source/Intel/s_ilogb.S 130 - Source/Intel/sinfcosf.S 131 - Source/Intel/sinhf.S 132 - Source/Intel/sinh.S 133 - Source/Intel/s_log1p.S 134 - #Source/Intel/s_logb.S 135 - Source/Intel/s_rint.S 136 - #Source/Intel/s_significand.S 137 - Source/Intel/s_sin.S 138 - Source/Intel/s_tan.S 139 - Source/Intel/tanf.S 140 - Source/Intel/tanhf.S 141 - Source/Intel/tanh.S 142 - Source/Intel/truncf.S 143 - Source/Intel/truncl.S 144 - Source/Intel/trunc.S 145 - 146 27 ) 147 28 29 + if (TARGET_i386 OR TARGET_x86_64) 30 + set(libm_sources ${libm_sources} 31 + Source/Intel/acos.c 32 + Source/Intel/asin.c 33 + Source/Intel/atan.c 34 + Source/Intel/complex.c 35 + Source/Intel/containsNothingIntel.c 36 + Source/Intel/e_acosh.c 37 + Source/Intel/e_atanh.c 38 + Source/Intel/e_cosh.c 39 + Source/Intel/e_j0.c 40 + Source/Intel/e_j1.c 41 + Source/Intel/e_jn.c 42 + Source/Intel/e_sinh.c 43 + Source/Intel/expf_logf_powf.c 44 + Source/Intel/fenv.c 45 + Source/Intel/fmaf.c 46 + Source/Intel/nan.c 47 + Source/Intel/nanl.c 48 + Source/Intel/rndtol.c 49 + Source/Intel/s_asinh.c 50 + Source/Intel/sincostan.c 51 + Source/Intel/s_matherr.c 52 + Source/Intel/s_tanh.c 53 + Source/Intel/xmm_arcsincostan.c 54 + Source/Intel/xmm_erfgamma.c 55 + Source/Intel/xmm_exp.c 56 + Source/Intel/xmm_fma.c 57 + Source/Intel/xmm_log.c 58 + Source/Intel/xmm_misc.c 59 + Source/Intel/xmm_nextafter.c 60 + Source/Intel/xmm_power.c 61 + Source/Intel/xmm_remainder.c 62 + Source/Intel/xmm_sqrt.c 63 + 64 + Source/Intel/acosf.S 65 + Source/Intel/acoshf.S 66 + Source/Intel/asinf.S 67 + Source/Intel/asinhf.S 68 + Source/Intel/atan2f.S 69 + Source/Intel/atanf.S 70 + Source/Intel/atanhf.S 71 + Source/Intel/cbrtf.S 72 + Source/Intel/ceilf.S 73 + Source/Intel/ceill.S 74 + Source/Intel/ceil.S 75 + Source/Intel/copysign.S 76 + Source/Intel/coshf.S 77 + Source/Intel/cosh.S 78 + Source/Intel/e_acos.S 79 + Source/Intel/e_asin.S 80 + Source/Intel/e_atan2.S 81 + Source/Intel/e_cbrtl.S 82 + Source/Intel/e_exp.S 83 + Source/Intel/e_log10.S 84 + Source/Intel/e_log.S 85 + Source/Intel/e_remainder.S 86 + #Source/Intel/e_remquol.S 87 + Source/Intel/e_sqrt.S 88 + Source/Intel/exp2f.S 89 + Source/Intel/exp2.S 90 + Source/Intel/expf.S 91 + Source/Intel/expl.S 92 + Source/Intel/expm1f.S 93 + Source/Intel/expm1.S 94 + Source/Intel/exp.S 95 + Source/Intel/floorf.S 96 + Source/Intel/floorl.S 97 + Source/Intel/floor.S 98 + Source/Intel/fmaxfminfdim.S 99 + Source/Intel/fmod.S 100 + Source/Intel/frexp.S 101 + Source/Intel/fyl2x.S 102 + Source/Intel/hypotf.S 103 + Source/Intel/hypotl.S 104 + Source/Intel/hypot.S 105 + Source/Intel/ilogb.S 106 + Source/Intel/log10f.S 107 + Source/Intel/log2f.S 108 + Source/Intel/log2.S 109 + Source/Intel/logf.S 110 + #Source/Intel/log.S 111 + Source/Intel/lrintl.S 112 + Source/Intel/lroundf.S 113 + Source/Intel/lroundl.S 114 + Source/Intel/lround.S 115 + Source/Intel/modff.S 116 + Source/Intel/modfl.S 117 + Source/Intel/modf.S 118 + Source/Intel/nearbyintf.S 119 + Source/Intel/nearbyintl.S 120 + Source/Intel/nearbyint.S 121 + Source/Intel/nextafterf.S 122 + Source/Intel/nextafterl.S 123 + Source/Intel/nextafter.S 124 + #Source/Intel/powf.S 125 + Source/Intel/rintf.S 126 + Source/Intel/rintl.S 127 + Source/Intel/rint.S 128 + Source/Intel/roundf.S 129 + Source/Intel/roundl.S 130 + Source/Intel/round.S 131 + Source/Intel/s_atan.S 132 + Source/Intel/scalbnf.S 133 + Source/Intel/scalbnl.S 134 + Source/Intel/scalbn.S 135 + Source/Intel/s_cosisin.S 136 + Source/Intel/s_cos.S 137 + #Source/Intel/s_ilogb.S 138 + Source/Intel/sinfcosf.S 139 + Source/Intel/sinhf.S 140 + Source/Intel/sinh.S 141 + Source/Intel/s_log1p.S 142 + #Source/Intel/s_logb.S 143 + Source/Intel/s_rint.S 144 + #Source/Intel/s_significand.S 145 + Source/Intel/s_sin.S 146 + Source/Intel/s_tan.S 147 + Source/Intel/tanf.S 148 + Source/Intel/tanhf.S 149 + Source/Intel/tanh.S 150 + Source/Intel/truncf.S 151 + Source/Intel/truncl.S 152 + Source/Intel/trunc.S 153 + ) 154 + endif () 155 + 148 156 # Gross hack to rename symbols in $fenv_access_off variants 149 157 set(CMAKE_AR "${CMAKE_CURRENT_SOURCE_DIR}/rename_wrapper") 150 158 ··· 152 160 SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) 153 161 SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) 154 162 155 - add_darling_object_library(system_m_extra Source/Intel/xmm_misc.c Source/Intel/xmm_log.c Source/Intel/fmaxfminfdim.S Source/Intel/nextafter.S Source/Intel/xmm_remainder.c Source/Intel/e_remquol.S) 156 - set_target_properties(system_m_extra PROPERTIES COMPILE_FLAGS "-UBUILDING_FOR_CARBONCORE_LEGACY -O0 -ggdb") 163 + if (TARGET_i386 OR TARGET_x86_64) 164 + add_darling_object_library(system_m_extra Source/Intel/xmm_misc.c Source/Intel/xmm_log.c Source/Intel/fmaxfminfdim.S Source/Intel/nextafter.S Source/Intel/xmm_remainder.c Source/Intel/e_remquol.S) 165 + set_target_properties(system_m_extra PROPERTIES COMPILE_FLAGS "-UBUILDING_FOR_CARBONCORE_LEGACY -O0 -ggdb") 166 + else () 167 + add_darling_object_library(system_m_extra Source/empty.c) 168 + endif () 157 169 make_fat(system_m_extra) 158 170 159 171 set(DYLIB_INSTALL_NAME "/usr/lib/system/libsystem_m.dylib")
src/libm/Source/ARM/acosf.s src/libm/Source/empty.c
src/libm/Source/ARM/acoshf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/asinf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/asinhf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/atan2.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/atan2f.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/atanhf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/cbrtf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/ceil.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/ceilf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/copysign.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/cosf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/coshf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/exp.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/exp2.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/exp2f.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/expf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/expm1f.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/fabs.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/fabsf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/floor.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/floorf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/fmax.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/fmaxf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/fmin.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/fminf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/fmod.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/frexp.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/frexpf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/hypot.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/hypotf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/ldexp.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/ldexpf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/llrintf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/llroundf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/log.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/log2.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/logf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/lrintf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/lround.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/lroundf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/modf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/modff.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/nearbyintf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/pow.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/powf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/round.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/roundf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/sincos.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/sinf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/sinhf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/tan.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/tanf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/tanhf.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/trunc.s

This is a binary file and will not be displayed.

src/libm/Source/ARM/truncf.s

This is a binary file and will not be displayed.