mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
KenBuild: Fix mul3 and sqr pragmas.
git-svn-id: https://svn.eduke32.com/eduke32@5735 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c9897c55e0
commit
a8287f676f
2 changed files with 3 additions and 1 deletions
|
@ -136,6 +136,8 @@ FORCE_INLINE void swapptr(void *a, void *b)
|
||||||
*(intptr_t*) b = t;
|
*(intptr_t*) b = t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FORCE_INLINE int32_t sqr(int32_t a) { return a * a; }
|
||||||
|
|
||||||
#if defined(__GNUC__) && defined(GEKKO)
|
#if defined(__GNUC__) && defined(GEKKO)
|
||||||
|
|
||||||
// GCC Inline Assembler version (PowerPC)
|
// GCC Inline Assembler version (PowerPC)
|
||||||
|
|
|
@ -371,7 +371,7 @@ void ExtCheckKeys(void)
|
||||||
|
|
||||||
i = frameval[framecnt&(AVERAGEFRAMES-1)];
|
i = frameval[framecnt&(AVERAGEFRAMES-1)];
|
||||||
j = frameval[framecnt&(AVERAGEFRAMES-1)] = getticks(); framecnt++;
|
j = frameval[framecnt&(AVERAGEFRAMES-1)] = getticks(); framecnt++;
|
||||||
if (i != j) averagefps = ((mul3(averagefps)+((AVERAGEFRAMES*1000)/(j-i)))>>2);
|
if (i != j) averagefps = (averagefps*3 + (AVERAGEFRAMES*1000)/(j-i))>>2;
|
||||||
Bsprintf((char *)tempbuf,"%d",averagefps);
|
Bsprintf((char *)tempbuf,"%d",averagefps);
|
||||||
printext256(0L,0L,31,-1,(char *)tempbuf,1);
|
printext256(0L,0L,31,-1,(char *)tempbuf,1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue