-
- fprintf(c_fp, fmt_s, elems, bits, elems, bits);
- fprintf(c_fp, "{\n");
- fprintf(c_fp, "\taabb%ds%d v = {0};\n", elems, bits);
- fprintf(c_fp, "\tv%ds%d *ptr = &v.min;\n\n", elems, bits);
- fprintf(c_fp, "\tfor (u8 i = 0; i < 2; ++i) {\n");
- fprintf(c_fp, "\t\t*ptr++ = recv_v%ds%d(p);\n", elems, bits);
- fprintf(c_fp, "\t}\n\n");
- fprintf(c_fp, "\treturn v;\n");
- fprintf(c_fp, "}\n\n");
-
- if (bits >= 32) {
- char *fmt_f = "__attribute__((unused)) static aabb%df%d recv_aabb%df%d(DragonnetPeer *p)\n";
-
- fprintf(c_fp, fmt_f, elems, bits, elems, bits);
- fprintf(c_fp, "{\n");
- fprintf(c_fp, "\taabb%df%d v = {0};\n", elems, bits);
- fprintf(c_fp, "\tv%df%d *ptr = &v.min;\n\n", elems, bits);
- fprintf(c_fp, "\tfor (u8 i = 0; i < 2; ++i) {\n");
- fprintf(c_fp, "\t\t*ptr++ = recv_v%df%d(p);\n", elems, bits);
- fprintf(c_fp, "\t}\n\n");
- fprintf(c_fp, "\treturn v;\n");
- fprintf(c_fp, "}\n\n");
- }