mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-05 15:51:12 +00:00
Added missing libsw library
This commit is contained in:
parent
dd5e51c09c
commit
9dff8cfb5a
57 changed files with 13454 additions and 0 deletions
34
external/libsdf/libsw/op_template.c
vendored
Normal file
34
external/libsdf/libsw/op_template.c
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
|
||||
/* This is a template that is included multiple times in mpmy_combine.c */
|
||||
|
||||
switch(manifest->u.op) {
|
||||
case MPMY_SUM:
|
||||
Do_Op(outbuf, +=, inbuf, Type, count);
|
||||
break;
|
||||
case MPMY_PROD:
|
||||
Do_Op(outbuf, *=, inbuf, Type, count);
|
||||
break;
|
||||
case MPMY_MAX:
|
||||
Do_Op(outbuf,
|
||||
= (*(Type *)outbuf > *(Type *)inbuf) ? *(Type *)outbuf :,
|
||||
inbuf, Type, count);
|
||||
break;
|
||||
case MPMY_MIN:
|
||||
Do_Op(outbuf,
|
||||
= (*(Type *)outbuf < *(Type *)inbuf) ? *(Type *)outbuf :,
|
||||
inbuf, Type, count);
|
||||
break;
|
||||
#ifdef BIT_OPS
|
||||
case MPMY_BAND:
|
||||
Do_Op(outbuf, &=, inbuf, Type, count);
|
||||
break;
|
||||
case MPMY_BOR:
|
||||
Do_Op(outbuf, |=, inbuf, Type, count);
|
||||
break;
|
||||
case MPMY_BXOR:
|
||||
Do_Op(outbuf, ^=, inbuf, Type, count);
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
Error("Unknown op in mpmy_combine\n");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue