yallop / ocaml-ctypes

Library for binding to C libraries using pure OCaml
MIT License
363 stars 95 forks source link

Float16 support #763

Open yallop opened 4 months ago

yallop commented 4 months ago

OCaml 5.2.0 adds support for half-precision floating-point bigarray elements via a new Float16 kind (https://github.com/ocaml/ocaml/pull/10775). We should add corresponding support to ctypes, probably using some form of conditional compilation that makes it possible to continue supporting previous OCaml releases.