20 lines
604 B
Rust
20 lines
604 B
Rust
//! CORDIC compiler and evaluator for TrigGraph IR.
|
||
//!
|
||
//! Compiles a [`cord_trig::TrigGraph`] into a sequence of CORDIC instructions
|
||
//! that evaluate using only shifts, adds, and a precomputed angle table.
|
||
//! Zero floating-point operations in the evaluation path.
|
||
//!
|
||
//! Supports configurable word widths (8–64 bit). At 32 bits, error vs f64
|
||
//! reference is typically zero at the precision boundary.
|
||
|
||
pub mod compiler;
|
||
pub mod config;
|
||
pub mod ops;
|
||
pub mod eval;
|
||
pub mod lut;
|
||
|
||
pub use compiler::CORDICProgram;
|
||
pub use config::CordicConfig;
|
||
pub use eval::CORDICEvaluator;
|
||
pub use lut::CordicTable;
|