Re: pgsql: Fix broken cast on MSVC - Mailing list pgsql-committers

From Julien Rouhaud
Subject Re: pgsql: Fix broken cast on MSVC
Date
Msg-id 20220830022636.qrcbcecmhztbxrwa@jrouhaud
Whole thread Raw
In response to pgsql: Fix broken cast on MSVC  (John Naylor <john.naylor@postgresql.org>)
Responses Re: pgsql: Fix broken cast on MSVC
List pgsql-committers
Hi,

On Mon, Aug 29, 2022 at 10:45:43AM +0000, John Naylor wrote:
>
> +/*
> + * Exactly like vector32_is_highbit_set except for the input type, so it
> + * looks at each byte separately.
> + *
> + * [...]
> + */
> +#ifndef USE_NO_SIMD
> +static inline bool
> +vector32_is_highbit_set(const Vector32 v)
> [...]

Shouldn't the comment be "Exactly like vector8_is_highbit_set..."?

Also, is there any reason to not have a function prototype for this one?  As
far as I can see that's the only one that doesn't in simd.h.



pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Cleanup more code and comments related to Windows NT4 (XP days)
Next
From: David Rowley
Date:
Subject: pgsql: Use MAXALIGN() in calculations using sizeof(SlabBlock)