From: hgn Date: Mon, 15 Jan 2024 02:51:27 +0000 (+0000) Subject: 64 bit fract function X-Git-Url: https://harrygodden.com/git/?p=vg.git;a=commitdiff_plain;h=3fe47be51b12f62735fd1cb062e71a98ebb3d14a 64 bit fract function --- diff --git a/vg_m.h b/vg_m.h index 2de095e..bc2e8a0 100644 --- a/vg_m.h +++ b/vg_m.h @@ -97,6 +97,10 @@ static inline f32 vg_fractf( f32 a ) return a - floorf( a ); } +static inline f64 vg_fractf64( f64 a ){ + return a - floor( a ); +} + static f32 vg_cfrictf( f32 velocity, f32 F ) { return -vg_signf(velocity) * vg_minf( F, fabsf(velocity) );