# opencl: define size of C types · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/5e62ba1347ee9b8614d5d72c60e87136a3bd7ab9)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 5e62ba1347ee9b8614d5d72c60e87136a3bd7ab9

Requested commit: 5e62ba1347ee9b8614d5d72c60e87136a3bd7ab9

Commit: 5e62ba1347ee9b8614d5d72c60e87136a3bd7ab9

Tree: 68991fd18a337d3bd082491dde91ebd7f9990dc9

Author: Robin Voetter

Committer: Robin Voetter

## Message

```
opencl: define size of C types

Define the size of the c types according the OpenCL specification.

Note that OpenCL does not define the size of long double. Clang generates
fp128, even though there is no extension that allows such types. The
llvm-spirv translator simply crashes.

```

## Parents

- [aa9ea612168836e2c2867dcd79c768155d1e3bfb](https://git.cafe/gitcafe/zig/commit/aa9ea612168836e2c2867dcd79c768155d1e3bfb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/5e62ba1347ee9b8614d5d72c60e87136a3bd7ab9?format=markdown)
