![]() |
![]() |
![]() |
Schroedinger Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
typedef schro_bool; #define SCHRO_GET (ptr, offset, type) #define OFFSET (ptr, offset) #define SCHRO_INTERNAL #define ARRAY_SIZE (x) #define MIN (a, b) #define MAX (a, b) #define CLAMP (x, a, b) #define DIVIDE_ROUND_UP (a, b) #define ROUND_UP_SHIFT (x, y) #define ROUND_UP_POW2 (x, y) #define ROUND_UP_2 (x) #define ROUND_UP_4 (x) #define ROUND_UP_8 (x) #define ROUND_UP_64 (x) #define ROUND_SHIFT (x, y) #define NEED_CLAMP (x, y, a, b) #define schro_divide (a, b) double schro_utils_entropy (double a
,double total
); int schro_utils_multiplier_to_quant_index (double x
); double schro_utils_probability_to_entropy (double x
); void schro_utils_reduce_fraction (int *n
,int *d
); int schro_dequantise (int q
,int quant_factor
,int quant_offset
); int schro_quantise (int value
,int quant_factor
,int quant_offset
); void schro_dequantise_s16 (int16_t *dest
,int16_t *src
,int quant_factor
,int quant_offset
,int n
); void schro_quantise_s16 (int16_t *dest
,int16_t *src
,int quant_factor
,int quant_offset
,int n
); void * schro_malloc (int size
); void * schro_malloc0 (int size
); void * schro_realloc (void *ptr
,int size
); void schro_free (void *ptr
); double schro_utils_get_time (void
); int muldiv64 (int a
,int b
,int c
);
#define SCHRO_GET(ptr, offset, type) (*(type *)((uint8_t *)(ptr) + (offset)) )
|
|
|
|
|
int schro_utils_multiplier_to_quant_index
(double x
);
|
|
Returns : |
double schro_utils_probability_to_entropy (double x
);
|
|
Returns : |
int schro_dequantise (int q
,int quant_factor
,int quant_offset
);
|
|
|
|
|
|
Returns : |
int schro_quantise (int value
,int quant_factor
,int quant_offset
);
|
|
|
|
|
|
Returns : |
void schro_dequantise_s16 (int16_t *dest
,int16_t *src
,int quant_factor
,int quant_offset
,int n
);
|
|
|
|
|
|
|
|
|
void schro_quantise_s16 (int16_t *dest
,int16_t *src
,int quant_factor
,int quant_offset
,int n
);
|
|
|
|
|
|
|
|
|