From 72461d67f64bb7c0738ccff003b66285885895dc Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 14 Nov 2008 16:05:23 +0000 Subject: -- Fix lots of prototypes -- Move functions with no dependencies from emfloat.c to fpemulation.c git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@34 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- emfloat.h | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) (limited to 'emfloat.h') diff --git a/emfloat.h b/emfloat.h index 59dc809..8290da8 100644 --- a/emfloat.h +++ b/emfloat.h @@ -94,33 +94,7 @@ typedef struct /* ** PROTOTYPES */ -void SetupCPUEmFloatArrays(InternalFPF *abase, - InternalFPF *bbase, InternalFPF *cbase, unsigned long arraysize); -unsigned long DoEmFloatIteration(InternalFPF *abase, - InternalFPF *bbase, InternalFPF *cbase, - unsigned long arraysize, unsigned long loops); -static void SetInternalFPFZero(InternalFPF *dest, - unsigned char sign); -static void SetInternalFPFInfinity(InternalFPF *dest, - unsigned char sign); -static void SetInternalFPFNaN(InternalFPF *dest); -static int IsMantissaZero(uint16_t *mant); -static void Add16Bits(uint16_t *carry,uint16_t *a,uint16_t b,uint16_t c); -static void Sub16Bits(uint16_t *borrow,uint16_t *a,uint16_t b,uint16_t c); -static void ShiftMantLeft1(uint16_t *carry,uint16_t *mantissa); -static void ShiftMantRight1(uint16_t *carry,uint16_t *mantissa); -static void StickyShiftRightMant(InternalFPF *ptr,int amount); -static void normalize(InternalFPF *ptr); -static void denormalize(InternalFPF *ptr,int minimum_exponent); -void RoundInternalFPF(InternalFPF *ptr); -static void choose_nan(InternalFPF *x,InternalFPF *y,InternalFPF *z, - int intel_flag); -static void AddSubInternalFPF(unsigned char operation,InternalFPF *x, - InternalFPF *y,InternalFPF *z); -static void MultiplyInternalFPF(InternalFPF *x,InternalFPF *y, - InternalFPF *z); -static void DivideInternalFPF(InternalFPF *x,InternalFPF *y, - InternalFPF *z); -/* static void LongToInternalFPF(long mylong, */ -static void Int32ToInternalFPF(int32_t mylong, - InternalFPF *dest); +void AddSubInternalFPF(unsigned char operation,InternalFPF *x, InternalFPF *y, InternalFPF *z); +void MultiplyInternalFPF(InternalFPF *x,InternalFPF *y, InternalFPF *z); +void DivideInternalFPF(InternalFPF *x,InternalFPF *y, InternalFPF *z); +void Int32ToInternalFPF(int32_t mylong, InternalFPF *dest); -- cgit v1.2.3