Home
last modified time | relevance | path

Searched refs:FXP_FRACTION_BITS (Results 1 – 2 of 2) sorted by relevance

/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dtessellator.cpp320 #define FXP_FRACTION_BITS 16 macro
323 #define FXP_THREE (3<<FXP_FRACTION_BITS)
324 #define FXP_ONE (1<<FXP_FRACTION_BITS)
366 return floatToIDotF< FXP_INTEGER_BITS, FXP_FRACTION_BITS, /*bSigned*/false >( input ); in floatToFixed()
375 …return ((float)(input>>FXP_FRACTION_BITS) + (float)(input&FXP_FRACTION_MASK)/(1<<FXP_FRACTION_BITS in fixedToFloat()
1271 … fxpPerpParam = (fxpPerpParam+FXP_ONE_HALF/*round*/)>>FXP_FRACTION_BITS; // get back to n.16 in TriGeneratePoints()
1715 numPoints = (fxpCeil(FXP_ONE_HALF + (fxpTessFactor+1/*round*/)/2)*2)>>FXP_FRACTION_BITS; in NumPointsForTessFactor()
1719 numPoints = ((fxpCeil((fxpTessFactor+1/*round*/)/2)*2)>>FXP_FRACTION_BITS)+1; in NumPointsForTessFactor()
1738 …TessFactorCtx.numHalfTessFactorPoints = (fxpCeilHalfTessFactor>>FXP_FRACTION_BITS); // for EVEN, w… in ComputeTessFactorContext()
1756 …plitPointOnFloorHalfTessFactor = (RemoveMSB((fxpFloorHalfTessFactor>>FXP_FRACTION_BITS)-1)<<1) + 1; in ComputeTessFactorContext()
[all …]
/external/mesa3d/src/gallium/auxiliary/tessellator/
Dtessellator.cpp334 #define FXP_FRACTION_BITS 16 macro
337 #define FXP_THREE (3<<FXP_FRACTION_BITS)
338 #define FXP_ONE (1<<FXP_FRACTION_BITS)
380 return floatToIDotF< FXP_INTEGER_BITS, FXP_FRACTION_BITS, /*bSigned*/false >( input ); in floatToFixed()
389 …return ((float)(input>>FXP_FRACTION_BITS) + (float)(input&FXP_FRACTION_MASK)/(1<<FXP_FRACTION_BITS in fixedToFloat()
1285 … fxpPerpParam = (fxpPerpParam+FXP_ONE_HALF/*round*/)>>FXP_FRACTION_BITS; // get back to n.16 in TriGeneratePoints()
1729 numPoints = (fxpCeil(FXP_ONE_HALF + (fxpTessFactor+1/*round*/)/2)*2)>>FXP_FRACTION_BITS; in NumPointsForTessFactor()
1733 numPoints = ((fxpCeil((fxpTessFactor+1/*round*/)/2)*2)>>FXP_FRACTION_BITS)+1; in NumPointsForTessFactor()
1752 …TessFactorCtx.numHalfTessFactorPoints = (fxpCeilHalfTessFactor>>FXP_FRACTION_BITS); // for EVEN, w… in ComputeTessFactorContext()
1770 …plitPointOnFloorHalfTessFactor = (RemoveMSB((fxpFloorHalfTessFactor>>FXP_FRACTION_BITS)-1)<<1) + 1; in ComputeTessFactorContext()
[all …]