ref: be0cfba3d64b3c73e008495aa8923b63da836f8d
parent: 0a8012eb73a3df21c95cb5827f9cfe8c2d36c9ed
author: Erik de Castro Lopo <[email protected]>
date: Fri Jun 15 17:54:58 EDT 2007
src/*_coeffs.h : Change the way the coefficients are defined for improved safety.
--- a/src/fastest_coeffs.h
+++ b/src/fastest_coeffs.h
@@ -1,5 +1,5 @@
/*
-** Copyright (C) 2002-2004 Erik de Castro Lopo <[email protected]>
+** Copyright (C) 2002-2004, 2007 Erik de Castro Lopo <[email protected]>
**
** 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
@@ -31,6 +31,12 @@
** increment : 128
*/
+static const struct fastest_coeffs_s
+{ int increment ;
+ coeff_t coeffs [2464] ;
+} fastest_coeffs =
+{ 128,
+{
8.31472372954840555082e-01,
8.31414005540308198583e-01,
8.31238918266223869580e-01,
@@ -2494,13 +2500,6 @@
-3.59691078491283933177e-07,
-2.38952398011216803052e-07,
-1.22889677382464548894e-07,
- 0 /* Need a final zero coefficient */
-
-/*
-** Do not edit or modify anything in this comment block.
-** The arch-tag line is a file identity tag for the GNU Arch
-** revision control system.
-**
-** arch-tag: 82d149f9-28f4-4c47-b442-77a0a2d752b4
-*/
-
+ 0.0 /* Need a final zero coefficient */
+}
+} ; /* fastest_coeffs */
--- a/src/high_qual_coeffs.h
+++ b/src/high_qual_coeffs.h
@@ -1,5 +1,5 @@
/*
-** Copyright (C) 2002-2004 Erik de Castro Lopo <[email protected]>
+** Copyright (C) 2002-2004, 2007 Erik de Castro Lopo <[email protected]>
**
** 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
@@ -31,6 +31,12 @@
** increment : 128
*/
+static const struct high_qual_coeffs_s
+{ int increment ;
+ coeff_t coeffs [17088] ;
+} high_qual_coeffs =
+{ 128,
+{
9.73822959712628111184e-01,
9.73730227534126968614e-01,
9.73452062795049033461e-01,
@@ -17118,13 +17124,6 @@
-6.22922070331324441674e-08,
-4.33275254142092293362e-08,
-2.44520526242285169324e-08,
- 0 /* Need a final zero coefficient */
-
-/*
-** Do not edit or modify anything in this comment block.
-** The arch-tag line is a file identity tag for the GNU Arch
-** revision control system.
-**
-** arch-tag: e62a151f-7d00-4df6-8e18-c8032ced3be2
-*/
-
+ 0.0 /* Need a final zero coefficient */
+}
+} ; /* high_qual_coeffs */
--- a/src/mid_qual_coeffs.h
+++ b/src/mid_qual_coeffs.h
@@ -1,5 +1,5 @@
/*
-** Copyright (C) 2002-2004 Erik de Castro Lopo <[email protected]>
+** Copyright (C) 2002-2004, 2007 Erik de Castro Lopo <[email protected]>
**
** 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
@@ -31,6 +31,12 @@
** increment : 128
*/
+static const struct mid_qual_coeffs_s
+{ int increment ;
+ coeff_t coeffs [5286] ;
+} mid_qual_coeffs =
+{ 128,
+{
9.20381425342432724079e-01,
9.20302993473144703707e-01,
9.20067721990720843728e-01,
@@ -5316,13 +5322,6 @@
-1.63621651764123018711e-07,
-1.03664673187799380991e-07,
-4.47970746308059675830e-08,
- 0 /* Need a final zero coefficient */
-
-/*
-** Do not edit or modify anything in this comment block.
-** The arch-tag line is a file identity tag for the GNU Arch
-** revision control system.
-**
-** arch-tag: aa7e5110-c82f-4c2f-8296-57bd4fa94766
-*/
-
+ 0.0 /* Need a final zero coefficient */
+}
+} ; /* mid_qual_coeffs */