blob: b7b340d3663a48904c75cb2098210cc11a675523 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ae,v 1.5 1999/10/12 04:43:13 simonb Exp $
--- dct64_i486.c.orig Thu Nov 19 21:42:36 1998
+++ dct64_i486.c Mon Aug 16 01:49:16 1999
@@ -47,7 +47,11 @@
#define SETOUT(out,n,expr) out[FIR_BUFFER_SIZE*(n)]=(expr)
#define MUL(a,b) (((a)*(b)) >> 15)
#define MULL(a,b) (((long long)(a)*(long long)(b)) >> 15)
+#ifdef REAL_IS_FIXED
+#define TOINT(a) ((a) * 32768 / (int)REAL_FACTOR)
+#else
#define TOINT(a) ((int)((a)*32768.0))
+#endif
void dct64_1_486(int *out0,int *out1,int *b1,int *b2)
{
|