Finish part1

This commit is contained in:
Timothy Warren 2020-01-10 16:24:41 -05:00
parent f7198add5e
commit c5d97c5df9
2 changed files with 16 additions and 16 deletions

View File

@ -2,7 +2,7 @@ target:
mkdir -p target
target/nbody.c: target
$(cc) -O3 -fomit-frame-pointer -march=native -funroll-loops \
$(CC) -O3 -fomit-frame-pointer -march=native -funroll-loops \
nbody.c -o target/nbody.c -lm
target/nbody-1:

View File

@ -189,6 +189,7 @@ unsafe fn advance(bodies: *mut body) {
_mm_div_pd(_mm_set1_pd(0.01), distance_Squared),
distance_Reciprocal,
));
}
{
let mut k = 0;
@ -211,7 +212,6 @@ unsafe fn advance(bodies: *mut body) {
}
}
}
}
fn main() {
unsafe {