From: Michael Brown Date: Wed, 31 Jan 2007 03:50:31 +0000 (+0000) Subject: Force inlining X-Git-Tag: v0.9.3~481 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e0548e17e814b37491aed9ac5c315dc1955e1d0;p=thirdparty%2Fipxe.git Force inlining --- diff --git a/src/crypto/cryptoLayer.h b/src/crypto/cryptoLayer.h index 128af07fd..538b84f20 100644 --- a/src/crypto/cryptoLayer.h +++ b/src/crypto/cryptoLayer.h @@ -31,15 +31,17 @@ typedef void psPool_t; #define sslAssert( ... ) assert ( __VA_ARGS__ ) -static inline void * psMalloc ( psPool_t *pool __unused, size_t len ) { +static inline __attribute__ (( always_inline )) void * +psMalloc ( psPool_t *pool __unused, size_t len ) { return malloc ( len ); } -static inline void * psRealloc ( void *ptr, size_t len ) { +static inline __attribute__ (( always_inline )) void * +psRealloc ( void *ptr, size_t len ) { return realloc ( ptr, len ); } -static inline void psFree ( void *ptr ) { +static inline __attribute__ (( always_inline )) void psFree ( void *ptr ) { free ( ptr ); }