Changeset d87c3f3 in mainline


Ignore:
Timestamp:
2006-02-27T23:52:05Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
97f1691
Parents:
30ab05f
Message:

Improve framebuffer speed by using optimised memcpy().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genarch/src/fb/fb.c

    r30ab05f rd87c3f3  
    3232#include <console/console.h>
    3333#include <panic.h>
     34#include <memstr.h>
    3435
    3536#include "helenos.xbm"
     
    158159        int i;
    159160
    160         for (i=0;i < (xres*yres*pixelbytes)-ROW_PIX; i++)
    161                 fbaddress[i] = fbaddress[i+ROW_PIX];
     161        memcpy((void *) fbaddress, (void *) &fbaddress[ROW_PIX], (xres*yres*pixelbytes)-ROW_PIX);
    162162
    163163        /* Clear last row */
Note: See TracChangeset for help on using the changeset viewer.