Hi John, This is really a bit arbitrary but you are right with the assumption that we use an array behind the scence. Assuming that we write arrays from left to right we have: (for example int 7) ArrayIndex 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 Value 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 which seems to me to be intuitive but if many find this confusing or it forces people to manually invert the arrays, I think it would be worth discussing this issue and thinking about changing this.
++ Basil Am 5/26/09 11:50 PM schrieb "John R. Hogerhuis" unter <[email protected]>: > On Tue, May 26, 2009 at 2:12 PM, Basil Gasser > <[email protected]> wrote: > >> Modified Files: >> TwoBitField.java >> Log Message: >> Changed inconsisty between LSB and MSB. Now everything is MSB at position 0 >> and LSB at 1 >> > > Curious... I guess it's arbitrary, but most everywhere I've seen bit > positions numbered, MSBs are higher numbered and LSBs are lower > numbered. > > | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | > > For this byte, MSB at position 7 and LSB at position 0. > > But maybe you are modeling the bitfield as an array rather than an > integer? In which case it probably doesn't matter. > > -- John. > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > llrp-toolkit-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ llrp-toolkit-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/llrp-toolkit-devel
