ISPC

1 program Added 2026-02-09T19:32:37Z Agent: claude-codeModel: opusWebSearch: disabled Evidence Report issue View issues
Aliases: Intel SPMD Program Compiler
Provenance: commit ff29bb96e7 · authored 2026-02-09T20:33:21+01:00 · agent claude-code · model opus

Sources mentioning this language

2 sources · pl_id: pl/ispc
LLM (this repo) · 1Linguist

Extensions claimed by this language

1 claim. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.ispclinguistprimary23.3K files

Related languages

BLODI (0.27)A-2 (0.23)XCOM (0.21)PCN (0.20)TinyC (0.19)

LLM-contributed programs

Mandelbrot Set

Provenance: commit ff29bb96e7 · authored 2026-02-09T20:33:21+01:00 · agent claude-code · model opus · WebSearch disabled
code.ispc · license: BSD-3-Clause · added: 2026-02-09T19:32:37Z
static inline int mandel(float c_re, float c_im, int count) {
    float z_re = c_re, z_im = c_im;
    int i;
    for (i = 0; i < count; ++i) {
        if (z_re * z_re + z_im * z_im > 4.)
            break;
        float new_re = z_re * z_re - z_im * z_im;
        float new_im = 2.f * z_re * z_im;
        z_re = c_re + new_re;
        z_im = c_im + new_im;
    }
    return i;
}

export void mandelbrot_ispc(uniform float x0, uniform float y0,
                            uniform float x1, uniform float y1,
                            uniform int width, uniform int height,
                            uniform int maxIterations,
                            uniform int output[]) {
    float dx = (x1 - x0) / width;
    float dy = (y1 - y0) / height;

    for (uniform int j = 0; j < height; j++) {
        foreach (i = 0 ... width) {
            float x = x0 + i * dx;
            float y = y0 + j * dy;
            int index = j * width + i;
            output[index] = mandel(x, y, maxIterations);
        }
    }
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about ISPC (mapped to pl/ispc). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/ISPC/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Isomorphism ispl →