Liste des Groupes | Revenir à c arch |
>Question: How do you handle the case where the bit vector is an odd
I guess, while a person could do something like (in C):
_BitInt(1048576) bmp;
_Boolean b;
...
b=(bmp>>i)&1; //*blarg* (shift here would be absurdly expensive)
>
This is liklely to be rare vs more traditional strategies, say:
uint64_t *bmp;
int b, i;
...
b=(bmp[i>>6]>>(i&63))&1;
As well as the traditional strategy being a whole lot more efficient inMc 68020 had instructions to access bit-fields that cross word
this case...
>
>
I guess the case could be made for a generic dense bit array.
Though, an open question is how one would define it in a way that isArchitecture is more about what gets left OUT than what gets left IN.
consistent with existing semantics rules.
Les messages affichés proviennent d'usenet.