flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Azu
What's the point of lzcnt when there is already bsr?
|
|||
![]() |
|
revolution
Tomasz Grysztar wrote: BSR searches for the highest bit that is set to 1, and when there's no such bit found, it returns with ZF cleared, and destination not modified. |
|||
![]() |
|
MazeGen
And don't forget that LZCNT is AMD-specific and AFAIK Intel is not going to implement it. Let me know if I'm wrong.
|
|||
![]() |
|
rugxulo
MazeGen wrote: And don't forget that LZCNT is AMD-specific and AFAIK Intel is not going to implement it. Let me know if I'm wrong. Why, though? Patents? Pride? I can't see the harm in both implementing such instructions, but I don't know what goes on behind the scenes. |
|||
![]() |
|
MazeGen
I'm not sure. Competition and different roadmaps perhaps. And important players' opinion matters I think. If developers of Visual C++ tell Intel "hey, there's LZCNT which could be useful", they can force them to implement it.
BTW, there are Intel forums where you could ask. The Intel guys are pretty responsive. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.