]> granicus.if.org Git - clang/commitdiff
FullProduct should be _FullProduct
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 2 Dec 2014 23:44:40 +0000 (23:44 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 2 Dec 2014 23:44:40 +0000 (23:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223179 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/Intrin.h

index a13715dd7d6cb5ecf836ea44720328ea6f6fc465..8cd4a0dbf0107092a5e91407028c23742edd2645 100644 (file)
@@ -426,8 +426,8 @@ _umul128(unsigned __int64 _Multiplier, unsigned __int64 _Multiplicand,
          unsigned __int64 *_HighProduct) {
   unsigned __int128 _FullProduct =
       (unsigned __int128)_Multiplier * (unsigned __int128)_Multiplicand;
-  *_HighProduct = FullProduct >> 64;
-  return FullProduct;
+  *_HighProduct = _FullProduct >> 64;
+  return _FullProduct;
 }
 void __cdecl _xrstor64(void const *, unsigned __int64);
 void __cdecl _xsave64(void *, unsigned __int64);