summaryrefslogtreecommitdiff
path: root/libs/SSystem/SStandard/s_basic.cpp
blob: 94d72e9087404801deae9b37a6fe4afdf8f0dac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
// Generated By: dol2asm
// Translation Unit: s_basic
//

#include "SSystem/SStandard/s_basic.h"

/* 80271C8C-80271CAC 0020+00 s=1 e=0 z=0  None .text      sBs_FillArea_s__FPvUls */
void sBs_FillArea_s(void* pPtr, u32 pNumBytes, s16 pValue) {
    s16* castPtr = (s16*)pPtr;
    for (int i = 0; i < pNumBytes / 2; i++) {
        *castPtr = pValue;
        castPtr++;
    }
}

/* 80271CAC-80271CD0 0024+00 s=0 e=2 z=0  None .text      sBs_ClearArea__FPvUl */
void sBs_ClearArea(void* pPtr, u32 pNumBytes) {
    sBs_FillArea_s(pPtr, pNumBytes, 0);
}