On Mon, 22 Feb 2016, Nathan Sidwell wrote: > On 02/22/16 15:25, Alexander Monakov wrote: > > > Template strings have an embedded nul character at the position where ORIG > > goes, so template_2 is set to point at the position following the embedded > > nul > > in template_1. Offset of the embedded nul is the same in each template > > string, so it doesn't matter which goes into the argument of strlen (but > > supplying template64 or template32 instead of template_1 allows easier > > folding). > > ew, that's disgusting!
So it'll blend in perfectly well with the rest of the ptx stuff in gcc, right? Sorry, could not resist. Please understand that I considered other approaches, and saw none that would appear more beautiful/less ugly. I'd be happy to add some comments to the code, similar to my explanatory text above, if that's the problem. If not, and you actually imply that the code is not good (rather than delivering a friendly jab) please give me some specific feedback to act on. Thanks. Alexander