|
|
| version 1.1, 2004/03/23 15:29:34 | version 1.4, 2011/01/15 18:36:12 |
|---|---|
| Line 1 | Line 1 |
| /* $Id$ */ | |
| /* | /* |
| * Copyright (c) 2004 NONAKA Kimihiro | * Copyright (c) 2004 NONAKA Kimihiro |
| * All rights reserved. | * All rights reserved. |
| Line 12 | Line 10 |
| * 2. Redistributions in binary form must reproduce the above copyright | * 2. Redistributions in binary form must reproduce the above copyright |
| * notice, this list of conditions and the following disclaimer in the | * notice, this list of conditions and the following disclaimer in the |
| * documentation and/or other materials provided with the distribution. | * documentation and/or other materials provided with the distribution. |
| * 3. The name of the author may not be used to endorse or promote products | |
| * derived from this software without specific prior written permission. | |
| * | * |
| * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| Line 35 | Line 31 |
| static UINT32 \ | static UINT32 \ |
| inst##1(UINT32 dst, void *arg) \ | inst##1(UINT32 dst, void *arg) \ |
| { \ | { \ |
| (void)arg; \ | |
| BYTE_##inst(dst); \ | BYTE_##inst(dst); \ |
| return dst; \ | return dst; \ |
| } \ | } \ |
| static UINT32 \ | static UINT32 \ |
| inst##2(UINT32 dst, void *arg) \ | inst##2(UINT32 dst, void *arg) \ |
| { \ | { \ |
| (void)arg; \ | |
| WORD_##inst(dst); \ | WORD_##inst(dst); \ |
| return dst; \ | return dst; \ |
| } \ | } \ |
| static UINT32 \ | static UINT32 \ |
| inst##4(UINT32 dst, void *arg) \ | inst##4(UINT32 dst, void *arg) \ |
| { \ | { \ |
| (void)arg; \ | |
| DWORD_##inst(dst); \ | DWORD_##inst(dst); \ |
| return dst; \ | return dst; \ |
| } \ | } \ |