I need to then work out what is the size of the internal units within the 128-bit value, size in bytes,1 or 2, at compile time.
Templates and SIMD - examining types
Cecil Ward via Digitalmars-d-learn Wed, 22 Jul 2020 15:01:15 -0700
I am using SIMD and I have a case in a template where I am being
passed an argument that is a pointer to a 128-bit chunk of either
16 bytes or 8 uwords but I don’t know which? What’s the best way
to discover this at compile time - using the ‘is’ operator ? I
forget for the moment. It will only ever be either a ubyte16 or a
ushort8 (if those are the correct type names)? I’ll exclude other
possibilities with an if qualifier on the template (somehow).
- Templates and SIMD - examining types Cecil Ward via Digitalmars-d-learn
- Re: Templates and SIMD - examining... Dennis via Digitalmars-d-learn
- Re: Templates and SIMD - exami... Cecil Ward via Digitalmars-d-learn