Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S270330AbTGMSZU (ORCPT ); Sun, 13 Jul 2003 14:25:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S270331AbTGMSZU (ORCPT ); Sun, 13 Jul 2003 14:25:20 -0400 Received: from science.horizon.com ([192.35.100.1]:18251 "HELO science.horizon.com") by vger.kernel.org with SMTP id S270330AbTGMSZT (ORCPT ); Sun, 13 Jul 2003 14:25:19 -0400 Date: 13 Jul 2003 18:40:06 -0000 Message-ID: <20030713184006.9333.qmail@science.horizon.com> From: linux@horizon.com To: willy@debian.org Subject: Re: do_div vs sector_t Cc: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 439 Lines: 13 > if (likely(((n) >> 32) == 0)) { \ if (likely((n) <= 0xffffffff)) { will work with any unsigned type for n. GCC knows to only look at the high word to make this test. - 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/