valloc.c.svn-base
来自「psp播放器PPA源码,在MSYS/CYGWIN环境下编译(GNU-C)」· SVN-BASE 代码 · 共 35 行
SVN-BASE
35 行
/* * Helper for use with the PSP Software Development Kit - http://www.pspdev.org * ----------------------------------------------------------------------- * Licensed as 'free to use and modify as long as credited appropriately' * * valloc.c - Standard C VRAM allocation routines. * * Copyright (c) 2006 Alexander Berl 'Raphael' <raphael@fx-world.org> * http://wordpress.fx-world.org * *///#include <psptypes.h>//#include <pspkernel.h>#ifdef DEBUG#include <pspdebug.h>#endif#include <pspgu.h>#include <malloc.h>#include "valloc.h"
#ifdef DEBUG#define printf pspDebugScreenPrintf#endif/* Use this to set the default valloc() alignment. */#define DEFAULT_VALIGNMENT 16#ifndef ALIGN#define ALIGN(x, align) (((x)+((align)-1))&~((align)-1))#endif
#define VRAM_SIZE 0x00200000
#define VRAM_BASE 0x04000000#define UNCACHED_POINTER 0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?