~ubuntu-branches/ubuntu/saucy/vips/saucy

« back to all changes in this revision

Viewing changes to libvips/arithmetic/im_subtract.c

  • Committer: Bazaar Package Importer
  • Author(s): Jay Berkenbilt
  • Date: 2010-12-27 14:24:43 UTC
  • mfrom: (1.1.14 upstream) (2.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20101227142443-2o2fwf24zy0wkdo8
Tags: 7.24.1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 *      - revise upcasting system
37
37
 *      - add gtkdoc comments
38
38
 *      - remove separate complex case, just double size
 
39
 * 31/7/10
 
40
 *      - remove liboil
39
41
 */
40
42
 
41
43
/*
72
74
#include <stdio.h>
73
75
#include <stdlib.h>
74
76
#include <math.h>
75
 
#include <assert.h>
76
77
 
77
78
#include <vips/vips.h>
78
79
#include <vips/internal.h>
79
80
 
80
 
#ifdef HAVE_LIBOIL
81
 
#include <liboil/liboil.h>
82
 
#endif /*HAVE_LIBOIL*/
83
 
 
84
81
#ifdef WITH_DMALLOC
85
82
#include <dmalloc.h>
86
83
#endif /*WITH_DMALLOC*/
117
114
 
118
115
        case IM_BANDFMT_FLOAT:          
119
116
        case IM_BANDFMT_COMPLEX:
120
 
#ifdef HAVE_LIBOIL
121
 
                oil_subtract_f32( (float *) out, 
122
 
                        (float *) in[0], (float *) in[1], sz );
123
 
#else /*!HAVE_LIBOIL*/
124
117
                LOOP( float, float ); 
125
 
#endif /*HAVE_LIBOIL*/
126
118
                break; 
127
119
 
128
120
        case IM_BANDFMT_DOUBLE: 
131
123
                break;
132
124
 
133
125
        default:
134
 
                assert( 0 );
 
126
                g_assert( 0 );
135
127
        }
136
128
}
137
129