Skip to content

Instantly share code, notes, and snippets.

View JarrettBillingsley's full-sized avatar

Jarrett Billingsley JarrettBillingsley

View GitHub Profile
@JarrettBillingsley
JarrettBillingsley / smallpt_rust.rs
Last active December 31, 2015 07:09
Updated to 0.9-pre as of 11 december
// #[link_args = "-ffast_math"];
use std::os;
use std::unstable::intrinsics::sqrtf64;
use std::f64;
use std::from_str::{from_str};
use std::vec;
use std::path::{Path};
use std::io::{File, Open, Write};
use std::io::buffered::{BufferedWriter};