Approximate computing: An integrated cross-layer framework