mirror of
https://github.com/partic2/libffi
synced 2026-11-10 10:07:19 +00:00
Making the change to correct the comment when SUN (#521)
and GCC are used together
This commit is contained in:
committed by
Anthony Green
parent
55c22092dc
commit
09f9d85611
@@ -33,19 +33,20 @@ int main (void)
|
|||||||
|
|
||||||
f = 3.14159;
|
f = 3.14159;
|
||||||
|
|
||||||
#if 1
|
#if defined(__sun) && defined(__GNUC__)
|
||||||
/* This is ifdef'd out for now. long double support under SunOS/gcc
|
/* long double support under SunOS/gcc is pretty much non-existent.
|
||||||
is pretty much non-existent. You'll get the odd bus error in library
|
You'll get the odd bus error in library routines like printf() */
|
||||||
routines like printf(). */
|
#else
|
||||||
printf ("%Lf\n", ldblit(f));
|
printf ("%Lf\n", ldblit(f));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ld = 666;
|
ld = 666;
|
||||||
ffi_call(&cif, FFI_FN(ldblit), &ld, values);
|
ffi_call(&cif, FFI_FN(ldblit), &ld, values);
|
||||||
|
|
||||||
#if 1
|
#if defined(__sun) && defined(__GNUC__)
|
||||||
/* This is ifdef'd out for now. long double support under SunOS/gcc
|
/* long double support under SunOS/gcc is pretty much non-existent.
|
||||||
is pretty much non-existent. You'll get the odd bus error in library
|
You'll get the odd bus error in library routines like printf() */
|
||||||
routines like printf(). */
|
#else
|
||||||
printf ("%Lf, %Lf, %Lf, %Lf\n", ld, ldblit(f), ld - ldblit(f), LDBL_EPSILON);
|
printf ("%Lf, %Lf, %Lf, %Lf\n", ld, ldblit(f), ld - ldblit(f), LDBL_EPSILON);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user