Searched refs:upShift (Results 1 – 2 of 2) sorted by relevance
/external/skia/src/core/ |
D | SkEdge.cpp | 298 static inline int SkFDot6UpShift(SkFDot6 x, int upShift) { in SkFDot6UpShift() argument 299 SkASSERT((x << upShift >> upShift) == x); in SkFDot6UpShift() 300 return x << upShift; in SkFDot6UpShift() 376 int upShift = 6; // largest safe value in setCubic() local 377 int downShift = shift + upShift - 10; in setCubic() 380 upShift = 10 - shift; in setCubic() 388 SkFixed B = SkFDot6UpShift(3 * (x1 - x0), upShift); in setCubic() 389 SkFixed C = SkFDot6UpShift(3 * (x0 - x1 - x1 + x2), upShift); in setCubic() 390 SkFixed D = SkFDot6UpShift(x3 + 3 * (x1 - x2) - x0, upShift); in setCubic() 397 B = SkFDot6UpShift(3 * (y1 - y0), upShift); in setCubic() [all …]
|
/external/chromium_org/third_party/skia/src/core/ |
D | SkEdge.cpp | 314 static inline int SkFDot6UpShift(SkFDot6 x, int upShift) { in SkFDot6UpShift() argument 315 SkASSERT((x << upShift >> upShift) == x); in SkFDot6UpShift() 316 return x << upShift; in SkFDot6UpShift() 403 int upShift = 6; // largest safe value in setCubic() local 404 int downShift = shift + upShift - 10; in setCubic() 407 upShift = 10 - shift; in setCubic() 415 SkFixed B = SkFDot6UpShift(3 * (x1 - x0), upShift); in setCubic() 416 SkFixed C = SkFDot6UpShift(3 * (x0 - x1 - x1 + x2), upShift); in setCubic() 417 SkFixed D = SkFDot6UpShift(x3 + 3 * (x1 - x2) - x0, upShift); in setCubic() 424 B = SkFDot6UpShift(3 * (y1 - y0), upShift); in setCubic() [all …]
|