Skip to content

Supporting Hardware without Floating Point Support #23

@Pusnow

Description

@Pusnow

Hi, thank you for nice library!

Many embedded processors lack supports for floating points.
To use Verstable in these processors, I have to define MAX_LOAD as 1 or fallbacking to software-based floating point calculation.

It seems that Verstable uses floating points only for calculating table loads.
It would be nicer if Verstable supports load calculation based on integer arithmetics only.
(e.g., for 0.9 #define MAX_LOAD_N 9 / #define MAX_LOAD_D 10, THRESHOLD = (TOTAL * MAX_LOAD_N) / MAX_LOAD_D)

Also, if load calculation is done through bit operations (no multiplication and division), it would be faster in some low-end hardware.
(e.g., THRESHOLD = (TOTAL - (TOTAL >> 3)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions