Update halffloat.c

Corrected preprocessor form.
Merge pull request #3578 from charris/backport-gh3541

Update halffloat.c