Use noinline.
This commit is contained in:
parent
9094756997
commit
da548fd03a
@ -332,7 +332,7 @@ namespace nv
|
||||
|
||||
|
||||
/// Resize the vector preserving existing elements.
|
||||
void resize(uint new_size)
|
||||
NV_NOINLINE void resize(uint new_size)
|
||||
{
|
||||
uint i;
|
||||
uint old_size = m_size;
|
||||
@ -372,7 +372,7 @@ namespace nv
|
||||
|
||||
/// Resize the vector preserving existing elements and initializing the
|
||||
/// new ones with the given value.
|
||||
void resize( uint new_size, const T &elem )
|
||||
NV_NOINLINE void resize( uint new_size, const T &elem )
|
||||
{
|
||||
uint i;
|
||||
uint old_size = m_size;
|
||||
@ -496,7 +496,7 @@ namespace nv
|
||||
private:
|
||||
|
||||
/// Change buffer size.
|
||||
void allocate( uint rsize )
|
||||
NV_NOINLINE void allocate( uint rsize )
|
||||
{
|
||||
m_buffer_size = rsize;
|
||||
|
||||
|
@ -36,6 +36,8 @@
|
||||
#define NV_CONST
|
||||
#endif
|
||||
|
||||
#define NV_NOINLINE __attribute__((noinline))
|
||||
|
||||
// Define __FUNC__ properly.
|
||||
#if __STDC_VERSION__ < 199901L
|
||||
# if __GNUC__ >= 2
|
||||
|
@ -36,6 +36,8 @@
|
||||
#define NV_CONST
|
||||
#endif
|
||||
|
||||
#define NV_NOINLINE __attribute__((noinline))
|
||||
|
||||
// Define __FUNC__ properly.
|
||||
#if __STDC_VERSION__ < 199901L
|
||||
# if __GNUC__ >= 2
|
||||
|
@ -30,6 +30,8 @@
|
||||
#define NV_CONST
|
||||
#endif
|
||||
|
||||
#define NV_NOINLINE __attribute__((noinline))
|
||||
|
||||
// Define __FUNC__ properly.
|
||||
#if __STDC_VERSION__ < 199901L
|
||||
# if __GNUC__ >= 2
|
||||
|
@ -42,6 +42,7 @@
|
||||
#define __FUNC__ __FUNCTION__
|
||||
#endif
|
||||
|
||||
#define NV_NOINLINE __declspec(noinline)
|
||||
|
||||
// Type definitions
|
||||
typedef unsigned char uint8;
|
||||
|
Loading…
Reference in New Issue
Block a user