Home
last modified time | relevance | path

Searched refs:floatToFixed (Results 1 – 15 of 15) sorted by relevance

/external/fonttools/Tests/misc/
DfixedTools_test.py3 floatToFixed,
17 self.assertEqual(value, floatToFixed(fixedToFloat(value, bits), bits))
48 self.assertEqual(13107, floatToFixed(0.8, 14))
49 self.assertEqual(16384, floatToFixed(1.0, 14))
50 self.assertEqual(16384, floatToFixed(1, 14))
51 self.assertEqual(-16384, floatToFixed(-1.0, 14))
52 self.assertEqual(-16384, floatToFixed(-1, 14))
53 self.assertEqual(0, floatToFixed(0, 14))
/external/fonttools/Lib/fontTools/misc/
DfixedTools.py63 def floatToFixed(value, precisionBits): function
250 newValue = floatToFixed(value, 16)
Dsstruct.py50 from fontTools.misc.fixedTools import fixedToFloat as fi2fl, floatToFixed as fl2fi
DpsCharStrings.py7 fixedToFloat, floatToFixed, floatToFixedToStr, strToFixedToFloat,
220 value = floatToFixed(f, precisionBits=16)
/external/fonttools/Lib/fontTools/ttLib/tables/
D_a_v_a_r.py5 floatToFixed as fl2fi,
D_f_v_a_r.py5 floatToFixed as fl2fi,
D_k_e_r_n.py5 floatToFixed as fl2fi)
D_t_r_a_k.py5 floatToFixed as fl2fi,
DTupleVariation.py4 floatToFixed as fl2fi,
D_g_l_y_f.py13 floatToFixed as fl2fi,
DotConverters.py4 floatToFixed as fl2fi,
/external/fonttools/Tests/otlLib/
Dbuilder_test.py3 from fontTools.misc.fixedTools import floatToFixed
1406 negInf = floatToFixed(builder.AXIS_VALUE_NEGATIVE_INFINITY, 16)
1408 posInf = floatToFixed(builder.AXIS_VALUE_POSITIVE_INFINITY, 16)
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dtessellator.cpp364 FXP floatToFixed(const float& input) in floatToFixed() function
646 processedTessFactors.outsideTessFactor[edge] = floatToFixed(outsideTessFactor[edge]); in QuadProcessTessFactors()
650 processedTessFactors.insideTessFactor[axis] = floatToFixed(insideTessFactor[axis]); in QuadProcessTessFactors()
1150 processedTessFactors.outsideTessFactor[edge] = floatToFixed(outsideTessFactor[edge]); in TriProcessTessFactors()
1152 processedTessFactors.insideTessFactor = floatToFixed(insideTessFactor); in TriProcessTessFactors()
1481 FXP fxpTessFactor_U_LineDetail = floatToFixed(TessFactor_U_LineDetail); in IsoLineProcessTessFactors()
1493 FXP fxpTessFactor_V_LineDensity = floatToFixed(TessFactor_V_LineDensity); in IsoLineProcessTessFactors()
/external/mesa3d/src/gallium/auxiliary/tessellator/
Dtessellator.cpp378 FXP floatToFixed(const float& input) in floatToFixed() function
660 processedTessFactors.outsideTessFactor[edge] = floatToFixed(outsideTessFactor[edge]); in QuadProcessTessFactors()
664 processedTessFactors.insideTessFactor[axis] = floatToFixed(insideTessFactor[axis]); in QuadProcessTessFactors()
1164 processedTessFactors.outsideTessFactor[edge] = floatToFixed(outsideTessFactor[edge]); in TriProcessTessFactors()
1166 processedTessFactors.insideTessFactor = floatToFixed(insideTessFactor); in TriProcessTessFactors()
1495 FXP fxpTessFactor_U_LineDetail = floatToFixed(TessFactor_U_LineDetail); in IsoLineProcessTessFactors()
1507 FXP fxpTessFactor_V_LineDensity = floatToFixed(TessFactor_V_LineDensity); in IsoLineProcessTessFactors()
/external/fonttools/Lib/fontTools/varLib/
Dmutator.py6 from fontTools.misc.fixedTools import floatToFixedToFloat, floatToFixed
341 args.append(str(floatToFixed(loc[a.axisTag], 14)))