Skip to main content
Glama
ssv445

Lorem Ipsum MCP Server

by ssv445
bitwise.ts626 B
import { MASK } from "./config.js" /** * Hamming weight. * * Taken from: http://jsperf.com/hamming-weight * * @internal */ export function popcount(x: number) { x -= (x >> 1) & 0x55555555 x = (x & 0x33333333) + ((x >> 2) & 0x33333333) x = (x + (x >> 4)) & 0x0f0f0f0f x += x >> 8 x += x >> 16 return x & 0x7f } /** @internal */ export function hashFragment(shift: number, h: number) { return (h >>> shift) & MASK } /** @internal */ export function toBitmap(x: number) { return 1 << x } /** @internal */ export function fromBitmap(bitmap: number, bit: number) { return popcount(bitmap & (bit - 1)) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ssv445/lorem-ipsum-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server