rstsr_openblas_ffi/cblas/
ffi_base.rs

1//! Base of current FFI.
2//!
3//! Declaration of types, enums, cargo feature controls, etc.
4//!
5//! This file is generated automatically.
6
7pub(crate) use core::ffi::*;
8pub use rstsr_cblas_base::*;
9
10/* automatically generated by rust-bindgen 0.71.1 */
11
12pub const OPENBLAS_SEQUENTIAL: u32 = 0;
13pub const OPENBLAS_THREAD: u32 = 1;
14pub const OPENBLAS_OPENMP: u32 = 2;
15pub type bfloat16 = u16;
16
17#[repr(C)]
18#[derive(Debug, Copy, Clone)]
19pub struct openblas_complex_float {
20    pub real: f32,
21    pub imag: f32,
22}
23#[repr(C)]
24#[derive(Debug, Copy, Clone)]
25pub struct openblas_complex_double {
26    pub real: f64,
27    pub imag: f64,
28}
29pub type openblas_dojob_callback =
30    Option<extern "C" fn(thread_num: c_int, jobdata: *mut c_void, dojob_data: c_int)>;
31pub type openblas_threads_callback = Option<
32    extern "C" fn(
33        sync: c_int,
34        dojob: openblas_dojob_callback,
35        numjobs: c_int,
36        jobdata_elsize: usize,
37        jobdata: *mut c_void,
38        dojob_data: c_int,
39    ),
40>;