History

use 32bit for coverage (no generic code stripped) and 64bit for PSNR test

lieff committed 8 years ago

Commit e5434751 parent 16778613 files · +3 −2Browse files

Unified · Split

3 files
  1. README.md +1 −0
  2. minimp3.h +1 −1
  3. scripts/build.sh +1 −1
README.md+1−0
@@ -68,6 +68,7 @@ First, we need to initialize the decoder structure: · 67 unmodified lines
68 68
69```69```
70//#define MINIMP3_ONLY_MP370//#define MINIMP3_ONLY_MP3
71//#define MINIMP3_ONLY_SIMD
71#define MINIMP3_IMPLEMENTATION72#define MINIMP3_IMPLEMENTATION
72#include "minimp3.h"73#include "minimp3.h"
73...74...
minimp3.h+1−1
@@ -80,7 +80,7 @@ int mp3dec_decode_frame(mp3dec_t *dec, const unsigned char *mp3, int mp3_bytes, · 79 unmodified lines
80#define MINIMP3_MIN(a, b) ((a) > (b) ? (b) : (a))80#define MINIMP3_MIN(a, b) ((a) > (b) ? (b) : (a))
81#define MINIMP3_MAX(a, b) ((a) < (b) ? (b) : (a))81#define MINIMP3_MAX(a, b) ((a) < (b) ? (b) : (a))
82 82
83#if defined(_M_X64) || defined(_M_ARM64) || (defined(__x86_64__) && defined(__SSE2__)) || defined(__aarch64__)83#if !defined(MINIMP3_ONLY_SIMD) && (defined(_M_X64) || defined(_M_ARM64) || (defined(__x86_64__) && defined(__SSE2__)) || defined(__aarch64__))
84// x64 always have SSE2, arm64 always have neon, no need for generic code84// x64 always have SSE2, arm64 always have neon, no need for generic code
85#define MINIMP3_ONLY_SIMD85#define MINIMP3_ONLY_SIMD
86#endif86#endif
scripts/build.sh+1−1
@@ -6,7 +6,7 @@ pushd $CUR_DIR/.. · 5 unmodified lines
6 6
7set -e7set -e
8 8
9gcc -coverage -O0 -DMINIMP3_TEST -DMINIMP3_NO_WAV -o minimp3 minimp3_test.c -lm9gcc -coverage -O0 -m32 -msse2 -DMINIMP3_TEST -DMINIMP3_NO_WAV -o minimp3 minimp3_test.c -lm
10scripts/test.sh10scripts/test.sh
11gcov minimp3_test.c11gcov minimp3_test.c
12 12

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t