mirror of
https://github.com/apache/nuttx.git
synced 2025-01-12 23:18:36 +08:00
5456668ae8
Source code under `newlib/newlib/newlib/libm/machine/$(ARCH)/*.c` should be added before common source code from `../../common/*.c`. Take `newlib/newlib/newlib/libm/machine/riscv/s_fma.c` as an example: ``` double fma (double x, double y, double z) { double result; asm ("fmadd.d %0, %1, %2, %3" : "=f" (result) : "f" (x), "f" (y), "f" (z)); return result; } ``` Note that the common `s_fma.c` will be included by the source file directly. The order of adding the files to CSRCS matters here. Although the CMake-based build system does not have the same build problem of including the a source-file with the same in the wrong order, this commit also changes the order of inclusion for CMake too to keep it consistent. |
||
---|---|---|
.. | ||
libm | ||
libmcs | ||
newlib | ||
openlibm | ||
.gitignore | ||
CMakeLists.txt | ||
Kconfig | ||
libm.csv | ||
Makefile |