linux-mips
[Top] [All Lists]

Re: asm type names

To: Geert Uytterhoeven <geert@linux-m68k.org>
Subject: Re: asm type names
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Fri, 26 Apr 2002 14:05:01 -0700
Cc: Linux/MIPS Development <linux-mips@oss.sgi.com>
In-reply-to: <Pine.GSO.4.21.0204261718450.28137-100000@vervain.sonytel.be>; from geert@linux-m68k.org on Fri, Apr 26, 2002 at 05:21:12PM +0200
References: <Pine.GSO.4.21.0204261718450.28137-100000@vervain.sonytel.be>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5.1i
On Fri, Apr 26, 2002 at 05:21:12PM +0200, Geert Uytterhoeven wrote:

> include/asm-mips*/unaligned.h uses different terminology for the same sizes,
> sometimes even in the same file, making things a bit confusing:
>   - double vs. quad
>   - word vs. long
>   - halfword vs. word
> 
> Which set of terms is preferred, so we can increase consistency?

The MIPS terminology is:

  - 2 bytes - halfword
  - 4 bytes - word
  - 8 bytes - doubleword
  - 16 bytes - quadword

Unfortunately part of the industry have a different idea of what the size
of a word should be, so for example on i386 the use of the terms is:

 - 2 bytes word
 - 4 bytes doubleword
 - 8 bytes quadword

At times it's hard to avoid confusion; in general I therefore prefer to
avoid these terms or their abreviations but there are places like the
old assembler implementation of inw() where both are used next to each
other ...

  Ralf

<Prev in Thread] Current Thread [Next in Thread>
  • asm type names, Geert Uytterhoeven
    • Re: asm type names, Ralf Baechle <=