create qdqr truncated and shifted function