You can't implicitly convert numeric data to true or false in C#, you'd have to use:
if ((d & 1) == 0) {
I think.
Printable View
You can't implicitly convert numeric data to true or false in C#, you'd have to use:
if ((d & 1) == 0) {
I think.
Quote:
Originally Posted by wossname
I JUST found a link that said the same...had to read 9999 pages before I found it. Will try it out and see if it work....BTW it is horrible that C# doesn't evaluate ANYTHING else then bool...grr...
- ØØ -
Can anybody tell me what the CNTLZ function looks like? I can't find it...am I going blind?
- ØØ -
That's a bit AND, i.e. if d isn't a multiple of 2 (if the last bit is not set)Quote:
Originally Posted by NoteMe
Yeah, I kind of understood it when I found that other link...was one of my "few" brain farts I guess..:)
But I still think your paper have missed the CNTLZ function. And I have no idea how to make a fast version of that function at all. If I try I bet I end up with something that is slower then the devision..:D
- ØØ -