1 2 3 4 5 6 7 8 9 10 11
// Simple C helpers for the OSPL FFI demo #include <math.h> int add_numbers(int a, int b) { return a + b; } double cosine(double x) { return cos(x); }