Cord/crates/cord-cordic/src/lib.rs

20 lines
604 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//! 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 (864 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;