Files
linuxcncAllWasm/tests/halcompile/extralib/extralib_test.comp
2026-08-20 06:17:39 +08:00

14 lines
242 B
Plaintext

component extralib_test;
pin in float theta;
pin out float sin_;
license "GPL";
option userspace;
option extra_link_args "-lm";
;;
#include <math.h>
void user_mainloop(void) {
while(1) {
FOR_ALL_INSTS() sin_ = sin(theta);
}
}