You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I test the FSE-16bit version, I found some issue about the FSE_MAX_MEMORY_USAGE.
This is the code I tested.
#include<stdio.h>#include<stdlib.h>#include<stdint.h>#include"fseU16.h"intmain() {
// Change the FSEU16_MAX_SYMBOL_VALUE to 4095intn=10000, max=4095;
uint16_t*ip=malloc(sizeof(uint16_t) *n);
uint8_t*op=malloc(sizeof(uint8_t) *2*n);
for (inti=0; i<n; i++){
ip[i] =i % max;
}
size_tcompress=FSE_compressU16(op, 2*n, ip, n, max, 0);
printf("Code : %zd\n", compress);
free(ip);
free(op);
}
I include fseU16.h to use 16bit version, so I expected FSE_MAX_MEMORY_USAGE is 15.
However, FSEU16_MAX_MEMORY_USAGE is defined on this line at fseU16.c, so at this code FSE_MAX_MEMORY_USAGE is 14 by fse.h.
Before I make PR about this, I would like to ask if this is intended.
The text was updated successfully, but these errors were encountered:
When I test the FSE-16bit version, I found some issue about the
FSE_MAX_MEMORY_USAGE
.This is the code I tested.
I include
fseU16.h
to use 16bit version, so I expectedFSE_MAX_MEMORY_USAGE
is 15.However,
FSEU16_MAX_MEMORY_USAGE
is defined on this line atfseU16.c
, so at this codeFSE_MAX_MEMORY_USAGE
is 14 byfse.h
.Before I make PR about this, I would like to ask if this is intended.
The text was updated successfully, but these errors were encountered: