~ubuntu-branches/ubuntu/utopic/faust/utopic

« back to all changes in this revision

Viewing changes to compiler/tlib/node.hh

  • Committer: Bazaar Package Importer
  • Author(s): Mario Lang
  • Date: 2009-07-18 17:00:06 UTC
  • Revision ID: james.westby@ubuntu.com-20090718170006-o0yybyw3sjyj38nb
Tags: 0.9.9.4b-2
* Fix "FTBFS with GCC 4.4: missing #include" (Closes: #505365)
* Fix a few parenthesis suggestion warnings to make the build log less
  verbose.
* Build-Depend on debhelper >= 5 and use compat level 5.
* No longer ship /usr/lib/faust/VST which contains OSX specific stuff
  for Xcode.
* Install kate syntax highlighting support in
  /usr/share/kde4/apps/katepart/syntax.
* debian/control:
  - Recommend those package required to build the default example set
    out of the box.
  - Suggest kate since we provide syntax highlighting support.
  - Depend on ${misc:Depends} to make lintian happy.
  - Upgrade to Standards-Version 3.8.2 (no changes).
* debian/docs: Install more of the available documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
 
154
154
inline bool isZero (const Node& n)
155
155
{
156
 
        return (n.type() == kFloatNode) && (n.getFloat() == 0.0f)
157
 
                || (n.type() == kIntNode) && (n.getInt() == 0);
 
156
  return ((n.type() == kFloatNode) && (n.getFloat() == 0.0f))
 
157
          || ((n.type() == kIntNode) && (n.getInt() == 0));
158
158
}
159
159
 
160
160
inline bool isGEZero (const Node& n)
161
161
{
162
 
        return (n.type() == kFloatNode) && (n.getFloat() >= 0.0f)
163
 
                || (n.type() == kIntNode) && (n.getInt() >= 0);
 
162
  return ((n.type() == kFloatNode) && (n.getFloat() >= 0.0f))
 
163
          || ((n.type() == kIntNode) && (n.getInt() >= 0));
164
164
}
165
165
 
166
166
inline bool isGTZero (const Node& n)
167
167
{
168
 
        return (n.type() == kFloatNode) && (n.getFloat() > 0.0f)
169
 
                || (n.type() == kIntNode) && (n.getInt() > 0);
 
168
  return ((n.type() == kFloatNode) && (n.getFloat() > 0.0f))
 
169
          || ((n.type() == kIntNode) && (n.getInt() > 0));
170
170
}
171
171
 
172
172
inline bool isOne (const Node& n)
173
173
{
174
 
        return (n.type() == kFloatNode) && (n.getFloat() == 1.0f)
175
 
                || (n.type() == kIntNode) && (n.getInt() == 1);
 
174
  return ((n.type() == kFloatNode) && (n.getFloat() == 1.0f))
 
175
          || ((n.type() == kIntNode) && (n.getInt() == 1));
176
176
}
177
177
 
178
178
inline bool isMinusOne (const Node& n)
179
179
{
180
 
        return (n.type() == kFloatNode) && (n.getFloat() == -1.0f)
181
 
                || (n.type() == kIntNode) && (n.getInt() == -1);
 
180
  return ((n.type() == kFloatNode) && (n.getFloat() == -1.0f))
 
181
          || ((n.type() == kIntNode) && (n.getInt() == -1));
182
182
}
183
183
 
184
184