summaryrefslogtreecommitdiff
path: root/src/SSystem/SStandard/s_basic.cpp
blob: 21ce5fe1c62514e73ef6e4da0cc00989417314d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "SSystem/SStandard/s_basic.h"

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++;
    }
}

void sBs_ClearArea(void* pPtr, u32 pNumBytes) {
    sBs_FillArea_s(pPtr, pNumBytes, 0);
}