- Rename @extern to @cname, deprecating the old name #2493.

This commit is contained in:
Christoffer Lerno
2025-10-25 15:55:25 +02:00
parent 423152202f
commit 8aaf54e8b1
76 changed files with 393 additions and 369 deletions

View File

@@ -8,7 +8,7 @@ macro force_eval_add(x, v)
@volatile_store(temp, x + v);
}
fn double __roundeven(double x) @extern("roundeven") @weak @nostrip
fn double __roundeven(double x) @cname("roundeven") @weak @nostrip
{
ulong u = bitcast(x, ulong);
int e = (int)((u >> 52) & 0x7ff);
@@ -42,7 +42,7 @@ fn double __roundeven(double x) @extern("roundeven") @weak @nostrip
return y;
}
fn float __roundevenf(float x) @extern("roundevenf") @weak @nostrip
fn float __roundevenf(float x) @cname("roundevenf") @weak @nostrip
{
uint u = bitcast(x, uint);
int e = (u >> 23) & 0xff;
@@ -75,7 +75,7 @@ fn float __roundevenf(float x) @extern("roundevenf") @weak @nostrip
return y;
}
fn double __powidf2(double a, int b) @extern("__powidf2") @weak @nostrip
fn double __powidf2(double a, int b) @cname("__powidf2") @weak @nostrip
{
bool recip = b < 0;
double r = 1;