I need a little understanding with how the calculation of DIV32 function works. I have a part of calculation where results can vary from 8 bit to 32 bit.
The following is causing problems and I would like to know how to avoid DIV32 when results are up to 16bit:

Variable starting with 'w' are word sized
wDummy=wTemp * (wWeight2-wWeight1)
wTemp= DIV32 100 ' I do not want to use it if the result is up to 16 bit. But how to implement this check?