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

Function rampf

cmp_framework/common/hdr_encode.cpp:1637–1641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1635};
1636
1637float rampf(int clog, int bits, float p1, float p2, int indexPos) {
1638 (bits);
1639 // (clog+ LOG_CL_BASE) starts from 2 to 4
1640 return (float)p1 + rampLerpWeights[clog + LOG_CL_BASE][indexPos] * (p2 - p1);
1641}
1642
1643int all_same_d(float d[][MAX_DIMENSION_BIG], int n, int dimension) {
1644 int i, j;

Callers 4

quant_single_point_dFunction · 0.70
init_rampsFunction · 0.70
ep_shaker_HDFunction · 0.70
ep_shaker_2_dFunction · 0.70

Calls 1

ep_dfFunction · 0.85

Tested by

no test coverage detected