4 uint32_t checksum_rect_generic32(int x, int y, int width, int height) {
6 /* Generic checksum_rect function for video modes with 32-bit pixels
7 * (i.e. fb->curmode.bytestride = 4).
10 int scanline = fb->curmode.xres * 4;
16 for (i = 0; i < height; i++) {
17 lineaddr = (uint32_t *)(fb->fbaddr + (i + y) * scanline);
19 for (j = 0; j < width; j++) {
20 sum += lineaddr[j + x];