Change syntax of $if, $assert, $include, $echo. Introduces $error

This commit is contained in:
Christoffer Lerno
2023-05-06 12:18:00 +02:00
parent 3dd6675e1b
commit 172d561f07
104 changed files with 338 additions and 336 deletions

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
/* origin: FreeBSD /usr/src/lib/msun/src/k_cos.c */
/*

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
/* origin: FreeBSD /usr/src/lib/msun/src/k_cosf.c */
/*

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
/* origin: FreeBSD /usr/src/lib/msun/src/k_sin.c */
/*

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
/* origin: FreeBSD /usr/src/lib/msun/src/k_sinf.c */
/*

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
/* origin: FreeBSD /usr/src/lib/msun/src/k_tan.c */
/*

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
/* origin: FreeBSD /usr/src/lib/msun/src/k_tanf.c */
/*

View File

@@ -1,6 +1,6 @@
module std::math::nolibc::atan;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
const double[*] ATANHI @private = {
4.63647609000806093515e-01, /* atan(0.5)hi 0x3FDDAC67, 0x0561BB4F */

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
fn double _ceil(double x) @weak @extern("ceil") @nostrip
{

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
fn float _cosf(float x) @extern("cosf") @weak @nostrip
{

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
macro uint _top12f(float x) @private => bitcast(x, uint) >> 20;

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
fn double _floor(double x) @weak @extern("floor") @nostrip
{

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
fn float powf_broken(float x, float f) @extern("powf") @weak @nostrip
{

View File

@@ -1,7 +1,7 @@
module std::math::nolibc;
import std::math;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
/* origin: FreeBSD /usr/src/lib/msun/src/e_rem_pio2f.c */
/*

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
fn double _round(double x) @extern("round") @weak @nostrip
{

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
fn double _scalbn(double x, int n) @weak @extern("scalbn") @nostrip
{

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
/* origin: FreeBSD /usr/src/lib/msun/src/s_sinf.c */
/*

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
/* origin: FreeBSD /usr/src/lib/msun/src/s_sinf.c */
/*

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
/* origin: FreeBSD /usr/src/lib/msun/src/s_tan.c */
/*

View File

@@ -1,6 +1,6 @@
module std::math::nolibc::trig;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
fn double sincos_broken(double x) @extern("sincos") @weak @nostrip
{

View File

@@ -1,6 +1,6 @@
module std::math::nolibc;
$if (!env::COMPILER_LIBC_AVAILABLE)
$if !env::COMPILER_LIBC_AVAILABLE:
fn double _trunc(double x) @weak @extern("trunc") @nostrip
{