3 ms·
Like this: https://godbolt.org/z/bS2yzB https://godbolt.org/z/bS2yzB But also note that when the input is unsigned short we get: https://godbolt.org/z/sbDbMU
by acqq 8y ago
Like this:
https://godbolt.org/z/bS2yzB https://godbolt.org/z/bS2yzB
But also note that when the input is unsigned short we get:
https://godbolt.org/z/sbDbMU https://godbolt.org/z/sbDbMU
movzx eax, di
imul eax, eax, 52429
shr eax, 19