From 386b7d3366f1359a265da207a9cafa3edf553b64 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Mon, 7 Oct 2019 19:13:39 -0400 Subject: Reorganize and commit all the modified TACLeBench code and run scripts --- all_pairs/source/audiobeam/audiobeamlibmath.h | 69 +++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 all_pairs/source/audiobeam/audiobeamlibmath.h (limited to 'all_pairs/source/audiobeam/audiobeamlibmath.h') diff --git a/all_pairs/source/audiobeam/audiobeamlibmath.h b/all_pairs/source/audiobeam/audiobeamlibmath.h new file mode 100644 index 0000000..77bda0f --- /dev/null +++ b/all_pairs/source/audiobeam/audiobeamlibmath.h @@ -0,0 +1,69 @@ +/* + + This program is part of the TACLeBench benchmark suite. + Version V 2.0 + + Name: audiobeamlibmath.h + + Author: Unknown + + Function: IEEE754 software library routines. + + Source: Sun Microsystems + + Original name: math_private.h + + Changes: No major functional changes. + + License: See the terms below. + +*/ + + +/* + ==================================================== + Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. + + Developed at SunPro, a Sun Microsystems, Inc. business. + Permission to use, copy, modify, and distribute this + software is freely granted, provided that this notice + is preserved. + ==================================================== +*/ + +/* + from: @(#)fdlibm.h 5.1 93/09/24 +*/ + +#ifndef AUDIOBEAM_MATH_PRIVATE_H_ +#define AUDIOBEAM_MATH_PRIVATE_H_ + +#include "audiobeamlibm.h" + +/* A union which permits us to convert between a float and a 32 bit + int. */ + +typedef union { + float value; + unsigned int word; +} audiobeam_ieee_float_shape_type; + +/* Get a 32 bit int from a float. */ + +#define AUDIOBEAM_GET_FLOAT_WORD(i,d) \ +{ \ + audiobeam_ieee_float_shape_type gf_u; \ + gf_u.value = (d); \ + (i) = gf_u.word; \ +} + +/* Set a float from a 32 bit int. */ + +#define AUDIOBEAM_SET_FLOAT_WORD(d,i) \ +{ \ + audiobeam_ieee_float_shape_type sf_u; \ + sf_u.word = (i); \ + (d) = sf_u.value; \ +} + +#endif /* _MATH_PRIVATE_H_ */ -- cgit v1.2.2