Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 27 additions and 0 deletions.
  1. +15 −0 software/libbase/libc.c
  2. +12 −0 software/libbase/softfloat-glue.c
15 software/libbase/libc.c
View
@@ -280,6 +280,21 @@ void *memcpy(void *to, const void *from, size_t n)
from = sfrom;
n -= 2;
}
+ if((long)from & 2) {
+ short *sto = to;
+ const short *sfrom = from;
+ temp = n >> 1;
+ for (; temp; temp--)
+ *sto++ = *sfrom++;
+ to = sto;
+ from = sfrom;
+ if(n & 1) {
+ char *cto = to;
+ const char *cfrom = from;
+ *cto = *cfrom;
+ }
+ return xto;
+ }
temp = n >> 2;
if(temp) {
long *lto = to;
12 software/libbase/softfloat-glue.c
View
@@ -180,6 +180,12 @@ float32 __floatsisf(int32 x)
return int32_to_float32(x);
}
+float32 __floatunsisf(int32 x);
+float32 __floatunsisf(int32 x)
+{
+ return int32_to_float32(x); // XXX
+}
+
int32 __fixsfsi(float32 x);
int32 __fixsfsi(float32 x)
{
@@ -237,6 +243,12 @@ float64 __floatsidf(int32 x)
return int32_to_float64(x);
}
+float64 __floatunsidf(int32 x);
+float64 __floatunsidf(int32 x)
+{
+ return int32_to_float64(x); // XXX
+}
+
int32 __fixdfsi(float64 x);
int32 __fixdfsi(float64 x)
{

No commit comments for this range

Something went wrong with that request. Please try again.