forked from pyrite-dev/milsko
wip
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@552 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
5981ab9f8f
commit
e477746da2
2 changed files with 13 additions and 10 deletions
|
|
@ -94,15 +94,18 @@ static void default_greaterThen_u8(MwLLVec* a, MwLLVec* b, MwLLVec* out) {
|
|||
out->un.u8.h = a->un.u8.h >= b->un.u8.h;
|
||||
};
|
||||
static MwLLMathVTable table_u8 = {
|
||||
.Add = default_add_u8,
|
||||
.Sub = default_sub_u8,
|
||||
.Multiply = default_multiply_u8,
|
||||
.Reciprocal = default_reciprocal_u8,
|
||||
.SquareRoot = default_squareRoot_u8,
|
||||
.ShiftRight = default_shiftRight_u8,
|
||||
.ShiftLeft = default_shiftLeft_u8,
|
||||
.Equal = default_equal_u8,
|
||||
.GreaterThen = default_greaterThen_u8,
|
||||
default_add_u8,
|
||||
default_multiply_u8,
|
||||
default_sub_u8,
|
||||
default_reciprocal_u8,
|
||||
default_squareRoot_u8,
|
||||
NULL,
|
||||
NULL,
|
||||
default_shiftRight_u8,
|
||||
default_shiftLeft_u8,
|
||||
default_equal_u8,
|
||||
default_greaterThen_u8,
|
||||
NULL
|
||||
};
|
||||
static void default_add_u16(MwLLVec* a, MwLLVec* b, MwLLVec* out) {
|
||||
out->un.u16.a = a->un.u16.a + b->un.u16.a;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue