Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Add support for building SSE2 code to JS. #103

Merged
merged 17 commits into from
Aug 20, 2015

Conversation

juj
Copy link
Collaborator

@juj juj commented Jun 17, 2015

No description provided.

return (caps ? (isInt ? "Int" : "Float") : (isInt ? "int" : "float")) + std::to_string(primSize) + 'x' + std::to_string(numElems);
}

std::string WrapMathFRound(const std::string &value, bool wrap) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is similar to ensureFloat. First of all, the name should begin with a lowercase letter. Second, how about also calling it ensureFloat, but overloaded with a second parameter which is a bool? And implementing it right after ensureFloat?

@kripken
Copy link
Member

kripken commented Jun 18, 2015

Aside from one comment above, this looks good. I am not familiar with the SIMD correctness wrt the spec, though, perhaps @sunfishcode wants to review that aspect.

@juj
Copy link
Collaborator Author

juj commented Jun 20, 2015

Thanks, renamed the function. Also did other changes to help SSE2 code generation in emscripten-core/emscripten#3542

@juj
Copy link
Collaborator Author

juj commented Aug 12, 2015

Ping @sunfishcode , this is now ready to be reviewed and merged from my end. Merging this should be done at the same time with emscripten-core/emscripten#3542, since they go hand in hand.

sunfishcode added a commit that referenced this pull request Aug 20, 2015
Add support for building SSE2 code to JS.
@sunfishcode sunfishcode merged commit ff8efbb into emscripten-core:incoming Aug 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants