component comparison */
| 2457 | |
| 2458 | /* component comparison */ |
| 2459 | bv_variable lib_common_all(bv_program* prog, u8 count, bv_variable* args) |
| 2460 | { |
| 2461 | /* bool all(bvec) */ |
| 2462 | bv_object* x = bv_variable_get_object(args[0]); |
| 2463 | |
| 2464 | u8 ret = 1; |
| 2465 | |
| 2466 | for (u8 i = 0; i < x->type->props.name_count; i++) |
| 2467 | ret &= bv_variable_get_uchar(x->prop[i]); |
| 2468 | |
| 2469 | return bv_variable_create_uchar(ret); |
| 2470 | } |
| 2471 | bv_variable lib_common_any(bv_program* prog, u8 count, bv_variable* args) |
| 2472 | { |
| 2473 | /* bool any(bvec) */ |
nothing calls this directly
no outgoing calls
no test coverage detected