lkml.org 
[lkml]   [2018]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/6] lib/lzo: enable 64-bit CTZ on Arm
>  #define LZO_USE_CTZ32	1
> #elif defined(__i386__) || defined(__powerpc__)
> #define LZO_USE_CTZ32 1
> -#elif defined(__arm__) && (__LINUX_ARM_ARCH__ >= 5)
> +#elif defined(__arm__)
> +#if (__LINUX_ARM_ARCH__ >= 5)
> #define LZO_USE_CTZ32 1
> #endif
> +#if (__LINUX_ARM_ARCH__ >= 6) && (CONFIG_THUMB2_KERNEL)
> +#define LZO_USE_CTZ64 1

All of this really needs to be driven by Kconfig symbols that
the architecture selects instead of magic arch ifdefs here.

\
 
 \ /
  Last update: 2018-11-21 18:31    [W:0.072 / U:1.764 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site