Added missing libsw library

This commit is contained in:
Guilhem Lavaux 2013-03-01 15:43:05 -05:00
parent dd5e51c09c
commit 9dff8cfb5a
57 changed files with 13454 additions and 0 deletions

34
external/libsdf/libsw/op_template.c vendored Normal file
View 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");
}