M1 primary view: wx-rs patched+extended (Linux/GTK3 build, widget bridge), vendored wx 3.3.3 + asic-rs in thirdparty/, UI-SPEC table+KPIs+dialogs, build scripts
This commit is contained in:
Vendored
+29
@@ -0,0 +1,29 @@
|
||||
use crate::digit_table;
|
||||
use core::mem;
|
||||
|
||||
const _: () = {
|
||||
let mut static_data = mem::size_of_val(&digit_table::DIGIT_TABLE);
|
||||
|
||||
#[cfg(feature = "small")]
|
||||
{
|
||||
use crate::d2s_small_table;
|
||||
|
||||
static_data += mem::size_of_val(&d2s_small_table::DOUBLE_POW5_INV_SPLIT2)
|
||||
+ mem::size_of_val(&d2s_small_table::POW5_INV_OFFSETS)
|
||||
+ mem::size_of_val(&d2s_small_table::DOUBLE_POW5_SPLIT2)
|
||||
+ mem::size_of_val(&d2s_small_table::POW5_OFFSETS)
|
||||
+ mem::size_of_val(&d2s_small_table::DOUBLE_POW5_TABLE);
|
||||
|
||||
assert!(static_data == 1016);
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "small"))]
|
||||
{
|
||||
use crate::d2s_full_table;
|
||||
|
||||
static_data += mem::size_of_val(&d2s_full_table::DOUBLE_POW5_INV_SPLIT)
|
||||
+ mem::size_of_val(&d2s_full_table::DOUBLE_POW5_SPLIT);
|
||||
|
||||
assert!(static_data == 10888); // 10.6K
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user