Move some fp16 math utils here.