Alexandre Julliard : d3dx9: Check for missing log2 function.