/* swap bytes in a long, independent of word size */ #define swab_long _swab_long(BITS_PER_LONG) #define _swab_long(x) __swab_long(x) #define __swab_long(x) swab##x
/* move the address pointer by the number of words */ staticinlinevoid fb_address_move_long(struct fb_address *adr, int offset)
{
adr->address += offset * (BITS_PER_LONG / BITS_PER_BYTE);
}
/* move the address pointer forward with the number of bits */ staticinlinevoid fb_address_forward(struct fb_address *adr, unsignedint offset)
{ unsignedint bits = (unsignedint)adr->bits + offset;
/* move the address pointer backwards with the number of bits */ staticinlinevoid fb_address_backward(struct fb_address *adr, unsignedint offset)
{ int bits = adr->bits - (int)offset;
/* move pixels right on screen when framebuffer is in native order */ staticinlineunsignedlong fb_right(unsignedlong value, int index)
{ #ifdef __LITTLE_ENDIAN return value << index; #else return value >> index; #endif
}
/* move pixels left on screen when framebuffer is in native order */ staticinlineunsignedlong fb_left(unsignedlong value, int index)
{ #ifdef __LITTLE_ENDIAN return value >> index; #else return value << index; #endif
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.10Bemerkung:
(vorverarbeitet am 2026-10-11)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.