diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-01-22 18:52:20 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-01-22 18:52:20 +0000 |
commit | aded7e90e31700d177d559d0930099753fd38e06 (patch) | |
tree | 6e45589734ef3ea4357d9796eca49fcec316055f /analyzer/pgmtexture.c | |
parent | ad852ddf24525a96c3b329a7ac223ed1b34a5eaa (diff) | |
download | netpbm-mirror-aded7e90e31700d177d559d0930099753fd38e06.tar.gz netpbm-mirror-aded7e90e31700d177d559d0930099753fd38e06.tar.xz netpbm-mirror-aded7e90e31700d177d559d0930099753fd38e06.zip |
add comment
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4252 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'analyzer/pgmtexture.c')
-rw-r--r-- | analyzer/pgmtexture.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/analyzer/pgmtexture.c b/analyzer/pgmtexture.c index c69643e7..72f660f1 100644 --- a/analyzer/pgmtexture.c +++ b/analyzer/pgmtexture.c @@ -49,7 +49,16 @@ static bool const sortit = FALSE; static float * vector(unsigned int const nl, unsigned int const nh) { +/*---------------------------------------------------------------------------- + Allocate a float vector with range [nl..nh] + + We do some seedy C here, subtracting an arbitrary integer from a pointer and + calling the result a pointer. It normally works because the only way we'll + use that pointer is by adding that same integer or something greater to it. + The point of this is not to allocate memory for vector elements that will + never be referenced (component < nl). +-----------------------------------------------------------------------------*/ float * v; assert(nh >= nl); |