Files
francis.wang 4c86c082a2 Initial commit: OpenWrt-Yocto monorepo
Combine poky (Yocto scarthgap), meta-openembedded (scarthgap), and
meta-openwrt into a single repository.

Components:
- poky/             Yocto core framework (BitBake + OE-Core)
- meta-openembedded/ Community layers (meta-oe, meta-python, meta-networking)
- meta-openwrt/     OpenWrt customization layer
- setup-env.sh      One-click build environment setup
- README.md         Project documentation
2026-07-11 13:28:01 +08:00

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;
}