Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
dgrs_asstruct.h
Package: linux-2.4.20.tar.gz [view]
Upload User: jlfgdled
Upload Date: 2013-04-10
Package Size: 33168k
Code Size: 1k
Category:
Linux-Unix program
Development Platform:
Unix_Linux
- /*
- * For declaring structures shared with assembly routines
- *
- * $Id: asstruct.h,v 1.1.1.1 1994/10/23 05:08:32 rick Exp $
- */
- #if ASSEMBLER
- # define MO(t,a) (a)
- # define VMO(t,a) (a)
- # define BEGIN_STRUCT(x) _Off=0
- # define S1A(t,x,n) _Off=(_Off+0)&~0; x=_Off; _Off=_Off+(1*n)
- # define S2A(t,x,n) _Off=(_Off+1)&~1; x=_Off; _Off=_Off+(2*n)
- # define S4A(t,x,n) _Off=(_Off+3)&~3; x=_Off; _Off=_Off+(4*n)
- # define WORD(x) _Off=(_Off+3)&~3; x=_Off; _Off=_Off+4
- # define WORDA(x,n) _Off=(_Off+3)&~3; x=_Off; _Off=_Off+(4*n)
- # define VWORD(x) _Off=(_Off+3)&~3; x=_Off; _Off=_Off+4
- # define S1(t,x) _Off=(_Off+0)&~0; x=_Off; _Off=_Off+1
- # define S2(t,x) _Off=(_Off+1)&~1; x=_Off; _Off=_Off+2
- # define S4(t,x) _Off=(_Off+3)&~3; x=_Off; _Off=_Off+4
- # define END_STRUCT(x) _Off=(_Off+3)&~3; x=_Off
- #else /* C */
- #define VMO(t,a) (*(volatile t *)(a))
- # define BEGIN_STRUCT(x) struct x {
- # define S1(t,x) t x ;
- # define S1A(t,x,n) t x[n] ;
- # define S2(t,x) t x ;
- # define S2A(t,x,n) t x[n] ;
- # define S4(t,x) t x ;
- # define S4A(t,x,n) t x[n] ;
- # define END_STRUCT(x) } ;
- #endif