Home
last modified time | relevance | path

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

/external/swiftshader/src/Renderer/
DSurface.cpp79 *(char*)element = scast<8>(color.r); in write()
85 *(short*)element = scast<16>(color.r); in write()
140 *(unsigned int*)element = (static_cast<unsigned int>(scast<8>(color.a)) << 24) | in write()
141 (static_cast<unsigned int>(scast<8>(color.b)) << 16) | in write()
142 (static_cast<unsigned int>(scast<8>(color.g)) << 8) | in write()
143 (static_cast<unsigned int>(scast<8>(color.r)) << 0); in write()
160 (static_cast<unsigned int>(scast<8>(color.b)) << 16) | in write()
161 (static_cast<unsigned int>(scast<8>(color.g)) << 8) | in write()
162 (static_cast<unsigned int>(scast<8>(color.r)) << 0); in write()
180 *(unsigned short*)element = (static_cast<unsigned short>(scast<8>(color.g)) << 8) | in write()
[all …]
/external/swiftshader/src/Common/
DMath.hpp293 inline int scast(float x) in scast() function