git.s-ol.nu forks/DiligentCore / 5f40fc0
Windows platform: fixed ARM compilation issue assiduous 2 years ago
1 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
107107
108108 inline static Diligent::Uint32 CountOneBits(Diligent::Uint32 Val)
109109 {
110 #if _M_ARM
111 auto Bits = _CountOneBits(Val);
112 #else
110113 auto Bits = __popcnt(Val);
114 #endif
111115 VERIFY_EXPR(Bits == BasicPlatformMisc::CountOneBits(Val));
112116 return Bits;
113117 }
114118
115119 inline static Diligent::Uint32 CountOneBits(Diligent::Uint64 Val)
116120 {
117 #if _WIN64
121 #if _M_ARM
122 auto Bits = _CountOneBits64(Val);
123 #elif _WIN64
118124 auto Bits = __popcnt64(Val);
119125 #else
120126 auto Bits =