Hi,
i’m trying to use the mul24 function with emulation in my project and something troubles me…
On page 75 of the programming guide (0.8.2) is said that:
__[u]mul24(x, y) computes the product of the 24 least significant bits of the integer parameters x and y and delivers the 32 least significant bits of the result. If any of the 8 most significant bits of either x or y are set, the result is undefined.
So if i try to set x = 0x00FFFFFF and y = 0x00000001 ,
I expect to get 0xFFFFFFFF as a result because it delivers the 32 most significant bit… but instead I get 0x00FFFFFF, so the result is not sign-extended.
Am I doing something wrong?
Thanks a lot!