David Mertens
2013-10-15 20:47:47 UTC
Hey everyone -
I think we would make PDL::PP code potentially more legible by using the C
preprocessor instead of custom string handling. I am thinking particularly
about typeloops. Suppose that the threading engine set up the following
#defines in each type loop.
- When entering byte, #define PDL_BYTE_TYPELOOP 1 and #define
PDL_INTEGER_TYPELOOP 1
- When entering short, #define PDL_SHORT_TYPELOOP 1 and #define
PDL_INTEGER_TYPELOOP 1
- When entering long, #define PDL_LONG_TYPELOOP 1
I think we would make PDL::PP code potentially more legible by using the C
preprocessor instead of custom string handling. I am thinking particularly
about typeloops. Suppose that the threading engine set up the following
#defines in each type loop.
- When entering byte, #define PDL_BYTE_TYPELOOP 1 and #define
PDL_INTEGER_TYPELOOP 1
- When entering short, #define PDL_SHORT_TYPELOOP 1 and #define
PDL_INTEGER_TYPELOOP 1
- When entering long, #define PDL_LONG_TYPELOOP 1
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." -- Brian Kernighan
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." -- Brian Kernighan