nuttx-update/libs/libm
Tiago Medicci Serrano 5456668ae8 libm/newlib: Add arch-specific source code first to CSRCS
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.
2024-12-04 02:10:41 +08:00
..
libm libm: fix typo caused compile failed 2024-11-14 19:38:58 +08:00
libmcs Remove all jira and changeid information from the kernel 2024-11-06 02:04:03 +08:00
newlib libm/newlib: Add arch-specific source code first to CSRCS 2024-12-04 02:10:41 +08:00
openlibm Remove all jira and changeid information from the kernel 2024-11-06 02:04:03 +08:00
.gitignore esp32: Use newlib-esp32 2023-09-14 19:33:50 +08:00
CMakeLists.txt libs/libm: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
Kconfig libm/libmcs: add math library libmcs support 2023-04-29 13:47:28 +08:00
libm.csv nuttx: resolve various 'FAR' and 'CODE' issues 2024-08-26 10:21:03 +08:00
Makefile libm: fix typo caused compile failed 2024-11-14 19:38:58 +08:00