| 36 | template <typename T> |
| 37 | void scalar_quantize_optimized( |
| 38 | T* __restrict__ result, |
| 39 | const float* __restrict__ vec0, |
| 40 | size_t dim, |
| 41 | float lo, |
| 42 | float delta |
| 43 | ) { |
| 44 | scalar_quantize_normal(result, vec0, dim, lo, delta); |
| 45 | } |
| 46 | |
| 47 | template <> |
| 48 | inline void scalar_quantize_optimized<uint8_t>( |
| 49 | uint8_t* __restrict__ result, |
no test coverage detected