[CRT] Move rand to stdlib, where it belongs

This commit is contained in:
Timo Kreuzer 2024-04-11 19:49:42 +03:00
parent d55f49978d
commit 43beb913da
4 changed files with 8 additions and 7 deletions

View file

@ -240,17 +240,12 @@ list(APPEND CRT_MATH_SOURCE
math/ldiv.c
math/logf.c
math/powf.c
math/rand.c
)
list(APPEND CRT_MATH_ASM_SOURCE
${LIBCNTPR_MATH_ASM_SOURCE}
)
list(APPEND LIBCNTPR_MATH_SOURCE
math/rand_nt.c
)
if(ARCH STREQUAL "i386")
list(APPEND ATAN2_ASM_SOURCE math/i386/atan2_asm.s)
elseif(ARCH STREQUAL "amd64")

View file

@ -1,10 +1,15 @@
list(APPEND LIBCNTPR_STDLIB_SOURCE
list(APPEND COMMON_STDLIB_SOURCE
stdlib/qsort.c
)
list(APPEND LIBCNTPR_STDLIB_SOURCE
${COMMON_STDLIB_SOURCE}
stdlib/rand_nt.c
)
list(APPEND CRT_STDLIB_SOURCE
${LIBCNTPR_STDLIB_SOURCE}
${COMMON_STDLIB_SOURCE}
stdlib/_exit.c
stdlib/_set_abort_behavior.c
stdlib/abort.c
@ -22,6 +27,7 @@ list(APPEND CRT_STDLIB_SOURCE
stdlib/mbstowcs.c
stdlib/obsol.c
stdlib/putenv.c
stdlib/rand.c
stdlib/rot.c
stdlib/senv.c
stdlib/swab.c