51 uf->
parent = (uint32_t *) malloc((maxid+1) *
sizeof(uint32_t) * 2);
52 memset(uf->
parent, 0xff, (maxid+1) *
sizeof(uint32_t));
54 memset(uf->
size, 0, (maxid+1) *
sizeof(uint32_t));
85 uint32_t root = uf->
parent[id];
87 if (root == 0xffffffff) {
93 while (uf->
parent[root] != root) {
98 while (uf->
parent[
id] != root) {
99 uint32_t tmp = uf->
parent[id];
110 return uf->
size[repid] + 1;
128 uint32_t asize = uf->
size[aroot] + 1;
129 uint32_t bsize = uf->
size[broot] + 1;
137 uf->
parent[broot] = aroot;
138 uf->
size[aroot] += bsize;
141 uf->
parent[aroot] = broot;
142 uf->
size[broot] += asize;
and restrictions which apply to each piece of software is included later in this file and or inside of the individual applicable source files The disclaimer of warranty in the WPILib license above applies to all code in and nothing in any of the other licenses gives permission to use the names of FIRST nor the names of the WPILib contributors to endorse or promote products derived from this software The following pieces of software have additional or alternate and or and nanopb were all modified for use in Google Inc All rights reserved Redistribution and use in source and binary with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer *Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution *Neither the name of Google Inc nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN STRICT OR EVEN IF ADVISED OF THE POSSIBILITY OF SUCH January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable or merely the Work and Derivative Works thereof Contribution shall mean any work of including the original version of the Work and any modifications or additions to that Work or Derivative Works that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner For the purposes of this submitted means any form of or written communication sent to the Licensor or its including but not limited to communication on electronic mailing source code control and issue tracking systems that are managed or on behalf the Licensor for the purpose of discussing and improving the but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as Not a Contribution Contributor shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work Grant of Copyright License Subject to the terms and conditions of this each Contributor hereby grants to You a non no royalty free
Definition ThirdPartyNotices.txt:164
Definition unionfind.h:37
uint32_t * size
Definition unionfind.h:44
uint32_t maxid
Definition unionfind.h:38
uint32_t * parent
Definition unionfind.h:41
static uint32_t unionfind_connect(unionfind_t *uf, uint32_t aid, uint32_t bid)
Definition unionfind.h:113
static unionfind_t * unionfind_create(uint32_t maxid)
Definition unionfind.h:47
static uint32_t unionfind_get_representative(unionfind_t *uf, uint32_t id)
Definition unionfind.h:83
static void unionfind_destroy(unionfind_t *uf)
Definition unionfind.h:58
static uint32_t unionfind_get_set_size(unionfind_t *uf, uint32_t id)
Definition unionfind.h:107