diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-09-29 03:18:57 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-09-29 03:18:57 +0000 |
commit | e227331a6b5626e100705fcff3269fd8479ea988 (patch) | |
tree | fd51fff8ec8dc90185ce5ae457805a0f25a0ded6 /generator/pamtris/utils.h | |
parent | cdd64d00181d5e5a6c8142cdb59f2215014ca82d (diff) | |
download | netpbm-mirror-e227331a6b5626e100705fcff3269fd8479ea988.tar.gz netpbm-mirror-e227331a6b5626e100705fcff3269fd8479ea988.tar.xz netpbm-mirror-e227331a6b5626e100705fcff3269fd8479ea988.zip |
Promote current Development release as Advanced
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3352 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'generator/pamtris/utils.h')
-rw-r--r-- | generator/pamtris/utils.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/generator/pamtris/utils.h b/generator/pamtris/utils.h new file mode 100644 index 00000000..3b7cfbe4 --- /dev/null +++ b/generator/pamtris/utils.h @@ -0,0 +1,41 @@ +#ifndef UTIL_H_INCLUDED +#define UTIL_H_INCLUDED + +#include "fract.h" + +void +gen_steps(const int32_t * const begin, + const int32_t * const end, + fract * const out, + uint8_t const elements, + int32_t const divisor); + +void +step_up(fract * const vars, + const fract * const steps, + uint8_t const elements, + int32_t const divisor); + +void +multi_step_up(fract * const vars, + const fract * const steps, + uint8_t const elements, + int32_t const times, + int32_t const divisor); + +void +fract_to_int32_array(const fract * const in, + int32_t * const out, + uint8_t const elements); + +void +int32_to_fract_array(const int32_t * const in, + fract * const out, + uint8_t const elements); + +void +sort3(uint8_t * const index_array, + const int32_t * const y_array, + const int32_t * const x_array); + +#endif |