Commit 0117595a authored by Kenton Varda's avatar Kenton Varda

Fix some MSVC problems.

parent 5eeb125b
...@@ -223,7 +223,6 @@ public: ...@@ -223,7 +223,6 @@ public:
} }
FunctionParam(const FunctionParam& other) = default; FunctionParam(const FunctionParam& other) = default;
FunctionParam(FunctionParam& other) = default;
FunctionParam(FunctionParam&& other) = default; FunctionParam(FunctionParam&& other) = default;
// Magically, a plain copy works. // Magically, a plain copy works.
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
namespace kj { namespace kj {
namespace _ { namespace _ {
static constexpr uint lg(uint value) { static inline uint lg(uint value) {
// Compute floor(log2(value)). // Compute floor(log2(value)).
return sizeof(uint) * 8 - 1 - __builtin_clz(value); return sizeof(uint) * 8 - 1 - __builtin_clz(value);
} }
......
...@@ -887,7 +887,7 @@ KJ_ALWAYS_INLINE(void compilerBarrier()) { ...@@ -887,7 +887,7 @@ KJ_ALWAYS_INLINE(void compilerBarrier()) {
// writes that occur after this call. We need this in a couple places below to prevent C++ // writes that occur after this call. We need this in a couple places below to prevent C++
// strict aliasing rules from breaking things. // strict aliasing rules from breaking things.
#if _MSC_VER #if _MSC_VER
_ReadWriteBarrier() _ReadWriteBarrier();
#else #else
__asm__ __volatile__("": : :"memory"); __asm__ __volatile__("": : :"memory");
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment