History

src/*_coeffs.h : Change the way the coefficients are defined for improved safety.

Erik de Castro Lopo committed 19 years ago

Commit be0cfba1 parent 0a8012e3 files · +30 −33Browse files

Showing the changes to src (3 of 3 files). Show all

Unified · Split

3 files
  1. src/fastest_coeffs.h +10 −11
  2. src/high_qual_coeffs.h +10 −11
  3. src/mid_qual_coeffs.h +10 −11
src/fastest_coeffs.h+10−11
@@ -1,5 +1,5 @@
11 /*
2−** Copyright (C) 2002-2004 Erik de Castro Lopo <erikd@mega-nerd.com>
2+** Copyright (C) 2002-2004, 2007 Erik de Castro Lopo <erikd@mega-nerd.com>
33 **
44 ** This program is free software; you can redistribute it and/or modify
55 ** it under the terms of the GNU General Public License as published by
@@ -31,6 +31,12 @@ · 25 unmodified lines
3131 ** increment : 128
3232 */
3333
34+static const struct fastest_coeffs_s
35+{ int increment ;
36+ coeff_t coeffs [2464] ;
37+} fastest_coeffs =
38+{ 128,
39+{
3440 8.31472372954840555082e-01,
3541 8.31414005540308198583e-01,
3642 8.31238918266223869580e-01,
@@ -2494,13 +2500,6 @@ · 2457 unmodified lines
24942500 -3.59691078491283933177e-07,
24952501 -2.38952398011216803052e-07,
24962502 -1.22889677382464548894e-07,
2497− 0 /* Need a final zero coefficient */
2498−
2499−/*
2500−** Do not edit or modify anything in this comment block.
2501−** The arch-tag line is a file identity tag for the GNU Arch
2502−** revision control system.
2503−**
2504−** arch-tag: 82d149f9-28f4-4c47-b442-77a0a2d752b4
2505−*/
2506−
2503+ 0.0 /* Need a final zero coefficient */
2504+}
2505+} ; /* fastest_coeffs */
src/high_qual_coeffs.h+10−11
@@ -1,5 +1,5 @@
11 /*
2−** Copyright (C) 2002-2004 Erik de Castro Lopo <erikd@mega-nerd.com>
2+** Copyright (C) 2002-2004, 2007 Erik de Castro Lopo <erikd@mega-nerd.com>
33 **
44 ** This program is free software; you can redistribute it and/or modify
55 ** it under the terms of the GNU General Public License as published by
@@ -31,6 +31,12 @@ · 25 unmodified lines
3131 ** increment : 128
3232 */
3333
34+static const struct high_qual_coeffs_s
35+{ int increment ;
36+ coeff_t coeffs [17088] ;
37+} high_qual_coeffs =
38+{ 128,
39+{
3440 9.73822959712628111184e-01,
3541 9.73730227534126968614e-01,
3642 9.73452062795049033461e-01,
@@ -17118,13 +17124,6 @@ · 17081 unmodified lines
1711817124 -6.22922070331324441674e-08,
1711917125 -4.33275254142092293362e-08,
1712017126 -2.44520526242285169324e-08,
17121− 0 /* Need a final zero coefficient */
17122−
17123−/*
17124−** Do not edit or modify anything in this comment block.
17125−** The arch-tag line is a file identity tag for the GNU Arch
17126−** revision control system.
17127−**
17128−** arch-tag: e62a151f-7d00-4df6-8e18-c8032ced3be2
17129−*/
17130−
17127+ 0.0 /* Need a final zero coefficient */
17128+}
17129+} ; /* high_qual_coeffs */
src/mid_qual_coeffs.h+10−11
@@ -1,5 +1,5 @@
11 /*
2−** Copyright (C) 2002-2004 Erik de Castro Lopo <erikd@mega-nerd.com>
2+** Copyright (C) 2002-2004, 2007 Erik de Castro Lopo <erikd@mega-nerd.com>
33 **
44 ** This program is free software; you can redistribute it and/or modify
55 ** it under the terms of the GNU General Public License as published by
@@ -31,6 +31,12 @@ · 25 unmodified lines
3131 ** increment : 128
3232 */
3333
34+static const struct mid_qual_coeffs_s
35+{ int increment ;
36+ coeff_t coeffs [5286] ;
37+} mid_qual_coeffs =
38+{ 128,
39+{
3440 9.20381425342432724079e-01,
3541 9.20302993473144703707e-01,
3642 9.20067721990720843728e-01,
@@ -5316,13 +5322,6 @@ · 5279 unmodified lines
53165322 -1.63621651764123018711e-07,
53175323 -1.03664673187799380991e-07,
53185324 -4.47970746308059675830e-08,
5319− 0 /* Need a final zero coefficient */
5320−
5321−/*
5322−** Do not edit or modify anything in this comment block.
5323−** The arch-tag line is a file identity tag for the GNU Arch
5324−** revision control system.
5325−**
5326−** arch-tag: aa7e5110-c82f-4c2f-8296-57bd4fa94766
5327−*/
5328−
5325+ 0.0 /* Need a final zero coefficient */
5326+}
5327+} ; /* mid_qual_coeffs */

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