- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
27 lines
422 B
C
27 lines
422 B
C
#include <stdio.h>
|
|
#include <math.h>
|
|
#include <stdlib.h>
|
|
|
|
double convert(long long l)
|
|
{
|
|
return (double)l;
|
|
}
|
|
|
|
int main(int argc, char * argv[]) {
|
|
|
|
long long l = 10;
|
|
double f;
|
|
double check = 10.0;
|
|
|
|
f = convert(l);
|
|
printf("convert: %lld => %f\n", l, f);
|
|
if ( f != check ) exit(1);
|
|
|
|
f = 1234.67;
|
|
check = 1234.0;
|
|
printf("floorf(%f) = %f\n", f, floorf(f));
|
|
if ( floorf(f) != check) exit(1);
|
|
|
|
return 0;
|
|
}
|