Add -O3 optimization to all C files

Arduino normally builds with -Os (optimize for size). For audio decode
we'd rather go fast, so add pragma inside files.
This commit is contained in:
Earle F. Philhower, III committed 2017-08-18 13:10:53 -07:00
1 parent d436a4ba7b
commit d0411c8b6e
12 files changed
+22

No files matched your search

+2
View File
@@ -34,6 +34,8 @@
# include "config.h"
//#endif
#pragma GCC optimize ("O3")
#include "private/bitmath.h"
/* An example of what FLAC__bitmath_silog2() computes:
+2
View File
@@ -44,6 +44,8 @@
#include "share/compat.h"
#include "share/endswap.h"
#pragma GCC optimize ("O3")
/* Things should be fastest when this matches the machine word size */
/* WATCHOUT: if you change this you must also change the following #defines down to COUNT_ZERO_MSBS2 below to match */
/* WATCHOUT: there are a few places where the code will not work unless brword is >= 32 bits wide */
+1
View File
@@ -57,6 +57,7 @@
#define dfprintf(file, format, ...)
#endif
#pragma GCC optimize ("O3")
#if defined FLAC__CPU_IA32
/* these are flags in EDX of CPUID AX=00000001 */
+2
View File
@@ -38,6 +38,8 @@
#include "private/crc.h"
#pragma GCC optimize ("O3")
/* CRC-8, poly = x^8 + x^2 + x^1 + x^0, init = 0 */
FLAC__byte const FLAC__crc8_table[256] PROGMEM = {
+2
View File
@@ -47,6 +47,8 @@
#endif
#define local_abs(x) ((unsigned)((x)<0? -(x) : (x)))
#pragma GCC optimize ("O3")
#ifdef FLAC__INTEGER_ONLY_LIBRARY
/* rbps stands for residual bits per sample
*
+2
View File
@@ -38,6 +38,8 @@
#include "share/compat.h"
#include "private/float.h"
#pragma GCC optimize ("O3")
#ifdef FLAC__INTEGER_ONLY_LIBRARY
const FLAC__fixedpoint FLAC__FP_ZERO = 0;
+2
View File
@@ -44,6 +44,8 @@
#include "private/format.h"
#include "private/macros.h"
#pragma GCC optimize ("O3")
/* PACKAGE_VERSION should come from configure */
FLAC_API const char *FLAC__VERSION_STRING = PACKAGE_VERSION;
+2
View File
@@ -46,6 +46,8 @@
//#include <stdio.h>
#endif
#pragma GCC optimize ("O3")
/* OPT: #undef'ing this may improve the speed on some architectures */
#define FLAC__LPC_UNROLLED_FILTER_LOOPS
+2
View File
@@ -9,6 +9,8 @@
#include "share/alloc.h"
#include "share/endswap.h"
#pragma GCC optimize ("O3")
/*
* This code implements the MD5 message-digest algorithm.
* The algorithm is due to Ron Rivest. This code was
+2
View File
@@ -42,6 +42,8 @@
#include "FLAC/assert.h"
#include "share/alloc.h"
#pragma GCC optimize ("O3")
void *FLAC__memory_alloc_aligned(size_t bytes, void **aligned_address)
{
void *x;
+1
View File
@@ -54,6 +54,7 @@
#include "private/memory.h"
#include "private/macros.h"
#pragma GCC optimize ("O3")
/* technically this should be in an "export.c" but this is convenient enough */
FLAC_API int FLAC_API_SUPPORTS_OGG_FLAC = FLAC__HAS_OGG;
+2
View File
@@ -40,6 +40,8 @@
#include "FLAC/format.h"
#include "private/window.h"
#pragma GCC optimize ("O3")
#ifndef FLAC__INTEGER_ONLY_LIBRARY