History

Fix formatting.

Erik de Castro Lopo committed 22 years ago

Commit 7b2ced01 parent b9ffd243 files · +4 −4Browse files

Unified · Split

3 files
  1. examples/sndfile-resample.c +1 −1
  2. tests/calc_snr.c +1 −1
  3. tests/float_short_test.c +2 −2
examples/sndfile-resample.c+1−1
@@ -44,7 +44,7 @@ main (int argc, char *argv []) · 43 unmodified lines
44 int new_sample_rate = -1, k, converter, max_speed = SF_FALSE ;44 int new_sample_rate = -1, k, converter, max_speed = SF_FALSE ;
45 45
46 if (argc == 2 && strcmp (argv [1], "--version") == 0)46 if (argc == 2 && strcmp (argv [1], "--version") == 0)
47 { char buffer [64], *cptr ;47 { char buffer [64], *cptr ;
48 48
49 if ((cptr = strrchr (argv [0], '/')) != NULL)49 if ((cptr = strrchr (argv [0], '/')) != NULL)
50 argv [0] = cptr + 1 ;50 argv [0] = cptr + 1 ;
tests/calc_snr.c+1−1
@@ -204,7 +204,7 @@ log_mag_spectrum (double *input, int len, double *magnitude) · 203 unmodified lines
204 } ;204 } ;
205 205
206 fftw_execute (plan) ;206 fftw_execute (plan) ;
207 207
208 fftw_destroy_plan (plan) ;208 fftw_destroy_plan (plan) ;
209 209
210 /* (k < N/2 rounded up) */210 /* (k < N/2 rounded up) */
tests/float_short_test.c+2−2
@@ -29,7 +29,7 @@ · 28 unmodified lines
29 29
30#define ARRAY_LEN(x) ((int) (sizeof (x) / sizeof ((x) [0])))30#define ARRAY_LEN(x) ((int) (sizeof (x) / sizeof ((x) [0])))
31 31
32#define ABS(a) (((a) < 0) ? -(a) : (a))32#define ABS(a) (((a) < 0) ? - (a) : (a))
33#define MAX(a,b) (((a) >= (b)) ? (a) : (b))33#define MAX(a,b) (((a) >= (b)) ? (a) : (b))
34 34
35static void float_to_short_test (void) ;35static void float_to_short_test (void) ;
@@ -64,7 +64,7 @@ float_to_short_test (void) · 28 unmodified lines
64 { -0.95, -0.99, -1.0, -1.01, -1.1, -2.0, -11.1, -111.1, -2222.2, -33333.364 { -0.95, -0.99, -1.0, -1.01, -1.1, -2.0, -11.1, -111.1, -2222.2, -33333.3
65 } ;65 } ;
66 66
67 static short out [MAX(ARRAY_LEN (fpos), ARRAY_LEN (fneg))] ;67 static short out [MAX (ARRAY_LEN (fpos), ARRAY_LEN (fneg))] ;
68 68
69 int k ;69 int k ;
70 70

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