[ovs-dev] [learning v2 10/19] meta-flow: New library for working with fields by id.

Ethan Jackson ethan at nicira.com
Mon Sep 12 13:19:30 PDT 2011


>> I didn't realize that 2**0 was a standard bit numbering scheme.  If
>> you prefer it I'm fine with leaving it, either way is good.
>
> ** is just the way that "power" is written in some programming
> languages (e.g. Fortran); 2 to the 0th power is 1.
>
> ^ is also a popular way to write "power", but I try to avoid using it
> in a C context since it has a different meaning in C.

Right I understood the syntax, I just didn't realize you were
referring to the value not the index, I thought you were talking about
the bit in the 1th position, not the bit that represents the value 1.

Ethan



More information about the dev mailing list