Enhanced fmaster to handle both of 32bit return value and 64bit one.