Cost basis from a stock dplit

Help ! How do I compute the cost basis of a stock resulting from a stock split ?