mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 19:20:46 +00:00
Fix LTO=1 RELEASE=1 Lunatic build.
git-svn-id: https://svn.eduke32.com/eduke32@3341 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
bf566e10a8
commit
7d1879b777
3 changed files with 12 additions and 8 deletions
|
@ -20,6 +20,12 @@
|
||||||
# define ATTRIBUTE(attrlist)
|
# define ATTRIBUTE(attrlist)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined __clang__ && !defined USING_LTO
|
||||||
|
# define ATTRIBUTE_OPTIMIZE(str) ATTRIBUTE((optimize(str)))
|
||||||
|
#else
|
||||||
|
# define ATTRIBUTE_OPTIMIZE(str)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef min
|
#ifndef min
|
||||||
#define min(x,y) ((x) < (y) ? (x) : (y))
|
#define min(x,y) ((x) < (y) ? (x) : (y))
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -208,12 +208,10 @@ const char *animvpx_nextpic_errmsg[] = {
|
||||||
// retrieves one picture-frame from the stream
|
// retrieves one picture-frame from the stream
|
||||||
// pic format: lines of [Y U V 0] pixels
|
// pic format: lines of [Y U V 0] pixels
|
||||||
// *picptr==NULL means EOF has been reached
|
// *picptr==NULL means EOF has been reached
|
||||||
#if !defined __clang__ && !defined USING_LTO
|
#ifdef DEBUGGINGAIDS
|
||||||
# ifdef DEBUGGINGAIDS
|
ATTRIBUTE_OPTIMIZE("O1")
|
||||||
ATTRIBUTE((optimize("O1")))
|
#else
|
||||||
# else
|
ATTRIBUTE_OPTIMIZE("O3")
|
||||||
ATTRIBUTE((optimize("O3")))
|
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
int32_t animvpx_nextpic(animvpx_codec_ctx *codec, uint8_t **picptr)
|
int32_t animvpx_nextpic(animvpx_codec_ctx *codec, uint8_t **picptr)
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,7 +44,7 @@ typedef struct {
|
||||||
|
|
||||||
// See: Good Practice in (Pseudo) Random Number Generation for
|
// See: Good Practice in (Pseudo) Random Number Generation for
|
||||||
// Bioinformatics Applications, by David Jones
|
// Bioinformatics Applications, by David Jones
|
||||||
ATTRIBUTE((optimize("O2")))
|
ATTRIBUTE_OPTIMIZE("O2")
|
||||||
uint32_t rand_jkiss_u32(rng_jkiss_t *s)
|
uint32_t rand_jkiss_u32(rng_jkiss_t *s)
|
||||||
{
|
{
|
||||||
uint64_t t;
|
uint64_t t;
|
||||||
|
@ -54,7 +54,7 @@ uint32_t rand_jkiss_u32(rng_jkiss_t *s)
|
||||||
return s->x + s->y + s->z;
|
return s->x + s->y + s->z;
|
||||||
}
|
}
|
||||||
|
|
||||||
ATTRIBUTE((optimize("O2")))
|
ATTRIBUTE_OPTIMIZE("O2")
|
||||||
double rand_jkiss_dbl(rng_jkiss_t *s)
|
double rand_jkiss_dbl(rng_jkiss_t *s)
|
||||||
{
|
{
|
||||||
double x;
|
double x;
|
||||||
|
|
Loading…
Reference in a new issue