gamma function issue


As mentioned in your source code that for gamma function the vales of defog, kneeLow, kneeHigh and  gamma are fixed for conversion to (unsigned char) preview R, G, B and alpha. But what if I want to store the values of R, G, B and alpha in unsigned short data type? What will be the value of gamma, defog, exposure, kneeLow, kneeHigh and clamp?