projects
/
vg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
64 bit fract function
[vg.git]
/
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) );