Skip to content
Snippets Groups Projects
Commit 9c4bcc61 authored by Raymond Toy's avatar Raymond Toy
Browse files

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

x86-arch.c and ppc-arch.c
parent 5b9111e9
No related branches found
No related tags found
No related merge requests found
...@@ -542,3 +542,19 @@ os_guard_control_stack(int zone, int guard) ...@@ -542,3 +542,19 @@ os_guard_control_stack(int zone, int guard)
} }
#endif /* not RED_ZONE_HIT */ #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) ...@@ -723,17 +723,3 @@ arch_linkage_entry(unsigned long retaddr)
/ LinkageEntrySize; / LinkageEntrySize;
} }
#endif #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) ...@@ -521,19 +521,3 @@ arch_linkage_entry(unsigned long retaddr)
return ((retaddr - 5) - FOREIGN_LINKAGE_SPACE_START) / LinkageEntrySize; return ((retaddr - 5) - FOREIGN_LINKAGE_SPACE_START) / LinkageEntrySize;
} }
#endif /* LINKAGE_TABLE */ #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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment