By: Matt Sayler (sayler.delete@this.thewalrus.org), November 15, 2022 7:56 am
Room: Moderated Discussions
Michael S (already5chosen.delete@this.yahoo.com) on November 15, 2022 12:38 am wrote:
> Matt Sayler (sayler.delete@this.thewalrus.org) on November 14, 2022 11:17 pm wrote:
> > Michael S (already5chosen.delete@this.yahoo.com) on November 14, 2022 3:18 pm wrote:
> > > Do Apple's development tools on Apple Silicon (ARM) Mac support IEEE binary128 floating point type?
> > > I experimented with clang and clang++ on godbolt and it looks like under Linux it supports
> > > IEEE binary128 FP (spelled as __float128 both in C and in C++) only on x86-64 targets.
> > > But may be Apple's own version of clang is more advanced?
> >
> > Not on my Monterey M1Pro:
> >
> >
> >
>
> Thank you.
> And what it says about alternative spellings:
> For C++23
> include stdfloat
>
> std:::float128_t
No stdfloat on
Keep in mind, this is Monterey, not Ventura.
>
> For C (gcc, C2x): _Float128.
I only have the system-provided gcc wrappers (of clang), but using those (even with -mfloat128) gives
(I don't think there's a header for that?)
> Matt Sayler (sayler.delete@this.thewalrus.org) on November 14, 2022 11:17 pm wrote:
> > Michael S (already5chosen.delete@this.yahoo.com) on November 14, 2022 3:18 pm wrote:
> > > Do Apple's development tools on Apple Silicon (ARM) Mac support IEEE binary128 floating point type?
> > > I experimented with clang and clang++ on godbolt and it looks like under Linux it supports
> > > IEEE binary128 FP (spelled as __float128 both in C and in C++) only on x86-64 targets.
> > > But may be Apple's own version of clang is more advanced?
> >
> > Not on my Monterey M1Pro:
> >
> >
> > f128.c:3:2: error: __float128 is not supported on this target
> >
> > $ uname -a
> > Darwin chonky.local 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22
> > 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000 arm64
> >
> >
>
> Thank you.
> And what it says about alternative spellings:
> For C++23
> include stdfloat
>
> std:::float128_t
No stdfloat on
clang++ --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Keep in mind, this is Monterey, not Ventura.
>
> For C (gcc, C2x): _Float128.
I only have the system-provided gcc wrappers (of clang), but using those (even with -mfloat128) gives
f128_g.c:3:2: error: use of undeclared identifier '_Float128'
(I don't think there's a header for that?)
Topic | Posted By | Date |
---|---|---|
IEEE binary128 support on ARM Macs ? | Michael S | 2022/11/14 04:18 PM |
IEEE binary128 support on ARM Macs ? | Matt Sayler | 2022/11/15 12:17 AM |
IEEE binary128 support on ARM Macs ? | Michael S | 2022/11/15 01:38 AM |
IEEE binary128 support on ARM Macs ? | Matt Sayler | 2022/11/15 07:56 AM |