On PBXB64 the long double type is a 64-bit IEEE-754 floating-point type with the same size, alignment, and calling convention as double. This provides full source compatibility with standard C code while reusing the existing SSE float backend.
On PBXB64 the long double type is a 64-bit IEEE-754 floating-point type with the same size, alignment, and calling convention as double. This provides full source compatibility with standard C code while reusing the existing SSE float backend.
| Property | Value |
|---|---|
| Size | 8 bytes |
| Alignment | 8 bytes |
| Backend | SSE2 double |
| Literal suffix | L or l |
sizeof(long double) equals sizeof(double).long double and the associated math.h long-double functions (sinl, cosl, etc.) are not available.#include <stddef.h>
long double area(long double r) {
long double pi = 3.14159265358979323846L;
return pi * r * r;
}
int main(void) {
long double a = area(2.0L);
return (a == 12.566370614359172L) ? 0 : 1;
}