Rust VS C
head
#include <stdint.h>
#include <stdalign.h>
#include <immintrin.h>
#include <math.h>
#include <stdio.h>use std::mem;
use std::arch::x86_64::*;
use std::f64::consts::PI;strcut
// intptr_t should be the native integer type on most
// sane systems.
typedef intptr_t intnative_t;
typedef struct{
double position[3], velocity[3], mass;
} body;函数
Last updated