code wiki / _hdl_build / nx_update_winwinwin.nx

nx_update_winwinwin.nx

buildroot/runtime/_hdl_build/nx_update_winwinwin.nx

1796 B36 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_update_winwinwin.nx -- the cross-cutting UPDATE GATE that is the OPPOSITE of awful Windows updates (operator: "when we need to make an update across everything it's easy and doesn't negatively impact the user but improves in a win for the hardware - win for the software - win for the user way"). An update is scored on three axes; the USER axis has an ABSOLUTE veto (we never ship a user regression for our own convenience), no axis may regress, and there must be a net win. license_tier: ORIGINAL Reports via PM.

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_update_winwinwin.nx nx_maint_report.nx

imports: nx_syscalls.nx

imported by: nx_maint_report.nx

structs

none

consts

9const WWW_REGRESS: i64 = 0 - 1 // this axis gets worse
10const WWW_NEUTRAL: i64 = 0
11const WWW_IMPROVE: i64 = 1
13const WWW_APPROVE: i64 = 1
14const WWW_HOLD: i64 = 0 // safe but no benefit -> don't churn
15const WWW_REJECT: i64 = 0 - 1 // harms an axis -> never ship

functions

18func www_verdict(hw: i64, sw: i64, user: i64) -> i64
called by 1: main
27func www_is_user_safe(user: i64) -> i64 { if user >= 0 { return 1 } return 0 }
called by 1: main
28func www_is_win_win_win(hw: i64, sw: i64, user: i64) -> i64
called by 1: main
32func www_label(v: i64) -> *u8
called by 1: main