now works with binary16 as well