From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751940AbdF1Pcr (ORCPT ); Wed, 28 Jun 2017 11:32:47 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:44892 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751592AbdF1Pch (ORCPT ); Wed, 28 Jun 2017 11:32:37 -0400 From: Matthew Wilcox To: linux-kernel@vger.kernel.org Cc: Andrew Morton , Martin Schwidefsky , Rasmus Villemoes , Matthew Wilcox Subject: [PATCH v2 0/4] Bitmap optimisations Date: Wed, 28 Jun 2017 08:32:17 -0700 Message-Id: <20170628153221.11322-1-willy@infradead.org> X-Mailer: git-send-email 2.9.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox These three bitmap patches use more efficient specialisations when the compiler can figure out that it's safe to do so. Thanks to Rasmus' eagle eyes, a nasty bug in v1 was avoided, and I've added a test case which would have caught it. Matthew Wilcox (4): test_bitmap: Add optimisation tests bitmap: Optimise bitmap_set and bitmap_clear of a single bit Turn bitmap_set and bitmap_clear into memset when possible bitmap: Use memcmp optimisation in more situations include/linux/bitmap.h | 33 +++++++++++++++++++++++++++------ lib/bitmap.c | 8 ++++---- lib/test_bitmap.c | 29 +++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 10 deletions(-) -- 2.11.0