summaryrefslogtreecommitdiffstats
path: root/baseline/source/anagram/anagram_stdlib.h
blob: 536fcc3dfabdef71f3eee95f1682610ed1f1e072 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*

  This header is part of the TACLeBench benchmark suite.
  Version 2.0

  Name: anagram_stdlib.h

  Author: Raymond Chen

  Function: This header contains some C standard library functions used by anagram.

  Source: unknown

  Original name: anagram

  Changes: See ChangeLog.txt

  License: See anagram.c

*/

#ifndef ANAGRAM_STDLIB_H
#define ANAGRAM_STDLIB_H

void *anagram_malloc( unsigned int numberOfBytes );

void anagram_free_all( void );

void anagram_qsort( void *va, unsigned long n, unsigned long es );

#endif
m">/* ============= SECONDARY (derived) LIMITATIONS ============= */ /* This number determines the precision of the stored binsizes: stored coefficients are accurate to +/- (1/SCALE_FACTOR). On the other hand, this number also will limit the maximum amount of compression. It should not be more than [2^(8*sizeof(BinValueType))]/256. */ #define SCALE_FACTOR 128 /* This number must be consistent with the filters that are hardwired into epic.c */ #define FILTER_SIZE 15 /* Log (base 2) of MAX_IMAGE_DIM^2: (bits required to store the dimensions) */ #define LOG_MAX_IMAGE_SIZE 32 /* The type of the quantized images. Must be SIGNED, and capable of holding values in the range [-MAX_BINS, MAX_BINS] */ typedef short BinIndexType; /* The type used to represent the binsizes. Should be UNSIGNED. If this is changed, be sure to change the places in epic.c and unepic.c where binsizes are written or read from files. */ typedef unsigned short BinValueType; /* Number of possible values for a symbol. This must be at least (MAX_BINS * 4) (one sign bit, one tag bit)... */ #define NUM_SYMBOL_VALUES 65536 /* Function prototypes. */ void epic_build_pyr( float *image, int x_size, int y_size, int num_levels, float *lo_filter, float *hi_filter, int filter_size ); void epic_build_level( float *image, int level_x_size, int level_y_size, float *lo_filter, float *hi_filter, int filter_size, float *result_block ); void epic_internal_transpose( register float *mat, int rows, register int cols ); void epic_reflect1( register float *filt, register int x_dim, int y_dim, int x_pos, int y_pos, register float *result, int f_or_e ); void epic_internal_filter( register float *image, register int x_dim, register int y_dim, float *filt, register float *temp, register int x_fdim, register int y_fdim, int xgrid_start, int xgrid_step, int ygrid_start, int ygrid_step, register float *result ); void epic_reflect1( float *filt, int x_dim, int y_dim, int x_pos, int y_pos, float *result, int f_or_e ); #endif // __EPIC_H_