comparison softfloat.h @ 344:580fffa86f08 libavutil

add multiple inclusion guards to headers
author mru
date Sun, 17 Jun 2007 00:01:30 +0000
parents f21d1907d47c
children 86348ea795ad
comparison
equal deleted inserted replaced
343:f21d1907d47c 344:580fffa86f08
16 * You should have received a copy of the GNU Lesser General Public 16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software 17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 * 19 *
20 */ 20 */
21
22 #ifndef AVUTIL_SOFTFLOAT_H
23 #define AVUTIL_SOFTFLOAT_H
21 24
22 #include <stdint.h> 25 #include <stdint.h>
23 26
24 #define MIN_EXP -126 27 #define MIN_EXP -126
25 #define MAX_EXP 126 28 #define MAX_EXP 126
120 static inline int av_sf2int(SoftFloat v, int frac_bits){ 123 static inline int av_sf2int(SoftFloat v, int frac_bits){
121 v.exp += frac_bits - ONE_BITS; 124 v.exp += frac_bits - ONE_BITS;
122 if(v.exp >= 0) return v.mant << v.exp ; 125 if(v.exp >= 0) return v.mant << v.exp ;
123 else return v.mant >>(-v.exp); 126 else return v.mant >>(-v.exp);
124 } 127 }
128
129 #endif