summaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
authorMichael Brown2007-01-31 04:50:31 +0100
committerMichael Brown2007-01-31 04:50:31 +0100
commit2e0548e17e814b37491aed9ac5c315dc1955e1d0 (patch)
treee4bc6a940edc5e67d7e6485f897fea459df56102 /src/crypto
parentPlaceholder for TLS insertion (diff)
downloadipxe-2e0548e17e814b37491aed9ac5c315dc1955e1d0.tar.gz
ipxe-2e0548e17e814b37491aed9ac5c315dc1955e1d0.tar.xz
ipxe-2e0548e17e814b37491aed9ac5c315dc1955e1d0.zip
Force inlining
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/cryptoLayer.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/crypto/cryptoLayer.h b/src/crypto/cryptoLayer.h
index 128af07f..538b84f2 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 );
}