sprofile: fully reimplement sprof:bg + sprof:sp
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user