mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-14 10:09:41 +00:00
Fix Windows build. (#2012)
* Remove duplicate using uint64_t.
* Cast before shift.
[ROCm/composable_kernel commit: df32020f93]
This commit is contained in:
@@ -2000,8 +2000,6 @@ struct vector_type<T, 64, typename ck::enable_if_t<!is_native_type<T>()>>
|
||||
}
|
||||
};
|
||||
|
||||
using int64_t = long;
|
||||
|
||||
// fp32
|
||||
using float2_t = typename vector_type<float, 2>::type;
|
||||
using float4_t = typename vector_type<float, 4>::type;
|
||||
|
||||
@@ -38,7 +38,7 @@ struct magic_division32_bit_range
|
||||
shift_u32++;
|
||||
};
|
||||
|
||||
uint64_t tmp_u64 = ((1UL << shift_u32) - divisor) << 32;
|
||||
uint64_t tmp_u64 = static_cast<uint64_t>((1UL << shift_u32) - divisor) << 32;
|
||||
uint32_t multiplier_u32 = tmp_u64 / divisor + 1;
|
||||
|
||||
return make_tuple(multiplier_u32, shift_u32);
|
||||
|
||||
Reference in New Issue
Block a user