mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00: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)
|
||||
#endif
|
||||
|
||||
#if !defined __clang__ && !defined USING_LTO
|
||||
# define ATTRIBUTE_OPTIMIZE(str) ATTRIBUTE((optimize(str)))
|
||||
#else
|
||||
# define ATTRIBUTE_OPTIMIZE(str)
|
||||
#endif
|
||||
|
||||
#ifndef min
|
||||
#define min(x,y) ((x) < (y) ? (x) : (y))
|
||||
#endif
|
||||
|
|
|
@ -208,12 +208,10 @@ const char *animvpx_nextpic_errmsg[] = {
|
|||
// retrieves one picture-frame from the stream
|
||||
// pic format: lines of [Y U V 0] pixels
|
||||
// *picptr==NULL means EOF has been reached
|
||||
#if !defined __clang__ && !defined USING_LTO
|
||||
# ifdef DEBUGGINGAIDS
|
||||
ATTRIBUTE((optimize("O1")))
|
||||
# else
|
||||
ATTRIBUTE((optimize("O3")))
|
||||
# endif
|
||||
#ifdef DEBUGGINGAIDS
|
||||
ATTRIBUTE_OPTIMIZE("O1")
|
||||
#else
|
||||
ATTRIBUTE_OPTIMIZE("O3")
|
||||
#endif
|
||||
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
|
||||
// Bioinformatics Applications, by David Jones
|
||||
ATTRIBUTE((optimize("O2")))
|
||||
ATTRIBUTE_OPTIMIZE("O2")
|
||||
uint32_t rand_jkiss_u32(rng_jkiss_t *s)
|
||||
{
|
||||
uint64_t t;
|
||||
|
@ -54,7 +54,7 @@ uint32_t rand_jkiss_u32(rng_jkiss_t *s)
|
|||
return s->x + s->y + s->z;
|
||||
}
|
||||
|
||||
ATTRIBUTE((optimize("O2")))
|
||||
ATTRIBUTE_OPTIMIZE("O2")
|
||||
double rand_jkiss_dbl(rng_jkiss_t *s)
|
||||
{
|
||||
double x;
|
||||
|
|
Loading…
Reference in a new issue