#include #if defined (__cplusplus) extern "C" { #endif extern int swapRM(int); /* static int old_RM; int BiasRoundUp() { return (old_RM=swapRM(ROUND_TO_PLUS_INFINITY)); } int BiasRoundDown() { return (old_RM=swapRM(ROUND_TO_MINUS_INFINITY)); } int BiasRoundNear() { return (old_RM=swapRM(ROUND_TO_NEAREST)); } */ void BiasRoundUp() { swapRM(ROUND_TO_PLUS_INFINITY); } void BiasRoundDown() { swapRM(ROUND_TO_MINUS_INFINITY); } void BiasRoundNear() { swapRM(ROUND_TO_NEAREST); } #if defined (__cplusplus) } #endif