[Lint] Revert incorrect clang-format changes
This commit is contained in:
parent
cb13f0bae6
commit
f540c188bf
|
@ -395,8 +395,9 @@ void Value::MulHi(Value* other, bool is_unsigned) {
|
|||
(uint32_t)other->constant.i32) >>
|
||||
32);
|
||||
} else {
|
||||
constant.i32 = (int32_t)(
|
||||
((int64_t)constant.i32 * (int64_t)other->constant.i32) >> 32);
|
||||
constant.i32 =
|
||||
(int32_t)(((int64_t)constant.i32 * (int64_t)other->constant.i32) >>
|
||||
32);
|
||||
}
|
||||
break;
|
||||
case INT64_TYPE:
|
||||
|
|
|
@ -810,6 +810,6 @@ void RegisterEmitCategoryControl() {
|
|||
XEREGISTERINSTR(mtmsrd);
|
||||
}
|
||||
|
||||
} // namespace cpu
|
||||
} // namespace ppc
|
||||
} // namespace cpu
|
||||
} // namespace xe
|
||||
|
|
|
@ -832,9 +832,10 @@ int XexModule::ReadPEHeaders() {
|
|||
// offsetof seems to be unable to find OptionalHeader.
|
||||
#define offsetof1(type, member) ((std::size_t) & (((type*)0)->member))
|
||||
#define IMAGE_FIRST_SECTION1(ntheader) \
|
||||
((PIMAGE_SECTION_HEADER)( \
|
||||
(uint8_t*)ntheader + offsetof1(IMAGE_NT_HEADERS, OptionalHeader) + \
|
||||
((PIMAGE_NT_HEADERS)(ntheader))->FileHeader.SizeOfOptionalHeader))
|
||||
((PIMAGE_SECTION_HEADER)((uint8_t*)ntheader + \
|
||||
offsetof1(IMAGE_NT_HEADERS, OptionalHeader) + \
|
||||
((PIMAGE_NT_HEADERS)(ntheader)) \
|
||||
->FileHeader.SizeOfOptionalHeader))
|
||||
|
||||
// Quick scan to determine bounds of sections.
|
||||
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);
|
||||
|
||||
std::memset(out_setting, 0, sizeof(X_USER_READ_PROFILE_SETTING));
|
||||
out_setting->from =
|
||||
!setting || !setting->is_set ? 0 : setting->is_title_specific() ? 2 : 1;
|
||||
out_setting->from = !setting || !setting->is_set ? 0
|
||||
: setting->is_title_specific() ? 2
|
||||
: 1;
|
||||
out_setting->user_index = static_cast<uint32_t>(user_index);
|
||||
out_setting->setting_id = setting_id;
|
||||
|
||||
|
|
Loading…
Reference in New Issue