Satisfy linter
Apply changes suggested by clang-format-12
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Xenia : Xbox 360 Emulator Research Project *
|
* Xenia : Xbox 360 Emulator Research Project *
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Copyright 2013 Ben Vanik. All rights reserved. *
|
* Copyright 2021 Ben Vanik. All rights reserved. *
|
||||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
*/
|
*/
|
||||||
@@ -426,8 +426,9 @@ void Value::MulHi(Value* other, bool is_unsigned) {
|
|||||||
(uint32_t)other->constant.i32) >>
|
(uint32_t)other->constant.i32) >>
|
||||||
32);
|
32);
|
||||||
} else {
|
} else {
|
||||||
constant.i32 = (int32_t)(
|
constant.i32 =
|
||||||
((int64_t)constant.i32 * (int64_t)other->constant.i32) >> 32);
|
(int32_t)(((int64_t)constant.i32 * (int64_t)other->constant.i32) >>
|
||||||
|
32);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case INT64_TYPE:
|
case INT64_TYPE:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Xenia : Xbox 360 Emulator Research Project *
|
* Xenia : Xbox 360 Emulator Research Project *
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Copyright 2013 Ben Vanik. All rights reserved. *
|
* Copyright 2021 Ben Vanik. All rights reserved. *
|
||||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
*/
|
*/
|
||||||
@@ -806,6 +806,6 @@ void RegisterEmitCategoryControl() {
|
|||||||
XEREGISTERINSTR(mtmsrd);
|
XEREGISTERINSTR(mtmsrd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace ppc
|
||||||
} // namespace cpu
|
} // namespace cpu
|
||||||
} // namespace xe
|
} // namespace xe
|
||||||
} // namespace xe
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Xenia : Xbox 360 Emulator Research Project *
|
* Xenia : Xbox 360 Emulator Research Project *
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Copyright 2020 Ben Vanik. All rights reserved. *
|
* Copyright 2021 Ben Vanik. All rights reserved. *
|
||||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
*/
|
*/
|
||||||
@@ -832,9 +832,10 @@ int XexModule::ReadPEHeaders() {
|
|||||||
// offsetof seems to be unable to find OptionalHeader.
|
// offsetof seems to be unable to find OptionalHeader.
|
||||||
#define offsetof1(type, member) ((std::size_t) & (((type*)0)->member))
|
#define offsetof1(type, member) ((std::size_t) & (((type*)0)->member))
|
||||||
#define IMAGE_FIRST_SECTION1(ntheader) \
|
#define IMAGE_FIRST_SECTION1(ntheader) \
|
||||||
((PIMAGE_SECTION_HEADER)( \
|
((PIMAGE_SECTION_HEADER)((uint8_t*)ntheader + \
|
||||||
(uint8_t*)ntheader + offsetof1(IMAGE_NT_HEADERS, OptionalHeader) + \
|
offsetof1(IMAGE_NT_HEADERS, OptionalHeader) + \
|
||||||
((PIMAGE_NT_HEADERS)(ntheader))->FileHeader.SizeOfOptionalHeader))
|
((PIMAGE_NT_HEADERS)(ntheader)) \
|
||||||
|
->FileHeader.SizeOfOptionalHeader))
|
||||||
|
|
||||||
// Quick scan to determine bounds of sections.
|
// Quick scan to determine bounds of sections.
|
||||||
size_t upper_address = 0;
|
size_t upper_address = 0;
|
||||||
|
|||||||
@@ -277,8 +277,9 @@ uint32_t xeXamUserReadProfileSettingsEx(uint32_t title_id, uint32_t user_index,
|
|||||||
auto setting = user_profile->GetSetting(setting_id);
|
auto setting = user_profile->GetSetting(setting_id);
|
||||||
|
|
||||||
std::memset(out_setting, 0, sizeof(X_USER_READ_PROFILE_SETTING));
|
std::memset(out_setting, 0, sizeof(X_USER_READ_PROFILE_SETTING));
|
||||||
out_setting->from =
|
out_setting->from = !setting || !setting->is_set ? 0
|
||||||
!setting || !setting->is_set ? 0 : setting->is_title_specific() ? 2 : 1;
|
: setting->is_title_specific() ? 2
|
||||||
|
: 1;
|
||||||
out_setting->user_index = static_cast<uint32_t>(user_index);
|
out_setting->user_index = static_cast<uint32_t>(user_index);
|
||||||
out_setting->setting_id = setting_id;
|
out_setting->setting_id = setting_id;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user