Debian Codegraph @

third_party/rust/wpf-gpu-raster/src/fix.rs

raw
1 use crate::types::*;
2 type FIX4 = INT; // 28.4 fixed point value
3
4 // constants for working with 28.4 fixed point values
5 macro_rules! FIX4_SHIFT { () => { 4 } }
6 macro_rules! FIX4_PRECISION { () => { 4 } }
7 macro_rules! FIX4_ONE { () => { (1 << FIX4_PRECISION!()) } }
8 macro_rules! FIX4_HALF { () => { (1 << (FIX4_PRECISION!()-1)) } }
9 macro_rules! FIX4_MASK { () => { (FIX4_ONE!() - 1) } }