[Issue 22345] New: [internals] Make it easy to pre-define target-specific native types.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 29 14:19:08 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22345

          Issue ID: 22345
           Summary: [internals] Make it easy to pre-define target-specific
                    native types.
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

For example:
- __fp16 (half-float on ARM)
- __bf16 (brain-float on ARM/ARM64)
- __float80 (80-bit real on x86)
- __float128 (128-bit real on x86)
- __ibm128 (128-bit IBM float on PPC)
- __ieee128 (128-bit IEEE float on PPC)

Other C11 extension types could be considered too:
- _FloatN and _FloatNx
- _Decimal
- _Fract
- _Accum
- _Sat

As well as an internal va_list type.

These type extensions would be made available using the isSpecial enum logic
that is already present in the dmd front-end, which lets the front-end know
just to ignore it.

--


More information about the Digitalmars-d-bugs mailing list