MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / stbi__blinn_8x8

Function stbi__blinn_8x8

include/stb/stb_image.h:3859–3863  ·  view source on GitHub ↗

fast 0..255 * 0..255 => 0..255 rounded multiplication

Source from the content-addressed store, hash-verified

3857
3858// fast 0..255 * 0..255 => 0..255 rounded multiplication
3859static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y)
3860{
3861 unsigned int t = x*y + 128;
3862 return (stbi_uc) ((t + (t >>8)) >> 8);
3863}
3864
3865static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp)
3866{

Callers 1

load_jpeg_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected