mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-03 08:08:39 -04:00
sprofile: fully reimplement sprof:bg + sprof:sp
This commit is contained in:
parent
ae54ec5981
commit
89541c8042
18 changed files with 872 additions and 59 deletions
|
@ -24,13 +24,19 @@ namespace ams::sprofile {
|
|||
R_DEFINE_ERROR_RESULT(InvalidArgument, 100);
|
||||
R_DEFINE_ERROR_RESULT(InvalidState, 101);
|
||||
|
||||
R_DEFINE_ERROR_RESULT(NotPermitted, 303);
|
||||
|
||||
R_DEFINE_ERROR_RESULT(AllocationFailed, 401);
|
||||
|
||||
R_DEFINE_ERROR_RESULT(KeyNotFound, 600);
|
||||
R_DEFINE_ERROR_RESULT(InvalidDataType, 601);
|
||||
|
||||
R_DEFINE_ERROR_RESULT(MaxListeners, 620);
|
||||
R_DEFINE_ERROR_RESULT(AlreadyListening, 621);
|
||||
R_DEFINE_ERROR_RESULT(NotListening, 622);
|
||||
R_DEFINE_ERROR_RESULT(MaxObservers, 623);
|
||||
|
||||
R_DEFINE_ERROR_RESULT(InvalidMetadataVersion, 3210);
|
||||
R_DEFINE_ERROR_RESULT(InvalidDataVersion, 3230);
|
||||
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ namespace ams::util {
|
|||
constexpr int PopCount(const Storage arr[]) {
|
||||
int count = 0;
|
||||
for (size_t i = 0; i < Count; i++) {
|
||||
count += PopCount(arr[i]);
|
||||
count += ::ams::util::PopCount(arr[i]);
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue