Commit 9c4bcc61 authored by Raymond Toy's avatar Raymond Toy

Move ieee754_rem_pio2 to os-common.c. Remove the version in from

x86-arch.c and ppc-arch.c
parent 5b9111e9
......@@ -542,3 +542,19 @@ os_guard_control_stack(int zone, int guard)
}
#endif /* not RED_ZONE_HIT */
/* Simple interface to __ieee754_rem_pio2 */
int ieee754_rem_pio2(double x, double *y0, double *y1)
{
extern int __ieee754_rem_pio2(double x, double *y);
double y[2];
int n;
n = __ieee754_rem_pio2(x, y);
*y0 = y[0];
*y1 = y[1];
return n;
}
......@@ -723,17 +723,3 @@ arch_linkage_entry(unsigned long retaddr)
/ LinkageEntrySize;
}
#endif
int ieee754_rem_pio2(double x, double *y0, double *y1)
{
extern int __ieee754_rem_pio2(double x, double *y);
double y[2];
int n;
n = __ieee754_rem_pio2(x, y);
*y0 = y[0];
*y1 = y[1];
return n;
}
......@@ -521,19 +521,3 @@ arch_linkage_entry(unsigned long retaddr)
return ((retaddr - 5) - FOREIGN_LINKAGE_SPACE_START) / LinkageEntrySize;
}
#endif /* LINKAGE_TABLE */
int ieee754_rem_pio2(double x, double *y0, double *y1)
{
extern int __ieee754_rem_pio2(double x, double *y);
double y[2];
int n;
n = __ieee754_rem_pio2(x, y);
*y0 = y[0];
*y1 = y[1];
return n;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment