blend.ispc:21:17: Performance Warning: Conversion from unsigned int to float is slow. Use "int" if possible
float alpha = glyph[alphaChan] / 255.0f;
^^^^^^^^^^^^^^^^
blend.ispc:22:41: Performance Warning: Gather required to load value.
dst[i] = float_to_srgb8((1 - alpha) * sRGBToLinear[dst[i]] + alpha * color[i & 3]);
^^^^^^^^^^^^^^^^^^^^
blend.ispc:22:72: Performance Warning: Gather required to load value.
dst[i] = float_to_srgb8((1 - alpha) * sRGBToLinear[dst[i]] + alpha * color[i & 3]);
^^^^^^^^^^^^
--
You received this message because you are subscribed to the Google Groups "Intel SPMD Program Compiler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ispc-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ispc-users/9018ddcd-16a2-4f41-94df-5777319d0b23%40googlegroups.com.
The lookup table will cause ispc to emit gather instructions, because the index of the lookup is varying AND not contiguous.