Searched refs:to_fixed (Results 1 – 6 of 6) sorted by relevance
135 SI U16 to_fixed(F f) { return cast<U16>(f + 0.5f); } in to_fixed() function137 SI U32 to_fixed(F f) { return (U32)cast<I32>(f + 0.5f); } in to_fixed() function1248 store(dst + 1*i, cast<U8>(to_fixed(a * 255))); in exec_ops()1253 store(dst + 1*i, cast<U8>(to_fixed(g * 255))); in exec_ops()1257 store<U16>(dst + 2*i, cast<U16>(to_fixed(r * 15) << 12) in exec_ops()1258 | cast<U16>(to_fixed(g * 15) << 8) in exec_ops()1259 | cast<U16>(to_fixed(b * 15) << 4) in exec_ops()1260 | cast<U16>(to_fixed(a * 15) << 0)); in exec_ops()1264 store<U16>(dst + 2*i, cast<U16>(to_fixed(r * 31) << 0 ) in exec_ops()1265 | cast<U16>(to_fixed(g * 63) << 5 ) in exec_ops()[all …]
108 #define cid_parser_to_fixed( p, t ) (p)->root.funcs.to_fixed( &(p)->root, t )
100 #define T1_ToFixed( p, t ) (p)->root.funcs.to_fixed( &(p)->root, t )
227 int32_t to_fixed () const { return value * 65536.0; } in to_fixed() function
90 int32_t v = n.to_fixed (); in encode_num()
391 (*to_fixed)( PS_Parser parser, member