remove inline

removed inline reference for compatibility
changed quark diff calc to bitcoin