Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/misoc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 48b70f0
Choose a base ref
...
head repository: m-labs/misoc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 333179e
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on May 27, 2012

  1. software/libbase: __floatunsisf/__floatunsidf

    Sebastien Bourdeauducq committed May 27, 2012

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c4a28a4 View commit details
  2. software/libbase: memcpy: same with 2 alignment

    Sebastien Bourdeauducq committed May 27, 2012
    Copy the full SHA
    333179e View commit details
Showing with 27 additions and 0 deletions.
  1. +15 −0 software/libbase/libc.c
  2. +12 −0 software/libbase/softfloat-glue.c
15 changes: 15 additions & 0 deletions software/libbase/libc.c
Original file line number Diff line number Diff line change
@@ -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 changes: 12 additions & 0 deletions software/libbase/softfloat-glue.c
Original file line number Diff line number Diff line change
@@ -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)
{