david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

define __pure and __const

This commit is contained in:
Holger Lubitz 2007-08-02 00:27:54 +02:00
parent c9c97b3444
commit cd619a1eec
1 changed files with 12 additions and 0 deletions

View File

@ -279,6 +279,18 @@ extern void dbg_hex_dump_da ( unsigned long dispaddr,
/** Apply standard C calling conventions */
#define __cdecl __attribute__ (( cdecl , regparm(0) ))
/**
* Declare a function as pure - i.e. without side effects
*/
#define __pure __attribute__ (( pure ))
/**
* Declare a function as const - i.e. it does not access global memory
* (including dereferencing pointers passed to it) at all.
* Must also not call any non-const functions.
*/
#define __const __attribute__ (( const ))
/**
* Declare a function as used.
*