Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation of div and mod #16

Closed
emilaxelsson opened this issue Nov 5, 2012 · 0 comments
Closed

Compilation of div and mod #16

emilaxelsson opened this issue Nov 5, 2012 · 0 comments
Labels

Comments

@emilaxelsson
Copy link
Member

*Main> icompile (div :: Data Int32 -> Data Int32 -> Data Int32)
...
void test(int32_t v0, int32_t v1, int32_t * out)
{
    (* out) = div(v0, v1);
}

Analogously for mod.

Running GCC on the generated code gives

incompatible types in assignment to type ”int32_t” from type ”div_t”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants