Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*

Quadruple Precision Floating-Point

idkcomp
Beginner
577 Views

I have been working a project using Microsoft Visual Studio for 14 years now.  I have come to a point where I need quadruple precision (128-bit) floating point to get the right answers.  The Microsoft C++ compiler does not support this.  I have seen remarks that the Intel C++ compiler does and integrates well into Visual Studio.  Does the Intel C++ compiler indeed support 128-bit floating point arithmetic?

 

0 Kudos
1 Reply
Viet_H_Intel
Moderator
488 Views

Is this what you are looking for?

#include<stdio.h>

_Quad f (_Quad x, _Quad y, _Quad z) {

return x * y + z;

}

> icx t.c -c /Qoption,cpp,--extended_float_types
Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2024.0.2 Build 20231213
Copyright (C) 1985-2023 Intel Corporation. All rights reserved.

>

 

 

0 Kudos
Reply