qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH for-4.0 2/7] Remove support for compilers that c


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH for-4.0 2/7] Remove support for compilers that can not do 128-bit arithmetics
Date: Mon, 3 Dec 2018 08:11:19 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1

On 12/3/18 8:05 AM, Thomas Huth wrote:
> +++ b/include/qemu/host-utils.h
> @@ -28,7 +28,6 @@
>  
>  #include "qemu/bswap.h"
>  
> -#ifdef CONFIG_INT128
>  static inline void mulu64(uint64_t *plow, uint64_t *phigh,
>                            uint64_t a, uint64_t b)
>  {
> @@ -76,35 +75,6 @@ static inline int divs128(int64_t *plow, int64_t *phigh, 
> int64_t divisor)
>          return result != *plow;
>      }
>  }
> -#else
> -void muls64(uint64_t *phigh, uint64_t *plow, int64_t a, int64_t b);
> -void mulu64(uint64_t *phigh, uint64_t *plow, uint64_t a, uint64_t b);

No, because __int128 support requires a 64-bit host.
This will not compile for a 32-bit host.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]