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