Home
last modified time | relevance | path

Searched refs:float_data (Results 1 – 18 of 18) sorted by relevance

/third_party/mesa3d/src/util/tests/
Droundeven_test.cpp38 } float_data[] = { in TEST() local
53 for (unsigned i = 0; i < ARRAY_SIZE(float_data); i++) { in TEST()
54 float output = _mesa_roundevenf(float_data[i].input); in TEST()
55 EXPECT_TRUE(memcmp(&float_data[i].expected, &output, sizeof(float)) == 0) in TEST()
56 << "Subtest " << i << " float value: expected " << float_data[i].expected << " from " in TEST()
57 << "_mesa_roundevenf(" << float_data[i].input << " but got " << output << "\n"; in TEST()
61 for (unsigned i = 0; i < ARRAY_SIZE(float_data); i++) { in TEST()
62 float output = _mesa_roundevenf(-float_data[i].input); in TEST()
63 float negated_expected = -float_data[i].expected; in TEST()
66 << "_mesa_roundevenf(" << -float_data[i].input << " but got " << output << "\n"; in TEST()
/third_party/libsnd/tests/
Dcompression_size_test.c49 { static float float_data [DFT_DATA_LENGTH] ; in vorbis_test() local
59 gen_windowed_sine_float (float_data, ARRAY_LEN (float_data), 1.0) ; in vorbis_test()
89 test_write_float_or_die (file, 0, float_data, ARRAY_LEN (float_data), __LINE__) ; in vorbis_test()
92 memset (float_data, 0, sizeof (float_data)) ; in vorbis_test()
97 test_read_float_or_die (file, 0, float_data, ARRAY_LEN (float_data), __LINE__) ; in vorbis_test()
100 for (k = 0 ; k < ARRAY_LEN (float_data) ; k ++) in vorbis_test()
101 max_abs = max_float (max_abs, fabs (float_data [k])) ; in vorbis_test()
Dchannel_test.c58 { static float float_data [1024] ; in channel_test() local
64 gen_windowed_sine_float (float_data, ARRAY_LEN (float_data), 0.9) ; in channel_test()
69 sf_count_t wframes = ARRAY_LEN (float_data) / ch ; in channel_test()
81 test_writef_float_or_die (file, 0, float_data, wframes, __LINE__) ; in channel_test()
94 compare_float_or_die (float_data, read_float, ch * rsfinfo.frames, __LINE__) ; in channel_test()
103 maxdiff = max_diff (float_data, read_float, ch * rsfinfo.frames, &position) ; in channel_test()
113 maxdiff = max_diff (float_data, read_float, ch * rsfinfo.frames, &position) ; in channel_test()
Dlong_read_write_test.c49 static float float_data [BUFFER_LENGTH] ; variable
69 float_data [k] = int_data [k] / 32000.0 ; in main()
78 …float_lrw_test ("alac.caf", SF_FORMAT_CAF | SF_FORMAT_ALAC_32, float_data, ARRAY_LEN (float_data))… in main()
Dcommand_test.c71 static float float_data [BUFFER_LEN] ; variable
242 float_data [k] = (k + 5) / (2.0 * BUFFER_LEN) ; in float_norm_test()
244 float_data [k] = (k + 5) ; in float_norm_test()
255 if ((k = sf_write_float (file, float_data, BUFFER_LEN / 2)) != BUFFER_LEN / 2) in float_norm_test()
263 if ((k = sf_write_float (file, float_data + BUFFER_LEN / 2, BUFFER_LEN / 2)) != BUFFER_LEN / 2) in float_norm_test()
294 if ((k = sf_read_float (file, float_data, BUFFER_LEN)) != BUFFER_LEN) in float_norm_test()
300 if (float_data [k] >= 1.0) in float_norm_test()
301 …f ("\n\nLine %d: float_data [%d] == %f which is greater than 1.0\n", __LINE__, k, float_data [k]) ; in float_norm_test()
309 if ((k = sf_read_float (file, float_data, BUFFER_LEN)) != BUFFER_LEN) in float_norm_test()
315 if (float_data [k] < 1.0) in float_norm_test()
[all …]
Dfloating_point_test.tpl52 static float float_data [DFT_DATA_LENGTH] ;
211 gen_windowed_sine_float (float_data, DFT_DATA_LENGTH, 0.9999) ;
222 test_write_float_or_die (file, 0, float_data, DFT_DATA_LENGTH, __LINE__) ;
244 snr = dft_cmp_float (__LINE__, float_data, float_test, DFT_DATA_LENGTH, target_snr, allow_exit) ;
Dpcm_test.tpl103 float *float_data ;
110 float_data = data_out.f ;
114 float_data [k] = (k * ((k % 2) ? 333333.0 : -333333.0)) ;
117 int_data [k] = lrintf (float_data [k]) ;
120 if (fabs (int_data [k] - float_data [k]) > 1.0)
121 …{ printf ("\n\nLine %d: float : Incorrect sample (#%d : %f => %d).\n", __LINE__, k, float_data [k]…
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
Des31cTextureStorageMultisampleGetTexLevelParameterifvTests.hpp161 glw::GLfloat float_data; member in glcts::MultisampleTextureGetTexLevelParametervInvalidTextureTargetRejectedTest
177 glw::GLfloat float_data; member in glcts::MultisampleTextureGetTexLevelParametervInvalidValueArgumentRejectedTest
196 glw::GLfloat float_data; member in glcts::MultisampleTextureGetTexLevelParametervNegativeLodIsRejectedTest
Des31cTextureStorageMultisampleGetTexLevelParameterifvTests.cpp1172 , float_data(0.0f) in MultisampleTextureGetTexLevelParametervInvalidTextureTargetRejectedTest()
1203 GL_TEXTURE_RED_TYPE, &float_data); in iterate()
1222 , float_data(0.0f) in MultisampleTextureGetTexLevelParametervInvalidValueArgumentRejectedTest()
1258 GL_SIGNED_NORMALIZED /* invalid value */, &float_data); in iterate()
1278 , float_data(0.0f) in MultisampleTextureGetTexLevelParametervNegativeLodIsRejectedTest()
1347 …velParameterfv(GL_TEXTURE_2D_MULTISAMPLE, -1 /* negative lod */, GL_TEXTURE_RED_TYPE, &float_data); in iterate()
/third_party/flutter/engine/flutter/lib/ui/text/
Dparagraph_builder.cc242 const float* float_data = static_cast<const float*>(byte_data.data()); in decodeTextShadows() local
252 SkPoint::Make(float_data[shadow_count_offset + kXOffset], in decodeTextShadows()
253 float_data[shadow_count_offset + kYOffset]), in decodeTextShadows()
254 float_data[shadow_count_offset + kBlurOffset]); in decodeTextShadows()
/third_party/vk-gl-cts/external/openglcts/modules/gles3/
Des3cCopyTexImageConversionsTests.cpp253 float float_data; member
2508 result.red.float_data = red; in getR16FPixelData()
2513 result.alpha.float_data = 1; in getR16FPixelData()
2515 result.red.float_data = red; in getR16FPixelData()
2545 result.red.float_data = red; in getR32FPixelData()
2550 result.alpha.float_data = 1; in getR32FPixelData()
2552 result.red.float_data = red; in getR32FPixelData()
2583 result.red.float_data = red; in getRG16FPixelData()
2585 result.green.float_data = green; in getRG16FPixelData()
2590 result.alpha.float_data = 1; in getRG16FPixelData()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cShadingLanguage420PackTests.cpp4560 static const GLfloat float_data[16] = { 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, in prepareUniforms() local
4574 program.uniform("uni_left", Utils::FLOAT, test_case.m_n_cols, test_case.m_n_rows, float_data); in prepareUniforms()
4575 program.uniform("uni_right", Utils::FLOAT, test_case.m_n_cols, test_case.m_n_rows, float_data); in prepareUniforms()
5263 static const GLfloat float_data[4] = { 0.5f, 0.125f, 0.375f, 0.0f }; in prepareUniforms() local
5267 program.uniform("uni_vector", Utils::FLOAT, 1, 4, float_data); in prepareUniforms()
5268 program.uniform("uni_matrix", Utils::FLOAT, 2, 2, float_data); in prepareUniforms()
6736 static const GLfloat float_data[4] = { 0.0f, 0.0f, 1.0f, 1.0f }; in prepareUniforms() local
6738 program.uniform("uni_fs_test", Utils::FLOAT, 1 /* n_cols */, 4 /* n_rows */, float_data); in prepareUniforms()
6739 program.uniform("uni_gs_test", Utils::FLOAT, 1 /* n_cols */, 4 /* n_rows */, float_data); in prepareUniforms()
6740 program.uniform("uni_tcs_test", Utils::FLOAT, 1 /* n_cols */, 4 /* n_rows */, float_data); in prepareUniforms()
[all …]
Dgl4cShaderSubroutineTests.cpp4885 GLfloat* float_data = (GLfloat*)feedback_data; in testDraw() local
4888 vec4_results[i].m_x = float_data[i * 4 + 0]; in testDraw()
4889 vec4_results[i].m_y = float_data[i * 4 + 1]; in testDraw()
4890 vec4_results[i].m_z = float_data[i * 4 + 2]; in testDraw()
4891 vec4_results[i].m_w = float_data[i * 4 + 3]; in testDraw()
4894 GLuint* uint_data = (GLuint*)(float_data + (n_vec4_varyings)*4); in testDraw()
/third_party/skia/third_party/externals/spirv-tools/test/fuzz/
Dtransformation_replace_constant_with_uniform_test.cpp875 uint32_t float_data[1]; in TEST() local
877 memcpy(&float_data[0], &temp, sizeof(float)); in TEST()
879 AddFactHelper(&transformation_context, float_data[0], blockname_3)); in TEST()
/third_party/spirv-tools/test/fuzz/
Dtransformation_replace_constant_with_uniform_test.cpp875 uint32_t float_data[1]; in TEST() local
877 memcpy(&float_data[0], &temp, sizeof(float)); in TEST()
879 AddFactHelper(&transformation_context, float_data[0], blockname_3)); in TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzz/
Dtransformation_replace_constant_with_uniform_test.cpp875 uint32_t float_data[1]; in TEST() local
877 memcpy(&float_data[0], &temp, sizeof(float)); in TEST()
879 AddFactHelper(&transformation_context, float_data[0], blockname_3)); in TEST()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Demangle/
DItaniumDemangle.cpp81 template <class Float> struct float_data;
83 template <> struct float_data<float> { struct
88 const char *float_data<float>::spec = "%af";
90 template <> struct float_data<double> { struct
96 const char *float_data<double>::spec = "%a";
98 template <> struct float_data<long double> { struct
112 const char *float_data<long double>::spec = "%LaL";
118 const size_t N = float_data<Float>::mangled_size; in parse_floating_number()
141 char num[float_data<Float>::max_demangled_size] = {0}; in parse_floating_number()
142 int n = snprintf(num, sizeof(num), float_data<Float>::spec, value); in parse_floating_number()
/third_party/libbpf/src/
Dbtf_dump.c1952 union float_data { union
1963 const union float_data *flp = data; in btf_dump_float_data()
1964 union float_data fl; in btf_dump_float_data()