Remove traiing whitespace (mostly .c and .h files).

Patch-from: lvqcl <lvqcl.mail@gmail.com>
This commit is contained in:
Erik de Castro Lopo 2014-12-05 05:52:25 +11:00
parent c97e057ee5
commit eb753ae5b4
14 changed files with 31 additions and 31 deletions

View File

@ -104,8 +104,8 @@ div.box_body
#newsbox h3 #newsbox h3
{ {
margin: 5px 0 0 0; margin: 5px 0 0 0;
font-size: 0.9em; font-size: 0.9em;
} }
#newsbox p #newsbox p

View File

@ -3,7 +3,7 @@ ways.
The "c" directory has programs that are all in C and use libFLAC. The "c" directory has programs that are all in C and use libFLAC.
The "cpp" directory has analogous programs that are all in C++ and use libFLAC++. The "cpp" directory has analogous programs that are all in C++ and use libFLAC++.
The programs are: The programs are:
c/decode/file/ - example_c_decode_file - Simple FLAC file decoder using libFLAC c/decode/file/ - example_c_decode_file - Simple FLAC file decoder using libFLAC

View File

@ -764,7 +764,7 @@ typedef enum {
FLAC__METADATA_CHAIN_STATUS_READ_WRITE_MISMATCH, FLAC__METADATA_CHAIN_STATUS_READ_WRITE_MISMATCH,
/**< FLAC__metadata_chain_write() was called on a chain read by /**< FLAC__metadata_chain_write() was called on a chain read by
* FLAC__metadata_chain_read_with_callbacks()/FLAC__metadata_chain_read_ogg_with_callbacks(), * FLAC__metadata_chain_read_with_callbacks()/FLAC__metadata_chain_read_ogg_with_callbacks(),
* or * or
* FLAC__metadata_chain_write_with_callbacks()/FLAC__metadata_chain_write_with_callbacks_and_tempfile() * FLAC__metadata_chain_write_with_callbacks()/FLAC__metadata_chain_write_with_callbacks_and_tempfile()
* was called on a chain read by * was called on a chain read by
* FLAC__metadata_chain_read()/FLAC__metadata_chain_read_ogg(). * FLAC__metadata_chain_read()/FLAC__metadata_chain_read_ogg().

View File

@ -273,7 +273,7 @@ void DecoderSession_destroy(DecoderSession *d, FLAC__bool error_occurred)
LARGE_INTEGER size; LARGE_INTEGER size;
size.QuadPart = written_size; size.QuadPart = written_size;
if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* correct the file size */ if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* correct the file size */
SetEndOfFile(fh); SetEndOfFile(fh);
} }
CloseHandle(fh); CloseHandle(fh);
} }
@ -400,7 +400,7 @@ FLAC__bool DecoderSession_process(DecoderSession *d)
} }
if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* tell filesystem the expected filesize to eliminate fragmentation */ if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* tell filesystem the expected filesize to eliminate fragmentation */
SetEndOfFile(fh); SetEndOfFile(fh);
} }
CloseHandle(fh); CloseHandle(fh);
} }

View File

@ -108,7 +108,7 @@ unsigned FLAC__fixed_compute_best_predictor_intrin_sse2(const FLAC__int32 data[]
total_err1 = _mm_add_epi32(total_err1, err1); // te1 te2 te3 te4 total_err1 = _mm_add_epi32(total_err1, err1); // te1 te2 te3 te4
} }
} }
total_error_0 = _mm_cvtsi128_si32(total_err0); total_error_0 = _mm_cvtsi128_si32(total_err0);
total_err2 = total_err1; // te1 te2 te3 te4 total_err2 = total_err1; // te1 te2 te3 te4
total_err1 = _mm_srli_si128(total_err1, 8); // 0 0 te1 te2 total_err1 = _mm_srli_si128(total_err1, 8); // 0 0 te1 te2
@ -160,7 +160,7 @@ unsigned FLAC__fixed_compute_best_predictor_wide_intrin_sse2(const FLAC__int32 d
{ {
FLAC__int32 itmp; FLAC__int32 itmp;
__m128i last_error, zero = _mm_setzero_si128(); __m128i last_error, zero = _mm_setzero_si128();
last_error = _mm_cvtsi32_si128(data[-1]); // 0 0 0 le0 last_error = _mm_cvtsi32_si128(data[-1]); // 0 0 0 le0
itmp = data[-2]; itmp = data[-2];
last_error = _mm_shuffle_epi32(last_error, _MM_SHUFFLE(2,1,0,0)); last_error = _mm_shuffle_epi32(last_error, _MM_SHUFFLE(2,1,0,0));
@ -208,7 +208,7 @@ unsigned FLAC__fixed_compute_best_predictor_wide_intrin_sse2(const FLAC__int32 d
total_err1 = _mm_add_epi64(total_err1, err1); // te1 te2 total_err1 = _mm_add_epi64(total_err1, err1); // te1 te2
} }
} }
m128i_to_i64(total_error_0, total_err0); m128i_to_i64(total_error_0, total_err0);
m128i_to_i64(total_error_4, total_err3); m128i_to_i64(total_error_4, total_err3);
m128i_to_i64(total_error_2, total_err1); m128i_to_i64(total_error_2, total_err1);

