Skip to content

Verlet in X86_64 #505

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

Merged
merged 4 commits into from
Oct 20, 2018
Merged

Verlet in X86_64 #505

merged 4 commits into from
Oct 20, 2018

Conversation

Gathros
Copy link
Contributor

@Gathros Gathros commented Oct 12, 2018

No description provided.

@Gathros Gathros added Implementation This provides an implementation for an algorithm. (Code and maybe md files are edited.) Hacktoberfest The label for all Hacktoberfest related things! labels Oct 12, 2018
comisd xmm0, xmm7 # Check if position is greater then 0.0
ja verlet_loop
verlet_return:
movsd QWORD PTR [rdi], xmm3 # Saving time value
Copy link
Contributor

Choose a reason for hiding this comment

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

You should just return in xmm0 and xmm1 (if necessary), passing in the pointer to return floats is a bit weird

comisd xmm0, xmm7 # Check if position is greater then 0.0
ja stormer_verlet_loop
stormer_verlet_return:
movsd QWORD PTR [rdi], xmm3 # Saving time and velocity
Copy link
Contributor

Choose a reason for hiding this comment

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

Similarly, return in xmm0 and xmm1

comisd xmm0, xmm7
ja velocity_verlet_loop
velocity_verlet_return:
movsd QWORD PTR [rdi], xmm4 # Saving time and velocity
Copy link
Contributor

Choose a reason for hiding this comment

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

Similarly, return in xmm0 and xmm1

@Liikt
Copy link

Liikt commented Oct 14, 2018

I would agree with @Gustorn here

Copy link

@Liikt Liikt left a comment

Choose a reason for hiding this comment

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

Newline is missing at the end.

@zsparal zsparal merged commit 47fe49f into algorithm-archivists:master Oct 20, 2018
@Gathros Gathros deleted the verlet_asm branch October 20, 2018 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest The label for all Hacktoberfest related things! Implementation This provides an implementation for an algorithm. (Code and maybe md files are edited.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants