it's wrong for sufficiently perverse inputs, and clip_uint8 is faster anyway.
Attach a file by drag & drop or click to upload