Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758019AbbKSIuE (ORCPT ); Thu, 19 Nov 2015 03:50:04 -0500 Received: from mail-pa0-f67.google.com ([209.85.220.67]:33275 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754723AbbKSIuA (ORCPT ); Thu, 19 Nov 2015 03:50:00 -0500 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Subject: Re: [PATCH v2 2/3] lib: Introduce 2 bit ops api: all_is_bit_{one,zero} From: yalin wang In-Reply-To: <1447915724-29709-3-git-send-email-hejianet@gmail.com> Date: Thu, 19 Nov 2015 16:49:51 +0800 Cc: linux-kernel , Linux-Arch , Andrew Morton , Rasmus Villemoes , Denys Vlasenko , Kyungmin Park , Michal Nazarewicz , Yury Norov , Tejun Heo , Martin Kepplinger , George Spelvin , Ingo Molnar , Arnd Bergmann Content-Transfer-Encoding: 7bit Message-Id: <265F6375-198E-4D74-8915-81E3995B7D4D@gmail.com> References: <1447915724-29709-1-git-send-email-hejianet@gmail.com> <1447915724-29709-3-git-send-email-hejianet@gmail.com> To: Jia He X-Mailer: Apple Mail (2.3094) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 443 Lines: 14 > On Nov 19, 2015, at 14:48, Jia He wrote: > > why not use memcmp() to compare with 0x0000000 or 0xffffffff ? memcmp() have better performance on some platforms . Thanks -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/