Buckets:
| /* | |
| * Copyright (c) 2007, Novell Inc. | |
| * | |
| * This program is licensed under the BSD license, read LICENSE.BSD | |
| * for further information | |
| */ | |
| extern "C" { | |
| extern void pool_setarch(Pool *, const char *); | |
| extern void pool_setarchpolicy(Pool *, const char *); | |
| extern unsigned char pool_arch2color_slow(Pool *pool, Id arch); | |
| static inline unsigned char pool_arch2color(Pool *pool, Id arch) | |
| { | |
| if ((unsigned int)arch >= (unsigned int)pool->lastarch) | |
| return ARCHCOLOR_ALL; | |
| if (pool->id2color && pool->id2color[arch]) | |
| return pool->id2color[arch]; | |
| return pool_arch2color_slow(pool, arch); | |
| } | |
| static inline int pool_colormatch(Pool *pool, Solvable *s1, Solvable *s2) | |
| { | |
| if (s1->arch == s2->arch) | |
| return 1; | |
| if ((pool_arch2color(pool, s1->arch) & pool_arch2color(pool, s2->arch)) != 0) | |
| return 1; | |
| return 0; | |
| } | |
| static inline unsigned int pool_arch2score(const Pool *pool, Id arch) { | |
| return (unsigned int)arch < (unsigned int)pool->lastarch ? (unsigned int)pool->id2arch[arch] : 0; | |
| } | |
| } | |
Xet Storage Details
- Size:
- 1.24 kB
- Xet hash:
- 711b1753aa474bc657b874569e516675a8c8192464326534822b73be3f73e542
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.