[Top] [All Lists]

Re: asm type names

To: Geert Uytterhoeven <>
Subject: Re: asm type names
From: Ralf Baechle <>
Date: Fri, 26 Apr 2002 14:05:01 -0700
Cc: Linux/MIPS Development <>
In-reply-to: <>; from on Fri, Apr 26, 2002 at 05:21:12PM +0200
References: <>
User-agent: Mutt/
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 ...


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