flat assembler
Message board for the users of flat assembler.
Index
> Main > lzcnt? |
Author |
|
Azu 24 Sep 2009, 13:09
What's the point of lzcnt when there is already bsr?
|
|||
24 Sep 2009, 13:09 |
|
revolution 24 Sep 2009, 13:54
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. |
|||
24 Sep 2009, 13:54 |
|
MazeGen 24 Sep 2009, 14:08
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.
|
|||
24 Sep 2009, 14:08 |
|
rugxulo 27 Sep 2009, 01:41
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. |
|||
27 Sep 2009, 01:41 |
|
MazeGen 27 Sep 2009, 12:16
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. |
|||
27 Sep 2009, 12:16 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.