Lines Matching full:field

30  *    The macro "Fld" encodes a bit field, given its size and its shift value
36 * field's mask is cumbersome and might break the assembler (255-character
40 * Size Size of the bit field, in number of bits.
41 * Shft Shift value of the bit field with respect to bit 0.
44 * Fld Encoded bit field.
56 * bit field.
59 * Field Encoded bit field (using the macro "Fld").
62 * FSize Size of the bit field, in number of bits.
63 * FShft Shift value of the bit field with respect to bit 0.
64 * FMsk Mask for the bit field.
65 * FAlnMsk Mask for the bit field, aligned on bit 0.
66 * F1stBit First bit of the bit field.
69 #define FSize(Field) ((Field) >> 16) argument
70 #define FShft(Field) ((Field) & 0x0000FFFF) argument
71 #define FMsk(Field) (((UData (1) << FSize (Field)) - 1) << FShft (Field)) argument
72 #define FAlnMsk(Field) ((UData (1) << FSize (Field)) - 1) argument
73 #define F1stBit(Field) (UData (1) << FShft (Field)) argument
80 * The macro "FInsrt" inserts a value into a bit field by shifting the
84 * Value Bit-field value.
85 * Field Encoded bit field (using the macro "Fld").
88 * FInsrt Bit-field value positioned appropriately.
91 #define FInsrt(Value, Field) \ argument
92 (UData (Value) << FShft (Field))
99 * The macro "FExtr" extracts the value of a bit field by masking and
103 * Data Data containing the bit-field to be extracted.
104 * Field Encoded bit field (using the macro "Fld").
107 * FExtr Bit-field value.
110 #define FExtr(Data, Field) \ argument
111 ((UData (Data) >> FShft (Field)) & FAlnMsk (Field))