https://github.com/overmighty commented: Most of the code is shared with `sinpif16`. You could move most of it to a header and have both `cospif16` and `sinpif16` call a function from that header. https://github.com/llvm/llvm-project/pull/113001