]> git.proxmox.com Git - mirror_qemu.git/blobdiff - util/host-utils.c
host-utils: Use __int128_t for mul[us]64
[mirror_qemu.git] / util / host-utils.c
index 5e3915abba46911a1f221540749ecb2e57c834be..2d06a2cb7830f60bff3aa1f4c237d9338bd11ed1 100644 (file)
@@ -30,7 +30,7 @@
 //#define DEBUG_MULDIV
 
 /* Long integer helpers */
-#if !defined(__x86_64__)
+#ifndef CONFIG_INT128
 static void add128 (uint64_t *plow, uint64_t *phigh, uint64_t a, uint64_t b)
 {
     *plow += a;
@@ -102,4 +102,4 @@ void muls64 (uint64_t *plow, uint64_t *phigh, int64_t a, int64_t b)
            a, b, *phigh, *plow);
 #endif
 }
-#endif /* !defined(__x86_64__) */
+#endif /* !CONFIG_INT128 */