I want bsr to operate on a 64 bit number. However, the following only works on the lower 32 bits of the input:
function BSR64(const Val: Int64): Integer;
begin
asm
bsr eax, [Val]
...
How do I do this?
I'm compiling in 64 bit mode using Lazarus.