Home
last modified time | relevance | path

Searched refs:double_data (Results 1 – 6 of 6) sorted by relevance

/third_party/mesa3d/src/util/tests/
Droundeven_test.cpp74 } double_data[] = { in TEST() local
89 for (unsigned i = 0; i < ARRAY_SIZE(double_data); i++) { in TEST()
90 double output = _mesa_roundeven(double_data[i].input); in TEST()
91 EXPECT_TRUE(memcmp(&double_data[i].expected, &output, sizeof(double)) == 0) in TEST()
92 << "Subtest " << i << " double value: expected " << double_data[i].expected << " from " in TEST()
93 << "_mesa_roundeven(" << double_data[i].input << " but got " << output << "\n"; in TEST()
97 for (unsigned i = 0; i < ARRAY_SIZE(double_data); i++) { in TEST()
98 double output = _mesa_roundeven(-double_data[i].input); in TEST()
99 double negated_expected = -double_data[i].expected; in TEST()
102 << "_mesa_roundeven(" << -double_data[i].input << " but got " << output << "\n"; in TEST()
/third_party/libsnd/tests/
Dcommand_test.c72 static double double_data [BUFFER_LEN] ; variable
358 double_data [k] = (k + 5) / (2.0 * BUFFER_LEN) ; in double_norm_test()
360 double_data [k] = (k + 5) ; in double_norm_test()
372 if ((k = sf_write_double (file, double_data, BUFFER_LEN / 2)) != BUFFER_LEN / 2) in double_norm_test()
380 if ((k = sf_write_double (file, double_data + BUFFER_LEN / 2, BUFFER_LEN / 2)) != BUFFER_LEN / 2) in double_norm_test()
410 if ((k = sf_read_double (file, double_data, BUFFER_LEN)) != BUFFER_LEN) in double_norm_test()
416 if (double_data [k] >= 1.0) in double_norm_test()
417 …("\n\nLine %d: double_data [%d] == %f which is greater than 1.0\n", __LINE__, k, double_data [k]) ; in double_norm_test()
425 if ((k = sf_read_double (file, double_data, BUFFER_LEN)) != BUFFER_LEN) in double_norm_test()
431 if (double_data [k] < 1.0) in double_norm_test()
[all …]
Dlong_read_write_test.c50 static double double_data [BUFFER_LENGTH] ; variable
70 double_data [k] = int_data [k] / 32000.0 ; in main()
79 …le_lrw_test ("alac.caf", SF_FORMAT_CAF | SF_FORMAT_ALAC_32, double_data, ARRAY_LEN (double_data)) ; in main()
Dfloating_point_test.tpl49 static double double_data [DFT_DATA_LENGTH] ;
55 static double double_data [DFT_DATA_LENGTH] ;
264 gen_windowed_sine_double (double_data, DFT_DATA_LENGTH, 0.9999) ;
275 test_write_double_or_die (file, 0, double_data, DFT_DATA_LENGTH, __LINE__) ;
297 …snr = dft_cmp_double (__LINE__, double_data, double_test, DFT_DATA_LENGTH, target_snr, allow_exit)…
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cGPUShaderFP64Tests.cpp2249 const double double_data[] = { in verifyErrorGenerationWhenCallingDoubleUniformFunctionsForBooleans() local
2285 gl.uniform1dv(uniform_location, 1 /* count */, double_data); in verifyErrorGenerationWhenCallingDoubleUniformFunctionsForBooleans()
2288 gl.uniform2dv(uniform_location, 1 /* count */, double_data); in verifyErrorGenerationWhenCallingDoubleUniformFunctionsForBooleans()
2291 gl.uniform3dv(uniform_location, 1 /* count */, double_data); in verifyErrorGenerationWhenCallingDoubleUniformFunctionsForBooleans()
2294 gl.uniform4dv(uniform_location, 1 /* count */, double_data); in verifyErrorGenerationWhenCallingDoubleUniformFunctionsForBooleans()
2298 gl.uniformMatrix2dv(uniform_location, 1 /* count */, GL_FALSE /* transpose */, double_data); in verifyErrorGenerationWhenCallingDoubleUniformFunctionsForBooleans()
2301 gl.uniformMatrix2x3dv(uniform_location, 1 /* count */, GL_FALSE /* transpose */, double_data); in verifyErrorGenerationWhenCallingDoubleUniformFunctionsForBooleans()
2304 gl.uniformMatrix2x4dv(uniform_location, 1 /* count */, GL_FALSE /* transpose */, double_data); in verifyErrorGenerationWhenCallingDoubleUniformFunctionsForBooleans()
2307 gl.uniformMatrix3dv(uniform_location, 1 /* count */, GL_FALSE /* transpose */, double_data); in verifyErrorGenerationWhenCallingDoubleUniformFunctionsForBooleans()
2310 gl.uniformMatrix3x2dv(uniform_location, 1 /* count */, GL_FALSE /* transpose */, double_data); in verifyErrorGenerationWhenCallingDoubleUniformFunctionsForBooleans()
[all …]
Dgl4cShadingLanguage420PackTests.cpp4558 static const GLdouble double_data[16] = { 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, in prepareUniforms() local
4570 program.uniform("uni_left", Utils::DOUBLE, test_case.m_n_cols, test_case.m_n_rows, double_data); in prepareUniforms()
4571 program.uniform("uni_right", Utils::DOUBLE, test_case.m_n_cols, test_case.m_n_rows, double_data); in prepareUniforms()