Skip to content

Instantly share code, notes, and snippets.

View MattBlack85's full-sized avatar
🦉
owly crap

Mattia Procopio MattBlack85

🦉
owly crap
  • Kraków
View GitHub Profile
2005..=2049 => {
lea ecx, [rax, -, 2005]
cmp cx, 45
jae .LBB39_13
let t = decimal_year - 2000_f64;
vaddsd xmm1, xmm0, qword, ptr, [rip, +, .LCPI39_10]
0.005_589f64.mul_add(t * t, 0.32217f64.mul_add(t, 62.92))
vmulsd xmm2, xmm1, xmm1
vmovsd xmm0, qword, ptr, [rip, +, .LCPI39_11]
vfmadd213sd xmm0, xmm1, qword, ptr, [rip, +, .LCPI39_12]
use eframe::egui;
fn main() -> Result<(), eframe::Error> {
//env_logger::init(); // Log to stderr (if you run with `RUST_LOG=debug`).
let options = eframe::NativeOptions {
initial_window_size: Some(egui::vec2(320.0, 240.0)),
..Default::default()
};
eframe::run_native(
"My egui App",