View File

@ -102,7 +102,7 @@ unsigned FLAC__fixed_compute_best_predictor_intrin_ssse3(const FLAC__int32 data[
total_err1 = _mm_add_epi32(total_err1, err1); // te1 te2 te3 te4 total_err1 = _mm_add_epi32(total_err1, err1); // te1 te2 te3 te4
} }
} }
total_error_0 = _mm_cvtsi128_si32(total_err0); total_error_0 = _mm_cvtsi128_si32(total_err0);
total_err2 = total_err1; // te1 te2 te3 te4 total_err2 = total_err1; // te1 te2 te3 te4
total_err1 = _mm_srli_si128(total_err1, 8); // 0 0 te1 te2 total_err1 = _mm_srli_si128(total_err1, 8); // 0 0 te1 te2
@ -154,7 +154,7 @@ unsigned FLAC__fixed_compute_best_predictor_wide_intrin_ssse3(const FLAC__int32
{ {
FLAC__int32 itmp; FLAC__int32 itmp;
__m128i last_error, zero = _mm_setzero_si128(); __m128i last_error, zero = _mm_setzero_si128();
last_error = _mm_cvtsi32_si128(data[-1]); // 0 0 0 le0 last_error = _mm_cvtsi32_si128(data[-1]); // 0 0 0 le0
itmp = data[-2]; itmp = data[-2];
last_error = _mm_shuffle_epi32(last_error, _MM_SHUFFLE(2,1,0,0)); last_error = _mm_shuffle_epi32(last_error, _MM_SHUFFLE(2,1,0,0));
@ -185,7 +185,7 @@ unsigned FLAC__fixed_compute_best_predictor_wide_intrin_ssse3(const FLAC__int32
err1 = _mm_sub_epi32(err1, last_error); // e1 e2 e3 e4 err1 = _mm_sub_epi32(err1, last_error); // e1 e2 e3 e4
#endif #endif
last_error = _mm_alignr_epi8(err0, err1, 4); // e0 e1 e2 e3 last_error = _mm_alignr_epi8(err0, err1, 4); // e0 e1 e2 e3
err0 = _mm_abs_epi32(err0); err0 = _mm_abs_epi32(err0);
err1 = _mm_abs_epi32(err1); // |e1| |e2| |e3| |e4| err1 = _mm_abs_epi32(err1); // |e1| |e2| |e3| |e4|
@ -196,7 +196,7 @@ unsigned FLAC__fixed_compute_best_predictor_wide_intrin_ssse3(const FLAC__int32
total_err1 = _mm_add_epi64(total_err1, err1); // te1 te2 total_err1 = _mm_add_epi64(total_err1, err1); // te1 te2
} }
} }
m128i_to_i64(total_error_0, total_err0); m128i_to_i64(total_error_0, total_err0);
m128i_to_i64(total_error_4, total_err3); m128i_to_i64(total_error_4, total_err3);
m128i_to_i64(total_error_2, total_err1); m128i_to_i64(total_error_2, total_err1);

View File

@ -134,7 +134,7 @@ cident FLAC__fixed_compute_best_predictor_asm_ia32_mmx_cmov
movq mm5, mm6 ; mm5 = error_1:error_0 movq mm5, mm6 ; mm5 = error_1:error_0
movq mm7, mm6 ; mm7 = error_1:error_0 movq mm7, mm6 ; mm7 = error_1:error_0
psubd mm5, mm3 ; mm5 = error_2: psubd mm5, mm3 ; mm5 = error_2:
movq mm3, mm6 ; mm3 = error_1:error_0 movq mm3, mm6 ; mm3 = error_1:error_0
psrad mm6, 31 psrad mm6, 31
pxor mm7, mm6 pxor mm7, mm6
psubd mm7, mm6 ; mm7 = abs(error_1):abs(error_0) psubd mm7, mm6 ; mm7 = abs(error_1):abs(error_0)
@ -155,7 +155,7 @@ cident FLAC__fixed_compute_best_predictor_asm_ia32_mmx_cmov
pxor mm6, mm5 pxor mm6, mm5
psubd mm6, mm5 ; mm6 = :abs(error_4) psubd mm6, mm5 ; mm6 = :abs(error_4)
paddd mm2, mm6 ; mm2 = :total_error_4 paddd mm2, mm6 ; mm2 = :total_error_4
dec ecx dec ecx
jnz short .loop jnz short .loop

View File

@ -128,7 +128,7 @@ size_t FLAC__plugin_common__pack_pcm_signed_big_endian(FLAC__byte *data, const F
const FLAC__int32 MAX = ~MIN; /*(1L << (source_bps-1)) - 1 */ const FLAC__int32 MAX = ~MIN; /*(1L << (source_bps-1)) - 1 */
for(channel = 0; channel < channels; channel++) { for(channel = 0; channel < channels; channel++) {
samples = wide_samples; samples = wide_samples;
data = start + bytes_per_sample * channel; data = start + bytes_per_sample * channel;
input_ = input[channel]; input_ = input[channel];
@ -209,7 +209,7 @@ size_t FLAC__plugin_common__pack_pcm_signed_little_endian(FLAC__byte *data, cons
const FLAC__int32 MAX = ~MIN; /*(1L << (source_bps-1)) - 1 */ const FLAC__int32 MAX = ~MIN; /*(1L << (source_bps-1)) - 1 */
for(channel = 0; channel < channels; channel++) { for(channel = 0; channel < channels; channel++) {
samples = wide_samples; samples = wide_samples;
data = start + bytes_per_sample * channel; data = start + bytes_per_sample * channel;
input_ = input[channel]; input_ = input[channel];

View File

@ -68,7 +68,7 @@ FLAC__bool FLAC_plugin__tags_add_tag_utf8(FLAC__StreamMetadata *tags, const char
* already contains a tag or tags for 'name', then they will be replaced * already contains a tag or tags for 'name', then they will be replaced
* according to 'replace_all': if 'replace_all' is false, only the first such * according to 'replace_all': if 'replace_all' is false, only the first such
* tag will be replaced; if true, all matching tags will be replaced by the one * tag will be replaced; if true, all matching tags will be replaced by the one
* new tag. * new tag.
*/ */
FLAC__bool FLAC_plugin__tags_set_tag_ucs2(FLAC__StreamMetadata *tags, const char *name, const FLAC__uint16 *value, FLAC__bool replace_all); FLAC__bool FLAC_plugin__tags_set_tag_ucs2(FLAC__StreamMetadata *tags, const char *name, const FLAC__uint16 *value, FLAC__bool replace_all);

View File

@ -34,7 +34,7 @@ typedef struct {
struct { struct {
gint http_buffer_size; gint http_buffer_size;
gint http_prebuffer; gint http_prebuffer;
gboolean use_proxy; gboolean use_proxy;
gchar *proxy_host; gchar *proxy_host;
gint proxy_port; gint proxy_port;
gboolean proxy_use_auth; gboolean proxy_use_auth;

View File

@ -1,16 +1,16 @@
/* /*
* Copyright (C) 2001 Edmund Grimley Evans <edmundo@rano.org> * Copyright (C) 2001 Edmund Grimley Evans <edmundo@rano.org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc., * with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

View File

@ -1,16 +1,16 @@
/* /*
* Copyright (C) 2001 Edmund Grimley Evans <edmundo@rano.org> * Copyright (C) 2001 Edmund Grimley Evans <edmundo@rano.org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc., * with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

View File

@ -1,16 +1,16 @@
/* /*
* Copyright (C) 2001 Edmund Grimley Evans <edmundo@rano.org> * Copyright (C) 2001 Edmund Grimley Evans <edmundo@rano.org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc., * with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

View File

@ -1,16 +1,16 @@
/* /*
* Copyright (C) 2001 Edmund Grimley Evans <edmundo@rano.org> * Copyright (C) 2001 Edmund Grimley Evans <edmundo@rano.org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc., * with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.