Artifact be5290251f86ac3ff26a87e78682f5b3bde62cc9:
- File
operator/div-float-grey16.crimp
— part of check-in
[b0d870cef2]
at
2011-12-15 01:25:30
on branch infinite-plane
— Reorganized the binary ops, added result type to the generated file
names, and added a few combinations always generating float, for
operators like atan2 and hypot.
Updated all users of the binop_*.c files. Reworked pow to use the binop machinery.
Created special binary ops template for fpcomplex operations which are not element-wise (multiply, div), and updated the actual operators to use this. (user: andreask size: 512) [more...]
div_float_grey16 Tcl_Obj* imageAObj Tcl_Obj* imageBObj float scale float offset /* * Pixel- and channel-wise scaled and biased subtraction of two images. The * images have to have equal dimensions. Values out of range are wrapped into * it (modulo). */ #define BINOP(a,b) ((((b) == 0 ? WHITE : ((a) / (b))) / scale) + offset) #include "binop_float_grey16_float.c" #undef BINOP /* vim: set sts=4 sw=4 tw=80 et ft=c: */ /* * Local Variables: * mode: c * c-basic-offset: 4 * fill-column: 78 * End: */