Comparison of accounting treatments for repurchases of shares