Skip to content

AloriumTechnology/XLR8Float

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XLR8 Floating Point Library

Floating point math on Arduino processors is slow.
Floating point math on Alorium Technology's XLR8 Floating Point Library is fast.

Update as of version 2.0.0 The Arduino GCC compiler has made optimizations that unfortunately impact FPGA access to the operands. To ensure the compiler does not interfere with XLR8Float processing, please declare your operand and result variables as "volatile" in your sketches.

Features:

  • Arduino Uno compatible
  • Floating Point Add, Subtract, and Multiply in just 9 cycles (versus ~100-130 on AVR processors)
  • Floating Point Divide in just 17 cycles (versus 500-600 on AVR processors)

Usage:

  • Select Uno board in Arduino IDE
  • Include XLR8Float Library
  • Use accelerated functions for floating point math
    c = xlr8FloatAdd(a,b); // performs c = a + b
    c = xlr8FloatSub(a,b); // performs c = a - b
    c = xlr8FloatMult(a,b); // performs c = a * b
    c = xlr8FloatDiv(a,b); // performs c = a / b

About

Hardware acclerated floating point math. For Arduino Uno compatible XLR8 board from Alorium Technology

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors