ThingSet / thingset-device-library

ThingSet library for resource-constrained devices written in C/C++
https://thingset.io/thingset-device-library/
Apache License 2.0
14 stars 6 forks source link

Use GCC builtin lroundf for minimal libc #29

Closed martinjaeger closed 2 years ago

martinjaeger commented 2 years ago

This avoids requiring the full libc also if 64-bit types are disabled.

For some reason the inlined function failed to compile with Espressif toolchain for RISC-V MCUs (ESP32-C3), so I moved the functions to the .c file.

Fixes #25