forked from pyrite-dev/milsko
add fdlibm
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@557 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
ac87fbdd35
commit
7f523a3d76
90 changed files with 7325 additions and 309 deletions
|
|
@ -34,14 +34,14 @@ static void default_multiply_u8(MwLLVec* a, MwLLVec* b, MwLLVec* out) {
|
|||
out->un.u8.h = a->un.u8.h * b->un.u8.h;
|
||||
};
|
||||
static void default_reciprocal_u8(MwLLVec* a, MwLLVec* out) {
|
||||
out->un.u8.a = nbsd_pow(a->un.u8.a, -1);
|
||||
out->un.u8.b = nbsd_pow(a->un.u8.b, -1);
|
||||
out->un.u8.c = nbsd_pow(a->un.u8.c, -1);
|
||||
out->un.u8.d = nbsd_pow(a->un.u8.d, -1);
|
||||
out->un.u8.e = nbsd_pow(a->un.u8.e, -1);
|
||||
out->un.u8.f = nbsd_pow(a->un.u8.f, -1);
|
||||
out->un.u8.g = nbsd_pow(a->un.u8.g, -1);
|
||||
out->un.u8.h = nbsd_pow(a->un.u8.h, -1);
|
||||
out->un.u8.a = pow(a->un.u8.a, -1);
|
||||
out->un.u8.b = pow(a->un.u8.b, -1);
|
||||
out->un.u8.c = pow(a->un.u8.c, -1);
|
||||
out->un.u8.d = pow(a->un.u8.d, -1);
|
||||
out->un.u8.e = pow(a->un.u8.e, -1);
|
||||
out->un.u8.f = pow(a->un.u8.f, -1);
|
||||
out->un.u8.g = pow(a->un.u8.g, -1);
|
||||
out->un.u8.h = pow(a->un.u8.h, -1);
|
||||
};
|
||||
static void default_squareRoot_u8(MwLLVec* a, MwLLVec* out) {
|
||||
out->un.u8.a = sqrt(a->un.u8.a);
|
||||
|
|
@ -125,10 +125,10 @@ static void default_multiply_u16(MwLLVec* a, MwLLVec* b, MwLLVec* out) {
|
|||
out->un.u16.d = a->un.u16.d * b->un.u16.d;
|
||||
}
|
||||
static void default_reciprocal_u16(MwLLVec* a, MwLLVec* out) {
|
||||
out->un.u16.a = nbsd_pow(a->un.u16.a, -1);
|
||||
out->un.u16.b = nbsd_pow(a->un.u16.b, -1);
|
||||
out->un.u16.c = nbsd_pow(a->un.u16.c, -1);
|
||||
out->un.u16.d = nbsd_pow(a->un.u16.d, -1);
|
||||
out->un.u16.a = pow(a->un.u16.a, -1);
|
||||
out->un.u16.b = pow(a->un.u16.b, -1);
|
||||
out->un.u16.c = pow(a->un.u16.c, -1);
|
||||
out->un.u16.d = pow(a->un.u16.d, -1);
|
||||
};
|
||||
static void default_squareRoot_u16(MwLLVec* a, MwLLVec* out) {
|
||||
out->un.u16.a = sqrt(a->un.u16.a);
|
||||
|
|
@ -188,8 +188,8 @@ static void default_multiply_u32(MwLLVec* a, MwLLVec* b, MwLLVec* out) {
|
|||
out->un.u32.b = a->un.u32.b * b->un.u32.b;
|
||||
}
|
||||
static void default_reciprocal_u32(MwLLVec* a, MwLLVec* out) {
|
||||
out->un.u32.a = nbsd_pow(a->un.u32.a, -1);
|
||||
out->un.u32.b = nbsd_pow(a->un.u32.b, -1);
|
||||
out->un.u32.a = pow(a->un.u32.a, -1);
|
||||
out->un.u32.b = pow(a->un.u32.b, -1);
|
||||
};
|
||||
static void default_squareRoot_u32(MwLLVec* a, MwLLVec* out) {
|
||||
out->un.u32.a = sqrt(a->un.u32.a);
|
||||
|
|
@ -257,14 +257,14 @@ static void default_multiply_i8(MwLLVec* a, MwLLVec* b, MwLLVec* out) {
|
|||
out->un.i8.h = a->un.i8.h * b->un.i8.h;
|
||||
};
|
||||
static void default_reciprocal_i8(MwLLVec* a, MwLLVec* out) {
|
||||
out->un.i8.a = nbsd_pow(a->un.i8.a, -1);
|
||||
out->un.i8.b = nbsd_pow(a->un.i8.b, -1);
|
||||
out->un.i8.c = nbsd_pow(a->un.i8.c, -1);
|
||||
out->un.i8.d = nbsd_pow(a->un.i8.d, -1);
|
||||
out->un.i8.e = nbsd_pow(a->un.i8.e, -1);
|
||||
out->un.i8.f = nbsd_pow(a->un.i8.f, -1);
|
||||
out->un.i8.g = nbsd_pow(a->un.i8.g, -1);
|
||||
out->un.i8.h = nbsd_pow(a->un.i8.h, -1);
|
||||
out->un.i8.a = pow(a->un.i8.a, -1);
|
||||
out->un.i8.b = pow(a->un.i8.b, -1);
|
||||
out->un.i8.c = pow(a->un.i8.c, -1);
|
||||
out->un.i8.d = pow(a->un.i8.d, -1);
|
||||
out->un.i8.e = pow(a->un.i8.e, -1);
|
||||
out->un.i8.f = pow(a->un.i8.f, -1);
|
||||
out->un.i8.g = pow(a->un.i8.g, -1);
|
||||
out->un.i8.h = pow(a->un.i8.h, -1);
|
||||
};
|
||||
static void default_squareRoot_i8(MwLLVec* a, MwLLVec* out) {
|
||||
out->un.i8.a = sqrt(a->un.i8.a);
|
||||
|
|
@ -329,10 +329,10 @@ static void default_multiply_i16(MwLLVec* a, MwLLVec* b, MwLLVec* out) {
|
|||
out->un.i16.d = a->un.i16.d * b->un.i16.d;
|
||||
}
|
||||
static void default_reciprocal_i16(MwLLVec* a, MwLLVec* out) {
|
||||
out->un.i16.a = nbsd_pow(a->un.i16.a, -1);
|
||||
out->un.i16.b = nbsd_pow(a->un.i16.b, -1);
|
||||
out->un.i16.c = nbsd_pow(a->un.i16.c, -1);
|
||||
out->un.i16.d = nbsd_pow(a->un.i16.d, -1);
|
||||
out->un.i16.a = pow(a->un.i16.a, -1);
|
||||
out->un.i16.b = pow(a->un.i16.b, -1);
|
||||
out->un.i16.c = pow(a->un.i16.c, -1);
|
||||
out->un.i16.d = pow(a->un.i16.d, -1);
|
||||
};
|
||||
static void default_squareRoot_i16(MwLLVec* a, MwLLVec* out) {
|
||||
out->un.i16.a = sqrt(a->un.i16.a);
|
||||
|
|
@ -380,8 +380,8 @@ static void default_multiply_i32(MwLLVec* a, MwLLVec* b, MwLLVec* out) {
|
|||
out->un.i32.b = a->un.i32.b * b->un.i32.b;
|
||||
}
|
||||
static void default_reciprocal_i32(MwLLVec* a, MwLLVec* out) {
|
||||
out->un.i32.a = nbsd_pow(a->un.i32.a, -1);
|
||||
out->un.i32.b = nbsd_pow(a->un.i32.b, -1);
|
||||
out->un.i32.a = pow(a->un.i32.a, -1);
|
||||
out->un.i32.b = pow(a->un.i32.b, -1);
|
||||
};
|
||||
static void default_squareRoot_i32(MwLLVec* a, MwLLVec* out) {
|
||||
out->un.i32.a = sqrt(a->un.i32.a);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue