This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2] [powerpc] fenv_libc.h: protect use of __builtin_cpu_supports()


* Paul A. Clarke:

>  #ifdef _ARCH_PWR9
>  # define fegetenv_status() fegetenv_status_ISA300()
> -#else
> +#elif defined __BUILTIN_CPU_SUPPORTS__
>  # define fegetenv_status()						\
>    (__glibc_likely (__builtin_cpu_supports ("arch_3_00"))		\
>     ? fegetenv_status_ISA300()						\
>     : fegetenv_register()						\
>    )
> +#else
> +# define fegetenv_status() fegetenv_register()

Missing space before second () on the last line (but it's consistent
with the others 8-/).

Otherwise, this looks fine to me.  Maybe drop the () from the commit
message, per GNU style guidelines.

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]