File: mem.c

package info (click to toggle)
svgalib 1%3A1.4.3-33
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,012 kB
  • sloc: ansic: 60,381; makefile: 1,138; asm: 630; sh: 86; perl: 54; pascal: 49
file content (23 lines) | stat: -rw-r--r-- 699 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <stdio.h>

 /*
  * Copies pixels from 4-byte-per-pixel screen to 3-byte-per-pixel screen,
  * 
  * discarding the last byte of each pixel.  Only uses 32-bit aligned word
  * accesses.  Instructions have been shuffled a bit for possible
  * avoidance of pipeline hazards.
  */
void __svgalib_memcpy4to3(void *dest, void *src, int n)
{
    printf("libgl: __svgalib_memcpy4to3 not done yet\n");
}

/* 
 * Copies pixels from 4-byte-per-pixel screen organized as BGR0 to
 * 0BGR 4-byte-per-pixel screen.
 * Used by copyscreen for ATI mach32 32-bit truecolor modes.
 */
void __svgalib_memcpy32shift8(void *dest, void *src, int n)
{
    printf("libgl: __svgalib_memcpy32shift8 not done yet\n");
}