Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261955AbVDCXUx (ORCPT ); Sun, 3 Apr 2005 19:20:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261957AbVDCXUx (ORCPT ); Sun, 3 Apr 2005 19:20:53 -0400 Received: from mail.hosted.servetheworld.net ([62.70.14.38]:51901 "HELO mail.hosted.servetheworld.net") by vger.kernel.org with SMTP id S261955AbVDCXUr (ORCPT ); Sun, 3 Apr 2005 19:20:47 -0400 Message-ID: <42507A4C.8030209@osvik.no> Date: Mon, 04 Apr 2005 01:20:44 +0200 From: Dag Arne Osvik User-Agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Grzegorz Kulewski CC: Andreas Schwab , Stephen Rothwell , linux-kernel@vger.kernel.org Subject: Re: Use of C99 int types References: <424FD9BB.7040100@osvik.no> <20050403220508.712e14ec.sfr@canb.auug.org.au> <424FE1D3.9010805@osvik.no> <425072A4.7080804@osvik.no> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 771 Lines: 34 Grzegorz Kulewski wrote: > On Mon, 4 Apr 2005, Dag Arne Osvik wrote: > >> (...) And, at least in theory, long may even provide less than 32 bits. > > > Are you sure? > > My copy of famous C book by B. W. Kernighan and D. Ritchie says that > > sizeof(short) <= sizeof(int) <= sizeof(long) > > and > > sizeof(short) >= 16, > sizeof(int) >= 16, > sizeof(long) >= 32. > > The book is about ANSI C not C99 but I think this is still valid. > > Am I wrong? No, I just looked it up (section 2.2), and you're right. -- Dag Arne - 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/