Skip to content
VanderhellPublic

About

Checked and saturating arithmetic for embedded C

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Claudaris

CI License Language

Claudaris banner

Checked arithmetic, saturation, ratios, ranges, alignment and time conversion.

Why it exists

Embedded safety-critical calculations need explicit overflow status and predictable saturation.

What is included

  • Portable C99-oriented implementation.
  • Deterministic integer or fixed-point behavior documented at function level.
  • No mandatory heap, threads or operating-system services.
  • Separate translation units for selective linking.

Quick start

cmake -S . -B build -DCLAUDARIS_BUILD_TESTS=ON
cmake --build build --config Release --parallel
ctest --test-dir build -C Release --output-on-failure

For a minimal integration, include only the required public header and compile the matching source unit.

Documentation

Need Read
Choose a primitive Family guide
Check every function and contract API reference
Reproduce tests and see validation limits Testing report
Review design and dependencies Architecture
See measured or pending performance data Performance

At a glance

The public surface consists of 46 callable APIs in 46 public headers under include/. The implementation includes one private shared helper alongside the 46 public implementation units. Automated validation currently registers 43 C test programs and one C++ public-header smoke test. State, buffers and output ownership are explicit in each public header contract.

The CMake test option is CLAUDARIS_BUILD_TESTS. The library has no mandatory third-party dependency. Platform-specific link requirements are documented in CMake and the affected API header.

Validation status

The audit test suite directly exercises 46/46 public APIs, including deterministic boundary checks and seeded differential tests. The current audit matrix and hardware status are recorded in docs/AUDIT.md and docs/TESTING.md. Earlier ESP32-S3 evidence is historical; current hardware status is HW NOT VERIFIED.

Detailed overflow, rounding, invalid-input, memory-ownership and state rules are defined by the public headers and API reference. Do not infer them from the product name alone.

License

Apache License 2.0, copyright Vanderhell. See LICENSE and NOTICE.

About

Checked and saturating arithmetic for embedded C

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages