Lines Matching refs:SkNf_round
272 SI SkNi SkNf_round(const SkNf& x, const SkNf& scale) { in SkNf_round() function
521 store(tail, SkNx_cast<uint8_t>(SkNf_round(255.0f, a)), ptr); in STAGE_CTX()
537 store(tail, SkNx_cast<uint16_t>( SkNf_round(r, SK_R16_MASK) << SK_R16_SHIFT in STAGE_CTX()
538 | SkNf_round(g, SK_G16_MASK) << SK_G16_SHIFT in STAGE_CTX()
539 | SkNf_round(b, SK_B16_MASK) << SK_B16_SHIFT), ptr); in STAGE_CTX()
548 store(tail, SkNx_cast<uint16_t>( SkNf_round(r, 0xF) << SK_R4444_SHIFT in STAGE_CTX()
549 | SkNf_round(g, 0xF) << SK_G4444_SHIFT in STAGE_CTX()
550 | SkNf_round(b, 0xF) << SK_B4444_SHIFT in STAGE_CTX()
551 | SkNf_round(a, 0xF) << SK_A4444_SHIFT), ptr); in STAGE_CTX()
1140 r = SkNf_from_byte(gather(tail, tables->r, SkNf_round(255.0f, r))); in STAGE_CTX()
1141 g = SkNf_from_byte(gather(tail, tables->g, SkNf_round(255.0f, g))); in STAGE_CTX()
1142 b = SkNf_from_byte(gather(tail, tables->b, SkNf_round(255.0f, b))); in STAGE_CTX()
1143 a = SkNf_from_byte(gather(tail, tables->a, SkNf_round(255.0f, a))); in STAGE_CTX()
1151 r = SkNf_from_byte(gather(tail, tables->r, SkNf_round(scale, r))); in STAGE_CTX()
1152 g = SkNf_from_byte(gather(tail, tables->g, SkNf_round(scale, g))); in STAGE_CTX()
1153 b = SkNf_from_byte(gather(tail, tables->b, SkNf_round(scale, b))); in STAGE_CTX()