/* ISC license. */ #include unsigned int bu_len (uint32_t const *a, unsigned int n) { while (n--) if (a[n]) return n+1 ; return 0 ; }