64 bit fract function
authorhgn <hgodden00@gmail.com>
Mon, 15 Jan 2024 02:51:27 +0000 (02:51 +0000)
committerhgn <hgodden00@gmail.com>
Mon, 15 Jan 2024 02:51:27 +0000 (02:51 +0000)
vg_m.h

diff --git a/vg_m.h b/vg_m.h
index 2de095eb544c3508af92b147dddafdbdc2c5eae6..bc2e8a0c3aa392574723b71fa498f0082f78e721 100644 (file)
--- 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) );