ref: 724385e242544a9c3613d54d3db8b856288c37db
parent: 0a29bb5155fb924e98fba6466578794b24feaa14
author: Ralph Giles <[email protected]>
date: Fri Dec 21 06:56:18 EST 2012
Add float suffix to tansig_table literals. This fixes a truncation warning in MSVC: warning C4305: 'initializing' : truncation from 'double' to 'const opus_val16'. opus_val16 is a float in the floating point build and an int16 in the fixed-point build. The table isn't used in the fixed-point build, but the compiler would presumedly warn in that case as well.
--- a/src/tansig_table.h
+++ b/src/tansig_table.h
@@ -1,45 +1,45 @@
/* This file is auto-generated by gen_tables */
static const opus_val16 tansig_table[201] = {
-0.000000, 0.039979, 0.079830, 0.119427, 0.158649,
-0.197375, 0.235496, 0.272905, 0.309507, 0.345214,
-0.379949, 0.413644, 0.446244, 0.477700, 0.507977,
-0.537050, 0.564900, 0.591519, 0.616909, 0.641077,
-0.664037, 0.685809, 0.706419, 0.725897, 0.744277,
-0.761594, 0.777888, 0.793199, 0.807569, 0.821040,
-0.833655, 0.845456, 0.856485, 0.866784, 0.876393,
-0.885352, 0.893698, 0.901468, 0.908698, 0.915420,
-0.921669, 0.927473, 0.932862, 0.937863, 0.942503,
-0.946806, 0.950795, 0.954492, 0.957917, 0.961090,
-0.964028, 0.966747, 0.969265, 0.971594, 0.973749,
-0.975743, 0.977587, 0.979293, 0.980869, 0.982327,
-0.983675, 0.984921, 0.986072, 0.987136, 0.988119,
-0.989027, 0.989867, 0.990642, 0.991359, 0.992020,
-0.992631, 0.993196, 0.993718, 0.994199, 0.994644,
-0.995055, 0.995434, 0.995784, 0.996108, 0.996407,
-0.996682, 0.996937, 0.997172, 0.997389, 0.997590,
-0.997775, 0.997946, 0.998104, 0.998249, 0.998384,
-0.998508, 0.998623, 0.998728, 0.998826, 0.998916,
-0.999000, 0.999076, 0.999147, 0.999213, 0.999273,
-0.999329, 0.999381, 0.999428, 0.999472, 0.999513,
-0.999550, 0.999585, 0.999617, 0.999646, 0.999673,
-0.999699, 0.999722, 0.999743, 0.999763, 0.999781,
-0.999798, 0.999813, 0.999828, 0.999841, 0.999853,
-0.999865, 0.999875, 0.999885, 0.999893, 0.999902,
-0.999909, 0.999916, 0.999923, 0.999929, 0.999934,
-0.999939, 0.999944, 0.999948, 0.999952, 0.999956,
-0.999959, 0.999962, 0.999965, 0.999968, 0.999970,
-0.999973, 0.999975, 0.999977, 0.999978, 0.999980,
-0.999982, 0.999983, 0.999984, 0.999986, 0.999987,
-0.999988, 0.999989, 0.999990, 0.999990, 0.999991,
-0.999992, 0.999992, 0.999993, 0.999994, 0.999994,
-0.999994, 0.999995, 0.999995, 0.999996, 0.999996,
-0.999996, 0.999997, 0.999997, 0.999997, 0.999997,
-0.999997, 0.999998, 0.999998, 0.999998, 0.999998,
-0.999998, 0.999998, 0.999999, 0.999999, 0.999999,
-0.999999, 0.999999, 0.999999, 0.999999, 0.999999,
-0.999999, 0.999999, 0.999999, 0.999999, 0.999999,
-1.000000, 1.000000, 1.000000, 1.000000, 1.000000,
-1.000000, 1.000000, 1.000000, 1.000000, 1.000000,
-1.000000,
+0.000000f, 0.039979f, 0.079830f, 0.119427f, 0.158649f,
+0.197375f, 0.235496f, 0.272905f, 0.309507f, 0.345214f,
+0.379949f, 0.413644f, 0.446244f, 0.477700f, 0.507977f,
+0.537050f, 0.564900f, 0.591519f, 0.616909f, 0.641077f,
+0.664037f, 0.685809f, 0.706419f, 0.725897f, 0.744277f,
+0.761594f, 0.777888f, 0.793199f, 0.807569f, 0.821040f,
+0.833655f, 0.845456f, 0.856485f, 0.866784f, 0.876393f,
+0.885352f, 0.893698f, 0.901468f, 0.908698f, 0.915420f,
+0.921669f, 0.927473f, 0.932862f, 0.937863f, 0.942503f,
+0.946806f, 0.950795f, 0.954492f, 0.957917f, 0.961090f,
+0.964028f, 0.966747f, 0.969265f, 0.971594f, 0.973749f,
+0.975743f, 0.977587f, 0.979293f, 0.980869f, 0.982327f,
+0.983675f, 0.984921f, 0.986072f, 0.987136f, 0.988119f,
+0.989027f, 0.989867f, 0.990642f, 0.991359f, 0.992020f,
+0.992631f, 0.993196f, 0.993718f, 0.994199f, 0.994644f,
+0.995055f, 0.995434f, 0.995784f, 0.996108f, 0.996407f,
+0.996682f, 0.996937f, 0.997172f, 0.997389f, 0.997590f,
+0.997775f, 0.997946f, 0.998104f, 0.998249f, 0.998384f,
+0.998508f, 0.998623f, 0.998728f, 0.998826f, 0.998916f,
+0.999000f, 0.999076f, 0.999147f, 0.999213f, 0.999273f,
+0.999329f, 0.999381f, 0.999428f, 0.999472f, 0.999513f,
+0.999550f, 0.999585f, 0.999617f, 0.999646f, 0.999673f,
+0.999699f, 0.999722f, 0.999743f, 0.999763f, 0.999781f,
+0.999798f, 0.999813f, 0.999828f, 0.999841f, 0.999853f,
+0.999865f, 0.999875f, 0.999885f, 0.999893f, 0.999902f,
+0.999909f, 0.999916f, 0.999923f, 0.999929f, 0.999934f,
+0.999939f, 0.999944f, 0.999948f, 0.999952f, 0.999956f,
+0.999959f, 0.999962f, 0.999965f, 0.999968f, 0.999970f,
+0.999973f, 0.999975f, 0.999977f, 0.999978f, 0.999980f,
+0.999982f, 0.999983f, 0.999984f, 0.999986f, 0.999987f,
+0.999988f, 0.999989f, 0.999990f, 0.999990f, 0.999991f,
+0.999992f, 0.999992f, 0.999993f, 0.999994f, 0.999994f,
+0.999994f, 0.999995f, 0.999995f, 0.999996f, 0.999996f,
+0.999996f, 0.999997f, 0.999997f, 0.999997f, 0.999997f,
+0.999997f, 0.999998f, 0.999998f, 0.999998f, 0.999998f,
+0.999998f, 0.999998f, 0.999999f, 0.999999f, 0.999999f,
+0.999999f, 0.999999f, 0.999999f, 0.999999f, 0.999999f,
+0.999999f, 0.999999f, 0.999999f, 0.999999f, 0.999999f,
+1.000000f, 1.000000f, 1.000000f, 1.000000f, 1.000000f,
+1.000000f, 1.000000f, 1.000000f, 1.000000f, 1.000000f,
+1.000000f,
};