From e084227a3608bc38230b88ea03e7b0f0804dd3ad Mon Sep 17 00:00:00 2001 From: nsz Date: Sat, 13 Oct 2012 15:58:09 +0200 Subject: [PATCH] math: fix float->int functions --- src/math/gen/template/d_i.c | 4 ++-- src/math/gen/template/f_i.c | 4 ++-- src/math/gen/template/l_i.c | 4 ++-- src/math/ilogb.c | 4 ++-- src/math/ilogbf.c | 4 ++-- src/math/ilogbl.c | 4 ++-- src/math/llrint.c | 4 ++-- src/math/llrintf.c | 4 ++-- src/math/llrintl.c | 4 ++-- src/math/llround.c | 4 ++-- src/math/llroundf.c | 4 ++-- src/math/llroundl.c | 4 ++-- src/math/lrint.c | 4 ++-- src/math/lrintf.c | 4 ++-- src/math/lrintl.c | 4 ++-- src/math/lround.c | 4 ++-- src/math/lroundf.c | 4 ++-- src/math/lroundl.c | 4 ++-- 18 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/math/gen/template/d_i.c b/src/math/gen/template/d_i.c index 3b7e491..c7d69b6 100644 --- a/src/math/gen/template/d_i.c +++ b/src/math/gen/template/d_i.c @@ -9,7 +9,7 @@ HEADERS int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct d_i *p; @@ -31,7 +31,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s ___(%a) want %lld got %d\n", + printf("%s:%d: %s ___(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/gen/template/f_i.c b/src/math/gen/template/f_i.c index e5f0302..1e4315a 100644 --- a/src/math/gen/template/f_i.c +++ b/src/math/gen/template/f_i.c @@ -9,7 +9,7 @@ HEADERS int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct f_i *p; @@ -31,7 +31,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s ___(%a) want %lld got %d\n", + printf("%s:%d: %s ___(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/gen/template/l_i.c b/src/math/gen/template/l_i.c index 26b3470..86a0d9f 100644 --- a/src/math/gen/template/l_i.c +++ b/src/math/gen/template/l_i.c @@ -13,7 +13,7 @@ HEADERS int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct l_i *p; @@ -35,7 +35,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s ___(%La) want %lld got %d\n", + printf("%s:%d: %s ___(%La) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/ilogb.c b/src/math/ilogb.c index c0915a1..0e4cbc5 100644 --- a/src/math/ilogb.c +++ b/src/math/ilogb.c @@ -10,7 +10,7 @@ static struct d_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct d_i *p; @@ -32,7 +32,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s ilogb(%a) want %lld got %d\n", + printf("%s:%d: %s ilogb(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/ilogbf.c b/src/math/ilogbf.c index 2ca0068..4dcda5e 100644 --- a/src/math/ilogbf.c +++ b/src/math/ilogbf.c @@ -10,7 +10,7 @@ static struct f_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct f_i *p; @@ -32,7 +32,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s ilogbf(%a) want %lld got %d\n", + printf("%s:%d: %s ilogbf(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/ilogbl.c b/src/math/ilogbl.c index aa1b3aa..d8b98cf 100644 --- a/src/math/ilogbl.c +++ b/src/math/ilogbl.c @@ -15,7 +15,7 @@ static struct l_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct l_i *p; @@ -37,7 +37,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s ilogbl(%La) want %lld got %d\n", + printf("%s:%d: %s ilogbl(%La) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/llrint.c b/src/math/llrint.c index a4bdc10..835501c 100644 --- a/src/math/llrint.c +++ b/src/math/llrint.c @@ -10,7 +10,7 @@ static struct d_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct d_i *p; @@ -32,7 +32,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s llrint(%a) want %lld got %d\n", + printf("%s:%d: %s llrint(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/llrintf.c b/src/math/llrintf.c index e69be37..5a4e8c7 100644 --- a/src/math/llrintf.c +++ b/src/math/llrintf.c @@ -10,7 +10,7 @@ static struct f_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct f_i *p; @@ -32,7 +32,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s llrintf(%a) want %lld got %d\n", + printf("%s:%d: %s llrintf(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/llrintl.c b/src/math/llrintl.c index 9d99e87..f63c98b 100644 --- a/src/math/llrintl.c +++ b/src/math/llrintl.c @@ -15,7 +15,7 @@ static struct l_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct l_i *p; @@ -37,7 +37,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s llrintl(%La) want %lld got %d\n", + printf("%s:%d: %s llrintl(%La) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/llround.c b/src/math/llround.c index 42aaa40..0802b05 100644 --- a/src/math/llround.c +++ b/src/math/llround.c @@ -10,7 +10,7 @@ static struct d_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct d_i *p; @@ -32,7 +32,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s llround(%a) want %lld got %d\n", + printf("%s:%d: %s llround(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/llroundf.c b/src/math/llroundf.c index fcb5340..780a974 100644 --- a/src/math/llroundf.c +++ b/src/math/llroundf.c @@ -10,7 +10,7 @@ static struct f_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct f_i *p; @@ -32,7 +32,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s llroundf(%a) want %lld got %d\n", + printf("%s:%d: %s llroundf(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/llroundl.c b/src/math/llroundl.c index 6468208..7110e00 100644 --- a/src/math/llroundl.c +++ b/src/math/llroundl.c @@ -15,7 +15,7 @@ static struct l_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct l_i *p; @@ -37,7 +37,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s llroundl(%La) want %lld got %d\n", + printf("%s:%d: %s llroundl(%La) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/lrint.c b/src/math/lrint.c index 9174030..f496954 100644 --- a/src/math/lrint.c +++ b/src/math/lrint.c @@ -10,7 +10,7 @@ static struct d_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct d_i *p; @@ -32,7 +32,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s lrint(%a) want %lld got %d\n", + printf("%s:%d: %s lrint(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/lrintf.c b/src/math/lrintf.c index 87754aa..96a0136 100644 --- a/src/math/lrintf.c +++ b/src/math/lrintf.c @@ -10,7 +10,7 @@ static struct f_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct f_i *p; @@ -32,7 +32,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s lrintf(%a) want %lld got %d\n", + printf("%s:%d: %s lrintf(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/lrintl.c b/src/math/lrintl.c index bb2756b..f689cf2 100644 --- a/src/math/lrintl.c +++ b/src/math/lrintl.c @@ -15,7 +15,7 @@ static struct l_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct l_i *p; @@ -37,7 +37,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s lrintl(%La) want %lld got %d\n", + printf("%s:%d: %s lrintl(%La) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/lround.c b/src/math/lround.c index 51ca347..aa751a0 100644 --- a/src/math/lround.c +++ b/src/math/lround.c @@ -10,7 +10,7 @@ static struct d_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct d_i *p; @@ -32,7 +32,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s lround(%a) want %lld got %d\n", + printf("%s:%d: %s lround(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/lroundf.c b/src/math/lroundf.c index 8590289..a35c97b 100644 --- a/src/math/lroundf.c +++ b/src/math/lroundf.c @@ -10,7 +10,7 @@ static struct f_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct f_i *p; @@ -32,7 +32,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s lroundf(%a) want %lld got %d\n", + printf("%s:%d: %s lroundf(%a) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } diff --git a/src/math/lroundl.c b/src/math/lroundl.c index 45f8925..0b62b1a 100644 --- a/src/math/lroundl.c +++ b/src/math/lroundl.c @@ -15,7 +15,7 @@ static struct l_i t[] = { int main(void) { #pragma STDC FENV_ACCESS ON - int yi; + long long yi; float d; int e, i, err = 0; struct l_i *p; @@ -37,7 +37,7 @@ int main(void) err++; } if (yi != p->i) { - printf("%s:%d: %s lroundl(%La) want %lld got %d\n", + printf("%s:%d: %s lroundl(%La) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++; } -- 2.20.1