Home
last modified time | relevance | path

Searched refs:RoundInt (Results 1 – 16 of 16) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DBlitter.cpp433 *Pointer<Byte>(element) = Byte(RoundInt(Float(c.x))); in write()
436 if(writeA) { *Pointer<Byte>(element) = Byte(RoundInt(Float(c.w))); } in write()
446 if(writeB) { *Pointer<Byte>(element + 0) = Byte(RoundInt(Float(c.z))); } in write()
447 if(writeG) { *Pointer<Byte>(element + 1) = Byte(RoundInt(Float(c.y))); } in write()
448 if(writeR) { *Pointer<Byte>(element + 2) = Byte(RoundInt(Float(c.x))); } in write()
449 if(writeA) { *Pointer<Byte>(element + 3) = Byte(RoundInt(Float(c.w))); } in write()
461 if(writeR) { *Pointer<Byte>(element + 0) = Byte(RoundInt(Float(c.x))); } in write()
462 if(writeG) { *Pointer<Byte>(element + 1) = Byte(RoundInt(Float(c.y))); } in write()
463 if(writeB) { *Pointer<Byte>(element + 2) = Byte(RoundInt(Float(c.z))); } in write()
464 if(writeA) { *Pointer<Byte>(element + 3) = Byte(RoundInt(Float(c.w))); } in write()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Device/
DBlitter.cpp559 *Pointer<Byte>(element) = (Byte(RoundInt(Float(c.y))) & Byte(0xF)) | in write()
565 (Byte(RoundInt(Float(c.x))) << Byte(4)); in write()
569 *Pointer<Byte>(element) = (Byte(RoundInt(Float(c.y))) & Byte(0xF)) | in write()
570 (Byte(RoundInt(Float(c.x))) << Byte(4)); in write()
577 *Pointer<UShort>(element) = UShort(PackFields(RoundInt(c) & Int4(0xF), { 12, 8, 4, 0 })); in write()
587 … (UShort(PackFields(RoundInt(c) & Int4(0xF), { 12, 8, 4, 0 })) & UShort(mask)); in write()
593 *Pointer<UShort>(element) = UShort(PackFields(RoundInt(c) & Int4(0xF), { 4, 8, 12, 0 })); in write()
603 … (UShort(PackFields(RoundInt(c) & Int4(0xF), { 4, 8, 12, 0 })) & UShort(mask)); in write()
609 *Pointer<UShort>(element) = UShort(PackFields(RoundInt(c) & Int4(0xF), { 8, 4, 0, 12 })); in write()
619 … (UShort(PackFields(RoundInt(c) & Int4(0xF), { 8, 4, 0, 12 })) & UShort(mask)); in write()
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Shader/
DSetupRoutine.cpp158 …X[i] = RoundInt(*Pointer<Float>(data + OFFSET(DrawData,X0x16)) + v.x * rhw * *Pointer<Float>(data … in generate()
159 …Y[i] = RoundInt(*Pointer<Float>(data + OFFSET(DrawData,Y0x16)) + v.y * rhw * *Pointer<Float>(data … in generate()
DVertexRoutine.cpp728 …v.x = As<Float4>(RoundInt(*Pointer<Float4>(data + OFFSET(DrawData,X0x16)) + v.x * rhw * *Pointer<F… in writeCache()
729 …v.y = As<Float4>(RoundInt(*Pointer<Float4>(data + OFFSET(DrawData,Y0x16)) + v.y * rhw * *Pointer<F… in writeCache()
DShaderCore.cpp127 Int4 i = RoundInt(x0 - Float4(0.5f)); in exponential2()
675 dst.x = As<Float4>(RoundInt(src.x)); in mov()
676 dst.y = As<Float4>(RoundInt(src.y)); in mov()
677 dst.z = As<Float4>(RoundInt(src.z)); in mov()
678 dst.w = As<Float4>(RoundInt(src.w)); in mov()
DSamplerCore.cpp678 Int a = RoundInt(anisotropy); in sampleAniso()
1150 Int a = RoundInt(anisotropy); in sampleFloatAniso()
2247 ilod = RoundInt(lod); in selectMipmap()
2304 …return Min(Max(Short4(RoundInt(uw)), Short4(0)), *Pointer<Short4>(mipmap + OFFSET(Mipmap, depth)) … in address()
2354 xyz0 = Min(Max(RoundInt(uvw), Int4(0)), maxXYZ); in address()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DOptimalIntrinsics.cpp205 Int4 i = RoundInt(x0 - Float4(0.5f)); in Exp2()
DLLVMReactor.cpp2405 RValue<Int> RoundInt(RValue<Float> cast) in RoundInt() function
2740 RValue<Int4> RoundInt(RValue<Float4> cast) in RoundInt() function
3313 return Float4(RoundInt(x)); in Round()
DSubzeroReactor.cpp3233 RValue<Int> RoundInt(RValue<Float> cast) in RoundInt() function
3585 RValue<Int4> RoundInt(RValue<Float4> cast) in RoundInt() function
4147 return Float4(RoundInt(x)); in Round()
DReactor.hpp1202 RValue<Int> RoundInt(RValue<Float> cast);
2014 RValue<Int4> RoundInt(RValue<Float4> cast);
DReactor.cpp1962 RValue<Int4> int4 = RoundInt(cast); in RoundShort4()
/third_party/skia/third_party/externals/swiftshader/src/Pipeline/
DSetupRoutine.cpp139 …X[i] = RoundInt(*Pointer<Float>(data + OFFSET(DrawData, X0xF)) + v.x * rhw * *Pointer<Float>(data … in generate()
140 …Y[i] = RoundInt(*Pointer<Float>(data + OFFSET(DrawData, Y0xF)) + v.y * rhw * *Pointer<Float>(data … in generate()
DSamplerCore.cpp363 Int N = RoundInt(anisotropy); in sampleAniso()
835 Int N = RoundInt(anisotropy); in sampleFloatAniso()
2153 ilod = RoundInt(lod); in selectMipmap()
2231 return Short4(Min(Max(RoundInt(a), Int4(0)), layers - Int4(1))); in computeLayerIndex()
2489 return Min(Max(RoundInt(a), Int4(0)), maxLayer); in computeLayerIndex()
DPixelRoutine.cpp2560 color.w = As<Float4>(RoundInt(color.w * Float4(0xFFFF))); in writeColor()
2562 color.z = As<Float4>(RoundInt(color.z * Float4(0xFFFF))); in writeColor()
2566 color.y = As<Float4>(RoundInt(color.y * Float4(0xFFFF))); in writeColor()
2570 color.x = As<Float4>(RoundInt(color.x * Float4(0xFFFF))); in writeColor()
DShaderCore.cpp165 Int4 i = RoundInt(x0 - Float4(0.5f)); in exponential2()
/third_party/skia/third_party/externals/swiftshader/tests/ReactorUnitTests/
DReactorUnitTests.cpp1342 TEST(ReactorUnitTests, RoundInt) in TEST() argument
1348 *Pointer<Int4>(out + 0) = RoundInt(Float4(3.1f, 3.6f, -3.1f, -3.6f)); in TEST()