C3_MATH feature (#1709)

* C3_MATH feature

This feature allows the usage of noclib math files even when libc is in use.
If a nolibc symbol exists, it will be used in place of libc, otherwise
it will default to libc.

* Added MIT License notices to atan.c3
This commit is contained in:
Taylor W
2024-12-23 16:42:57 -06:00
committed by GitHub
parent f34eb7d9f3
commit 5020caa9c3
22 changed files with 77 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
module std::math::nolibc @if(env::NO_LIBC);
module std::math::nolibc @if(env::NO_LIBC || $feature(C3_MATH));
fn double _trunc(double x) @weak @extern("trunc") @nostrip
{