libfixmath (community library)

Summary

Name Value
Name libfixmath
Version 0.0.2
Installs 9662
License MIT
Author nrobinson2000
URL https://github.com/nrobinson2000/libfixmath
Repository https://github.com/nrobinson2000/libfixmath.git
Download .tar.gz
All Versions 0.0.2, 0.0.1

An Implementation of libfixmath for the Particle Core, Photon, Electron, Argon, Boron, Xenon and RedBear Duo

Example Build Testing

Device OS Version:

This table is generated from an automated build. Success only indicates that the code compiled successfully.

Library Read Me

This content is provided by the library maintainer and has not been validated or approved.

libfixmath

The start of a libfixmath Particle library

Ported from: https://github.com/PetteriAimonen/libfixmath

Unit testing

See src/demo.cpp for the unit tests.

Results

On a photon:

=== libfixmath Test ===
Testing basic multiplication
OK: (1)
OK: (1)
OK: (1)
OK: (1)
Testing multiplication rounding corner cases
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
Running testcases for multiplication
OK: (1)
Testing basic division
OK: (1)
OK: (1)
OK: (1)
OK: (1)
Testing division rounding corner cases
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
OK: (1)
Running testcases for division
OK: (1)
Running testcases for addition
OK: (1)
Running testcases for subtraction
OK: (1)
Testing basic square roots
OK: (1)
OK: (1)
OK: (1)
Testing square root rounding corner cases
OK: (1)
OK: (1)
OK: (1)
OK: (1)
Running test cases for square root
OK: (1)
=== Finished tests ===

Browse Library Files