Skip to content

Commit

Permalink
speedup: found the function that doesn't like -Ofast functions inlines
Browse files Browse the repository at this point in the history
  • Loading branch information
GliGli committed Oct 19, 2012
1 parent fdce2c0 commit 673c5f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -29,8 +29,8 @@ INCLUDES := files source

MCHK = -Wl,-wrap,malloc -Wl,-wrap,memalign -Wl,-wrap,realloc -Wl,-wrap,calloc -Wl,-wrap,free -DMCHK

OPTIFLAGS = -g -Ofast -fno-inline-functions -fno-tree-vectorize -fno-tree-slp-vectorize -ftree-vectorizer-verbose=1 -mcpu=cell -mtune=cell -flto=4 -fuse-linker-plugin
#OPTIFLAGS = -g -Ofast -fno-inline-functions -fno-tree-vectorize -fno-tree-slp-vectorize -ftree-vectorizer-verbose=1 -mcpu=cell -mtune=cell
OPTIFLAGS = -g -Ofast -fno-tree-vectorize -fno-tree-slp-vectorize -ftree-vectorizer-verbose=1 -mcpu=cell -mtune=cell -flto=4 -fuse-linker-plugin
#OPTIFLAGS = -g -Ofast -fno-tree-vectorize -fno-tree-slp-vectorize -ftree-vectorizer-verbose=1 -mcpu=cell -mtune=cell

ASFLAGS = -Wa,$(INCLUDE) -Wa,-a32
CFLAGS = $(OPTIFLAGS) -Wall -Wno-format $(MACHDEP) $(INCLUDE) -DPPC_DYNAREC -D__BIG_ENDIAN__ -D_BIG_ENDIAN -DM64P_BIG_ENDIAN -DUSE_RECOMP_CACHE -DFASTMEM -DNO_ASM -DUSE_EXPANSION # -D_DEBUG -DDEBUG_
Expand Down
2 changes: 1 addition & 1 deletion source/Rice_GX_Xenos/math.cpp
Expand Up @@ -282,7 +282,7 @@ XMATRIX* MatrixTranspose(
return pOut;
}

XVECTOR4 Vec3Transform(XVECTOR4 *pOut, const XVECTOR3 *pV, const XMATRIX *pM)
XVECTOR4 __attribute__((noinline)) Vec3Transform(XVECTOR4 *pOut, const XVECTOR3 *pV, const XMATRIX *pM)
{
pOut->x = pV->x*pM->_11 + pV->y*pM->_21 + pV->z*pM->_31 + pM->_41;
pOut->y = pV->x*pM->_12 + pV->y*pM->_22 + pV->z*pM->_32 + pM->_42;
Expand Down

0 comments on commit 673c5f5

Please sign in to comment.