Browse Source

Force inlining

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
2e0548e17e
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      src/crypto/cryptoLayer.h

+ 5
- 3
src/crypto/cryptoLayer.h View File

31
 
31
 
32
 #define sslAssert( ... ) assert ( __VA_ARGS__ )
32
 #define sslAssert( ... ) assert ( __VA_ARGS__ )
33
 
33
 
34
-static inline void * psMalloc ( psPool_t *pool __unused, size_t len ) {
34
+static inline __attribute__ (( always_inline )) void *
35
+psMalloc ( psPool_t *pool __unused, size_t len ) {
35
 	return malloc ( len );
36
 	return malloc ( len );
36
 }
37
 }
37
 
38
 
38
-static inline void * psRealloc ( void *ptr, size_t len ) {
39
+static inline __attribute__ (( always_inline )) void *
40
+psRealloc ( void *ptr, size_t len ) {
39
 	return realloc ( ptr, len );
41
 	return realloc ( ptr, len );
40
 }
42
 }
41
 
43
 
42
-static inline void psFree ( void *ptr ) {
44
+static inline __attribute__ (( always_inline )) void psFree ( void *ptr ) {
43
 	free ( ptr );
45
 	free ( ptr );
44
 }
46
 }
45
 
47
 

Loading…
Cancel
Save