Searched refs:floatToFixed (Results 1 – 15 of 15) sorted by relevance
/external/fonttools/Tests/misc/ |
D | fixedTools_test.py | 3 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/ |
D | fixedTools.py | 63 def floatToFixed(value, precisionBits): function 250 newValue = floatToFixed(value, 16)
|
D | sstruct.py | 50 from fontTools.misc.fixedTools import fixedToFloat as fi2fl, floatToFixed as fl2fi
|
D | psCharStrings.py | 7 fixedToFloat, floatToFixed, floatToFixedToStr, strToFixedToFloat, 220 value = floatToFixed(f, precisionBits=16)
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _a_v_a_r.py | 5 floatToFixed as fl2fi,
|
D | _f_v_a_r.py | 5 floatToFixed as fl2fi,
|
D | _k_e_r_n.py | 5 floatToFixed as fl2fi)
|
D | _t_r_a_k.py | 5 floatToFixed as fl2fi,
|
D | TupleVariation.py | 4 floatToFixed as fl2fi,
|
D | _g_l_y_f.py | 13 floatToFixed as fl2fi,
|
D | otConverters.py | 4 floatToFixed as fl2fi,
|
/external/fonttools/Tests/otlLib/ |
D | builder_test.py | 3 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/ |
D | tessellator.cpp | 364 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/ |
D | tessellator.cpp | 378 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/ |
D | mutator.py | 6 from fontTools.misc.fixedTools import floatToFixedToFloat, floatToFixed 341 args.append(str(floatToFixed(loc[a.axisTag], 14)))
|