Underflow/Overflow in mul_2pow
Posted: 2023-11-26, 0:34:21
I found reading this description clunky.
Overflow will produce infinity. The result will be zero rather than a
subnormal number in case of underflow, regardless of control bits in
the mask or numeric control register.
Can I suggest changing the second sentence to match the structure of the first:
Overflow produces infinity. Underflow produces zero rather than a
subnormal number in case of underflow, regardless of control bits in
the mask or numeric control register.
Does this means that if I have code like
let x = 0x1.0p-1022 * 0.25
that I will get a value of 'x' which is zero? Probably not what I would prefer.
Or, if the use of that instruction intended to be dependent on compiler options.
Or have I misunderstood things.
Is there an instruction which behaves as IEEE 754's 'scalbn'
Overflow will produce infinity. The result will be zero rather than a
subnormal number in case of underflow, regardless of control bits in
the mask or numeric control register.
Can I suggest changing the second sentence to match the structure of the first:
Overflow produces infinity. Underflow produces zero rather than a
subnormal number in case of underflow, regardless of control bits in
the mask or numeric control register.
Does this means that if I have code like
let x = 0x1.0p-1022 * 0.25
that I will get a value of 'x' which is zero? Probably not what I would prefer.
Or, if the use of that instruction intended to be dependent on compiler options.
Or have I misunderstood things.
Is there an instruction which behaves as IEEE 754's 'scalbn'