[cxx-abi-dev] Mangling of ISO/IEC TR 18037 fixed-point types?

David Vandevoorde daveed at edg.com
Fri Dec 5 20:49:11 UTC 2008


On Dec 5, 2008, at 2:36 PM, Jason Merrill wrote:

> David Vandevoorde wrote:
>> How about:
>>    DF [a|f] <kind>
>> with "a" for _Accum types, and "f" for _Fract types, and <kind>  
>> imitating the integer types:
>>    <kind> = s for "signed short"
>>             t for "unsigned short"
>>             i for "signed"
>>             j for "unsigned"
>>             l for "long"
>>             m for "unsigned long"
>
> Don't we need something for the _Sat variants too?  Maybe follow the  
> kind with [s|n] for _Sat or non-_Sat?

Ah yes, I forgot.  Your proposal sounds good.

In the alternative proposal, the [s|n] could replace the final  
underscore.

>
>
>> Alternatively, if we think a single platform may have different  
>> precision choices for these types
>
> I don't have a sense of how likely this is.

I don't really either.  But DSP-like additions to instruction sets  
seem to evolve a lot faster than their host base set, which caused me  
to think it might be worth anticipating future incompatibilities in  
this area.

	Daveed




More information about the cxx-abi-dev mailing list