From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Perkins Subject: Re: 2.4.24 patch apply failed on vanilla kernel Date: Thu, 08 Jan 2004 17:13:41 -0500 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <3FFDD615.1090107@netspace.org> References: <3ACA40606221794F80A5670F0AF15F8401720CA3@PDSMSX403.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3ACA40606221794F80A5670F0AF15F8401720CA3-SRlDPOYGfgogGBtAFL8yw7fspsVTdybXVpNB7YpNyf8@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: "Yu, Luming" , acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Yu, Luming wrote: > 0001 ( 1<< 33 , It's overflowed, but it should be 0 ) > 0002 ( 1<< 34 , It's overflowed, but it should be 0 ) According to all the doc that talk about this, the result is "undefined" for bit > word_size. In fact: #cat > bar.c main() { (1ul <<33); } # gcc bar.c bar.c: In function `main': bar.c:2: warning: left shift count >= width of type -- "I know you believe you understand what you think I said, but I am not sure you realise that what you heard is not what I meant." -- Alan Greenspan Brian Perkins bperkins-ooduxAEi7gVg9hUCZPvPmw@public.gmane.org ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html