{"adoption": {"forks": 98, "observed_at": "2026-08-28T04:04:27.765357+00:00", "stars": 1348}, "canonical_url": "https://ross.abutalabs.com/products/libdivide", "card": {"archived": false, "artifact_type": "library", "description": "Official git repository for libdivide: optimized integer division", "domain": ["performance", "developer-tools"], "enriched": true, "function": ["math", "developer-tools"], "health_score": 96, "homepage": "http://libdivide.com", "language": "C++", "license": "NOASSERTION", "license_family": "other", "maturity": "stable", "member_repos": ["ridiculousfish/libdivide"], "name": "ridiculousfish/libdivide", "platform": ["cpp", "c", "cross-platform", "embedded"], "pushed_at": "2026-08-21T16:28:56+00:00", "repo": "ridiculousfish/libdivide", "stars": 1348, "tags": ["header-only", "integer-division", "simd", "optimization", "branchless", "algorithms", "gpu"], "topics": [], "urls": [], "use_cases": ["speed up dividing many integers by a runtime constant", "optimize hash table bucket index computation", "accelerate scaling algorithms with integer division", "fast integer division in an interpreter loop", "divide SIMD vectors by a constant since SIMD lacks integer division", "fast division on microcontrollers without a hardware divider"], "what_it_is": "libdivide is a single-header C/C++ library that replaces expensive integer division instructions with precomputed multiply-and-shift sequences, speeding up division by a runtime constant by up to 10x. It also supports SIMD vector division (SSE2, AVX2, AVX512, NEON, SVE) and runs on 8-bit microcontrollers like AVR.", "when_to_avoid": ["the divisor changes on every division (precomputation overhead dominates)", "you only divide by compile-time constants (compilers already optimize this)", "divisions are rare and not performance-critical"], "when_to_choose": ["you divide many numerators by the same runtime divisor in a hot loop", "you need SIMD integer division that hardware doesn't provide", "you target embedded hardware lacking a hardware divider", "you want a dependency-free, permissively licensed header-only optimization"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/libdivide", "repo": "ridiculousfish/libdivide", "role": "main", "score": 78}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:27.765357+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T04:42:26.617546+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "42953bd196eb12e943fc09777e7e08d329ee78f6f2b9fc5d16e9d1febb4bf230", "fetched_at": "2026-08-28T04:04:27.765357+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ridiculousfish/libdivide"}, {"content_hash": "de69bc973f80d8c535d2ddc648a208f9ca82955beeca5c338efde525456b09b0", "fetched_at": "2026-08-29T12:01:26.834853+00:00", "kind": "homepage", "missing": false, "url": "http://libdivide.com"}, {"content_hash": "520ad0ef97217011905fc3b2fc1df88313fae95e26de8a6284d7728590e04f51", "fetched_at": "2026-08-29T12:01:26.843977+00:00", "kind": "site_page", "missing": false, "url": "http://libdivide.com/documentation.html"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:27.765357+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T04:42:26.617546+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "42953bd196eb12e943fc09777e7e08d329ee78f6f2b9fc5d16e9d1febb4bf230", "fetched_at": "2026-08-28T04:04:27.765357+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ridiculousfish/libdivide"}, {"content_hash": "de69bc973f80d8c535d2ddc648a208f9ca82955beeca5c338efde525456b09b0", "fetched_at": "2026-08-29T12:01:26.834853+00:00", "kind": "homepage", "missing": false, "url": "http://libdivide.com"}, {"content_hash": "520ad0ef97217011905fc3b2fc1df88313fae95e26de8a6284d7728590e04f51", "fetched_at": "2026-08-29T12:01:26.843977+00:00", "kind": "site_page", "missing": false, "url": "http://libdivide.com/documentation.html"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T04:42:26.617546+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "42953bd196eb12e943fc09777e7e08d329ee78f6f2b9fc5d16e9d1febb4bf230", "fetched_at": "2026-08-28T04:04:27.765357+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ridiculousfish/libdivide"}, {"content_hash": "de69bc973f80d8c535d2ddc648a208f9ca82955beeca5c338efde525456b09b0", "fetched_at": "2026-08-29T12:01:26.834853+00:00", "kind": "homepage", "missing": false, "url": "http://libdivide.com"}, {"content_hash": "520ad0ef97217011905fc3b2fc1df88313fae95e26de8a6284d7728590e04f51", "fetched_at": "2026-08-29T12:01:26.843977+00:00", "kind": "site_page", "missing": false, "url": "http://libdivide.com/documentation.html"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:27.765357+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:27.765357+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:27.765357+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T04:42:26.617546+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "42953bd196eb12e943fc09777e7e08d329ee78f6f2b9fc5d16e9d1febb4bf230", "fetched_at": "2026-08-28T04:04:27.765357+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ridiculousfish/libdivide"}, {"content_hash": "de69bc973f80d8c535d2ddc648a208f9ca82955beeca5c338efde525456b09b0", "fetched_at": "2026-08-29T12:01:26.834853+00:00", "kind": "homepage", "missing": false, "url": "http://libdivide.com"}, {"content_hash": "520ad0ef97217011905fc3b2fc1df88313fae95e26de8a6284d7728590e04f51", "fetched_at": "2026-08-29T12:01:26.843977+00:00", "kind": "site_page", "missing": false, "url": "http://libdivide.com/documentation.html"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:27.765357+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:27.765357+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T04:42:26.617546+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "42953bd196eb12e943fc09777e7e08d329ee78f6f2b9fc5d16e9d1febb4bf230", "fetched_at": "2026-08-28T04:04:27.765357+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ridiculousfish/libdivide"}, {"content_hash": "de69bc973f80d8c535d2ddc648a208f9ca82955beeca5c338efde525456b09b0", "fetched_at": "2026-08-29T12:01:26.834853+00:00", "kind": "homepage", "missing": false, "url": "http://libdivide.com"}, {"content_hash": "520ad0ef97217011905fc3b2fc1df88313fae95e26de8a6284d7728590e04f51", "fetched_at": "2026-08-29T12:01:26.843977+00:00", "kind": "site_page", "missing": false, "url": "http://libdivide.com/documentation.html"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:27.765357+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:27.765357+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:27.765357+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T04:42:26.617546+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "42953bd196eb12e943fc09777e7e08d329ee78f6f2b9fc5d16e9d1febb4bf230", "fetched_at": "2026-08-28T04:04:27.765357+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ridiculousfish/libdivide"}, {"content_hash": "de69bc973f80d8c535d2ddc648a208f9ca82955beeca5c338efde525456b09b0", "fetched_at": "2026-08-29T12:01:26.834853+00:00", "kind": "homepage", "missing": false, "url": "http://libdivide.com"}, {"content_hash": "520ad0ef97217011905fc3b2fc1df88313fae95e26de8a6284d7728590e04f51", "fetched_at": "2026-08-29T12:01:26.843977+00:00", "kind": "site_page", "missing": false, "url": "http://libdivide.com/documentation.html"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:27.765357+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:27.765357+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T04:42:26.617546+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "42953bd196eb12e943fc09777e7e08d329ee78f6f2b9fc5d16e9d1febb4bf230", "fetched_at": "2026-08-28T04:04:27.765357+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ridiculousfish/libdivide"}, {"content_hash": "de69bc973f80d8c535d2ddc648a208f9ca82955beeca5c338efde525456b09b0", "fetched_at": "2026-08-29T12:01:26.834853+00:00", "kind": "homepage", "missing": false, "url": "http://libdivide.com"}, {"content_hash": "520ad0ef97217011905fc3b2fc1df88313fae95e26de8a6284d7728590e04f51", "fetched_at": "2026-08-29T12:01:26.843977+00:00", "kind": "site_page", "missing": false, "url": "http://libdivide.com/documentation.html"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T04:42:26.617546+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "42953bd196eb12e943fc09777e7e08d329ee78f6f2b9fc5d16e9d1febb4bf230", "fetched_at": "2026-08-28T04:04:27.765357+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ridiculousfish/libdivide"}, {"content_hash": "de69bc973f80d8c535d2ddc648a208f9ca82955beeca5c338efde525456b09b0", "fetched_at": "2026-08-29T12:01:26.834853+00:00", "kind": "homepage", "missing": false, "url": "http://libdivide.com"}, {"content_hash": "520ad0ef97217011905fc3b2fc1df88313fae95e26de8a6284d7728590e04f51", "fetched_at": "2026-08-29T12:01:26.843977+00:00", "kind": "site_page", "missing": false, "url": "http://libdivide.com/documentation.html"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T04:42:26.617546+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "42953bd196eb12e943fc09777e7e08d329ee78f6f2b9fc5d16e9d1febb4bf230", "fetched_at": "2026-08-28T04:04:27.765357+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ridiculousfish/libdivide"}, {"content_hash": "de69bc973f80d8c535d2ddc648a208f9ca82955beeca5c338efde525456b09b0", "fetched_at": "2026-08-29T12:01:26.834853+00:00", "kind": "homepage", "missing": false, "url": "http://libdivide.com"}, {"content_hash": "520ad0ef97217011905fc3b2fc1df88313fae95e26de8a6284d7728590e04f51", "fetched_at": "2026-08-29T12:01:26.843977+00:00", "kind": "site_page", "missing": false, "url": "http://libdivide.com/documentation.html"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T04:42:26.617546+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "42953bd196eb12e943fc09777e7e08d329ee78f6f2b9fc5d16e9d1febb4bf230", "fetched_at": "2026-08-28T04:04:27.765357+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ridiculousfish/libdivide"}, {"content_hash": "de69bc973f80d8c535d2ddc648a208f9ca82955beeca5c338efde525456b09b0", "fetched_at": "2026-08-29T12:01:26.834853+00:00", "kind": "homepage", "missing": false, "url": "http://libdivide.com"}, {"content_hash": "520ad0ef97217011905fc3b2fc1df88313fae95e26de8a6284d7728590e04f51", "fetched_at": "2026-08-29T12:01:26.843977+00:00", "kind": "site_page", "missing": false, "url": "http://libdivide.com/documentation.html"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 98, "longevity": 100, "rhythm": 39}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 5482, "days_push": 12, "days_rel": 198, "gap_med": 386, "n_releases_24m": 2}, "score": 78, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}