Fix Windows build. (#2012)

* Remove duplicate using uint64_t.

* Cast before shift.

[ROCm/composable_kernel commit: df32020f93]
This commit is contained in:
Seunghoon Lee
2025-04-02 04:22:10 +09:00
committed by GitHub
parent 70ad8571c2
commit 0ac4c37028
2 changed files with 1 additions and 3 deletions

View File

@@ -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;

View File

@@ -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);