Merge 2ef86e7213
into 8854044561
This commit is contained in:
commit
4dd9017027
1 changed files with 1 additions and 1 deletions
|
@ -1630,7 +1630,7 @@ void dequantize_row_q8_0(const block_q8_0 * restrict x, float * restrict y, int6
|
|||
// ===================== Helper functions
|
||||
//
|
||||
static inline int nearest_int(float fval) {
|
||||
assert(fval <= 4194303.f);
|
||||
fval = fminf(fval, 4194303.f);
|
||||
float val = fval + 12582912.f;
|
||||
int i; memcpy(&i, &val, sizeof(int));
|
||||
return (i & 0x007fffff) - 0x00400000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue