heavily used at runtime by Laser calibration.  made fully inline
removed all static as they introduce a "mutex" and anyhow are an overkill to return a constant long long