Fix signed integer overflow in MakeKernelParams8bit Compute `prod_zp_depth` via `uint32_t` casts so the intended wraparound is well-defined rather than UB. Overflow checks on the surrounding offset/pointer computations are left untouched. See chromium issue: https://issues.chromium.org/issues/526978330 and https://issues.chromium.org/issues/520870343 Closes https://github.com/google/ruy/pull/373 COPYBARA_INTEGRATE_REVIEW=https://github.com/google/ruy/pull/373 from wangw-1991:fix_integer_overflow 781542ce3bf209d415e19d73a65e89bf073f3617 PiperOrigin-RevId: 952143874
This is not an officially supported Google product.
ruy is a matrix multiplication library. Its focus is to cover the matrix multiplication needs of neural network inference engines. Its initial user has been TensorFlow Lite, where it is used by default on the ARM CPU architecture.
ruy supports both floating-point and 8bit-integer-quantized matrices.
ruy is designed to achieve high performance not just on very large sizes, as is the focus of many established libraries, but on whatever are the actual sizes and shapes of matrices most critical in current TensorFlow Lite applications. This often means quite small sizes, e.g. 100x100 or even 50x50, and all sorts of rectangular shapes. It's not as fast as completely specialized code for each shape, but it aims to offer a good compromise of speed across all shapes and a small binary size.
Some documentation will eventually be available in the doc/ directory, see doc/README.md.