sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
s_m_f.c
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
11
#include "
libspu2_internal.h
"
12
13
void
SpuFree(
unsigned
int
addr)
14
{
15
int
block_counter;
16
17
for
( block_counter = 0; block_counter < _spu_AllocBlockNum; block_counter += 1 )
18
{
19
if
( (_spu_memList[block_counter].addr_area & 0x40000000) != 0 )
20
{
21
break
;
22
}
23
if
( _spu_memList[block_counter].addr_area == addr )
24
{
25
_spu_memList[block_counter].addr_area = addr | 0x80000000;
26
break
;
27
}
28
}
29
_spu_gcSPU();
30
}
libspu2_internal.h
core
libspu2
src
s_m_f.c
Generated by
1.18.0