]> gitweb.factorcode.org Git - factor.git/commitdiff
Don't return functions returning void. -O3 seems to optimize them out!
authorPhil Dawes <phil@phildawes.net>
Fri, 4 Sep 2009 19:37:23 +0000 (20:37 +0100)
committerPhil Dawes <phil@phildawes.net>
Wed, 16 Sep 2009 07:22:17 +0000 (08:22 +0100)
vm/data_gc.cpp
vm/math.cpp

index c6cdd398539ac870de87c097b5a94973365147c9..c192d5714e36fa32d08b9535938f5f4d92c44726 100755 (executable)
@@ -708,7 +708,7 @@ void factorvm::inline_gc(cell *gc_roots_base, cell gc_roots_size)
 VM_ASM_API void inline_gc(cell *gc_roots_base, cell gc_roots_size, factorvm *myvm)
 {
        ASSERTVM();
-       return VM_PTR->inline_gc(gc_roots_base,gc_roots_size);
+       VM_PTR->inline_gc(gc_roots_base,gc_roots_size);
 }
 
 }
index be285872f5575570bbc46f43461a25aaf28874bf..4b595f85a3a3de083b36d124d2c6186ef90188da 100755 (executable)
@@ -831,6 +831,7 @@ double factorvm::to_double(cell value)
 
 VM_C_API double to_double(cell value,factorvm *myvm)
 {
+       ASSERTVM();
        return VM_PTR->to_double(value);
 }
 
@@ -844,7 +845,7 @@ inline void factorvm::overflow_fixnum_add(fixnum x, fixnum y)
 
 VM_ASM_API_OVERFLOW void overflow_fixnum_add(fixnum x, fixnum y, factorvm *myvm)
 {
-       return PRIMITIVE_OVERFLOW_GETVM()->overflow_fixnum_add(x,y);
+       PRIMITIVE_OVERFLOW_GETVM()->overflow_fixnum_add(x,y);
 }
 
 inline void factorvm::overflow_fixnum_subtract(fixnum x, fixnum y)
@@ -855,7 +856,7 @@ inline void factorvm::overflow_fixnum_subtract(fixnum x, fixnum y)
 
 VM_ASM_API_OVERFLOW void overflow_fixnum_subtract(fixnum x, fixnum y, factorvm *myvm)
 {
-       return PRIMITIVE_OVERFLOW_GETVM()->overflow_fixnum_subtract(x,y);
+       PRIMITIVE_OVERFLOW_GETVM()->overflow_fixnum_subtract(x,y);
 }
 
 inline void factorvm::overflow_fixnum_multiply(fixnum x, fixnum y)
@@ -869,7 +870,7 @@ inline void factorvm::overflow_fixnum_multiply(fixnum x, fixnum y)
 
 VM_ASM_API_OVERFLOW void overflow_fixnum_multiply(fixnum x, fixnum y, factorvm *myvm)
 {
-       return PRIMITIVE_OVERFLOW_GETVM()->overflow_fixnum_multiply(x,y);
+       PRIMITIVE_OVERFLOW_GETVM()->overflow_fixnum_multiply(x,y);
 }
 
 }