MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / sortProjection

Function sortProjection

cmp_framework/common/hdr_encode.cpp:1343–1354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341};
1342
1343void sortProjection(float projection[MAX_ENTRIES], int order[MAX_ENTRIES], int numEntries) {
1344 int i;
1345 a what[MAX_ENTRIES + MAX_PARTITIONS_TABLE];
1346
1347 for (i = 0; i < numEntries; i++)
1348 what[what[i].i = i].d = projection[i];
1349
1350 qsort((void*)&what, numEntries, sizeof(a), a_compare);
1351
1352 for (i = 0; i < numEntries; i++)
1353 order[i] = what[i].i;
1354};
1355
1356float totalError_d(float data[MAX_ENTRIES][MAX_DIMENSION_BIG], float data2[MAX_ENTRIES][MAX_DIMENSION_BIG], int numEntries, int dimension) {
1357 int i, j;

Callers 1

optQuantAnD_dFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected