F.9.3.5 The ilogb functions

1

If the correct result is outside the range of the return type, the numeric result is unspecified and the “invalid” floating-point exception is raised.