|
1 Copyright (c) 2003, 2007-8 Matteo Frigo |
|
2 Copyright (c) 2003, 2007-8 Massachusetts Institute of Technology |
|
3 |
|
4 Permission is hereby granted, free of charge, to any person obtaining |
|
5 a copy of this software and associated documentation files (the |
|
6 "Software"), to deal in the Software without restriction, including |
|
7 without limitation the rights to use, copy, modify, merge, publish, |
|
8 distribute, sublicense, and/or sell copies of the Software, and to |
|
9 permit persons to whom the Software is furnished to do so, subject to |
|
10 the following conditions: |
|
11 |
|
12 The above copyright notice and this permission notice shall be |
|
13 included in all copies or substantial portions of the Software. |
|
14 |
|
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
16 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
17 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
18 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
|
19 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
|
20 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
|
21 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
22 |
|
23 |
|
24 -------------------------------------------------------------------- |
|
25 |
|
26 Copyright (c) 2003, 2007-8 Matteo Frigo |
|
27 Copyright (c) 2003, 2007-8 Massachusetts Institute of Technology |
|
28 |
|
29 The following statement of license applies *only* to this header file, |
|
30 and *not* to the other files distributed with FFTW or derived therefrom: |
|
31 |
|
32 Redistribution and use in source and binary forms, with or without |
|
33 modification, are permitted provided that the following conditions |
|
34 are met: |
|
35 |
|
36 1. Redistributions of source code must retain the above copyright |
|
37 notice, this list of conditions and the following disclaimer. |
|
38 |
|
39 2. Redistributions in binary form must reproduce the above copyright |
|
40 notice, this list of conditions and the following disclaimer in the |
|
41 documentation and/or other materials provided with the distribution. |
|
42 |
|
43 THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS |
|
44 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
|
45 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
|
46 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
|
47 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
|
48 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE |
|
49 GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
|
50 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
|
51 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
|
52 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
|
53 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
54 |
|
55 |
|
56 -------------------------------------------------------------------- |
|
57 |
|
58 Copyright (C) 1993-1995 Ian Jackson. |
|
59 |
|
60 This file is free software; you can redistribute it and/or modify |
|
61 it under the terms of the GNU General Public License as published by |
|
62 the Free Software Foundation; either version 2, or (at your option) |
|
63 any later version. |
|
64 |
|
65 It is distributed in the hope that it will be useful, |
|
66 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
67 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
68 GNU General Public License for more details. |
|
69 |
|
70 You should have received a copy of the GNU General Public License |
|
71 along with GNU Emacs; see the file COPYING. If not, write to |
|
72 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
73 Boston, MA 02111-1307, USA. |
|
74 |
|
75 (Note: I do not consider works produced using these BFNN processing |
|
76 tools to be derivative works of the tools, so they are NOT covered |
|
77 by the GPL. However, I would appreciate it if you credited me if |
|
78 appropriate in any documents you format using BFNN.) |
|
79 |
|
80 -------------------------------------------------------------------- |
|
81 |
|
82 Copyright (c) 2003, 2007-8 Matteo Frigo |
|
83 Copyright (c) 2003, 2007-8 Massachusetts Institute of Technology |
|
84 |
|
85 Copyright (c) 2007 Massachusetts Institute of Technology |
|
86 |
|
87 Copyright (c) 2001 Matteo Frigo |
|
88 Copyright (c) 2001 Massachusetts Institute of Technology |
|
89 |
|
90 Copyright (c) 2007 Codesourcery |
|
91 |
|
92 Copyright (c) 2000 Matteo Frigo |
|
93 Copyright (c) 2000 Massachusetts Institute of Technology |
|
94 |
|
95 Copyright (c) 2005 Matteo Frigo |
|
96 Copyright (c) 2005 Massachusetts Institute of Technology |
|
97 |
|
98 This program is free software; you can redistribute it and/or modify |
|
99 it under the terms of the GNU General Public License as published by |
|
100 the Free Software Foundation; either version 2 of the License, or |
|
101 (at your option) any later version. |
|
102 |
|
103 This program is distributed in the hope that it will be useful, |
|
104 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
105 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
106 GNU General Public License for more details. |
|
107 |
|
108 You should have received a copy of the GNU General Public License |
|
109 along with this program; if not, write to the Free Software |
|
110 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
111 |
|
112 -------------------------------------------------------------------- |
|
113 GNU GENERAL PUBLIC LICENSE |
|
114 Version 2, June 1991 |
|
115 |
|
116 Copyright (C) 1989, 1991 Free Software Foundation, Inc., |
|
117 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
118 Everyone is permitted to copy and distribute verbatim copies |
|
119 of this license document, but changing it is not allowed. |
|
120 |
|
121 Preamble |
|
122 |
|
123 The licenses for most software are designed to take away your |
|
124 freedom to share and change it. By contrast, the GNU General Public |
|
125 License is intended to guarantee your freedom to share and change free |
|
126 software--to make sure the software is free for all its users. This |
|
127 General Public License applies to most of the Free Software |
|
128 Foundation's software and to any other program whose authors commit to |
|
129 using it. (Some other Free Software Foundation software is covered by |
|
130 the GNU Lesser General Public License instead.) You can apply it to |
|
131 your programs, too. |
|
132 |
|
133 When we speak of free software, we are referring to freedom, not |
|
134 price. Our General Public Licenses are designed to make sure that you |
|
135 have the freedom to distribute copies of free software (and charge for |
|
136 this service if you wish), that you receive source code or can get it |
|
137 if you want it, that you can change the software or use pieces of it |
|
138 in new free programs; and that you know you can do these things. |
|
139 |
|
140 To protect your rights, we need to make restrictions that forbid |
|
141 anyone to deny you these rights or to ask you to surrender the rights. |
|
142 These restrictions translate to certain responsibilities for you if you |
|
143 distribute copies of the software, or if you modify it. |
|
144 |
|
145 For example, if you distribute copies of such a program, whether |
|
146 gratis or for a fee, you must give the recipients all the rights that |
|
147 you have. You must make sure that they, too, receive or can get the |
|
148 source code. And you must show them these terms so they know their |
|
149 rights. |
|
150 |
|
151 We protect your rights with two steps: (1) copyright the software, and |
|
152 (2) offer you this license which gives you legal permission to copy, |
|
153 distribute and/or modify the software. |
|
154 |
|
155 Also, for each author's protection and ours, we want to make certain |
|
156 that everyone understands that there is no warranty for this free |
|
157 software. If the software is modified by someone else and passed on, we |
|
158 want its recipients to know that what they have is not the original, so |
|
159 that any problems introduced by others will not reflect on the original |
|
160 authors' reputations. |
|
161 |
|
162 Finally, any free program is threatened constantly by software |
|
163 patents. We wish to avoid the danger that redistributors of a free |
|
164 program will individually obtain patent licenses, in effect making the |
|
165 program proprietary. To prevent this, we have made it clear that any |
|
166 patent must be licensed for everyone's free use or not licensed at all. |
|
167 |
|
168 The precise terms and conditions for copying, distribution and |
|
169 modification follow. |
|
170 |
|
171 GNU GENERAL PUBLIC LICENSE |
|
172 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
|
173 |
|
174 0. This License applies to any program or other work which contains |
|
175 a notice placed by the copyright holder saying it may be distributed |
|
176 under the terms of this General Public License. The "Program", below, |
|
177 refers to any such program or work, and a "work based on the Program" |
|
178 means either the Program or any derivative work under copyright law: |
|
179 that is to say, a work containing the Program or a portion of it, |
|
180 either verbatim or with modifications and/or translated into another |
|
181 language. (Hereinafter, translation is included without limitation in |
|
182 the term "modification".) Each licensee is addressed as "you". |
|
183 |
|
184 Activities other than copying, distribution and modification are not |
|
185 covered by this License; they are outside its scope. The act of |
|
186 running the Program is not restricted, and the output from the Program |
|
187 is covered only if its contents constitute a work based on the |
|
188 Program (independent of having been made by running the Program). |
|
189 Whether that is true depends on what the Program does. |
|
190 |
|
191 1. You may copy and distribute verbatim copies of the Program's |
|
192 source code as you receive it, in any medium, provided that you |
|
193 conspicuously and appropriately publish on each copy an appropriate |
|
194 copyright notice and disclaimer of warranty; keep intact all the |
|
195 notices that refer to this License and to the absence of any warranty; |
|
196 and give any other recipients of the Program a copy of this License |
|
197 along with the Program. |
|
198 |
|
199 You may charge a fee for the physical act of transferring a copy, and |
|
200 you may at your option offer warranty protection in exchange for a fee. |
|
201 |
|
202 2. You may modify your copy or copies of the Program or any portion |
|
203 of it, thus forming a work based on the Program, and copy and |
|
204 distribute such modifications or work under the terms of Section 1 |
|
205 above, provided that you also meet all of these conditions: |
|
206 |
|
207 a) You must cause the modified files to carry prominent notices |
|
208 stating that you changed the files and the date of any change. |
|
209 |
|
210 b) You must cause any work that you distribute or publish, that in |
|
211 whole or in part contains or is derived from the Program or any |
|
212 part thereof, to be licensed as a whole at no charge to all third |
|
213 parties under the terms of this License. |
|
214 |
|
215 c) If the modified program normally reads commands interactively |
|
216 when run, you must cause it, when started running for such |
|
217 interactive use in the most ordinary way, to print or display an |
|
218 announcement including an appropriate copyright notice and a |
|
219 notice that there is no warranty (or else, saying that you provide |
|
220 a warranty) and that users may redistribute the program under |
|
221 these conditions, and telling the user how to view a copy of this |
|
222 License. (Exception: if the Program itself is interactive but |
|
223 does not normally print such an announcement, your work based on |
|
224 the Program is not required to print an announcement.) |
|
225 |
|
226 These requirements apply to the modified work as a whole. If |
|
227 identifiable sections of that work are not derived from the Program, |
|
228 and can be reasonably considered independent and separate works in |
|
229 themselves, then this License, and its terms, do not apply to those |
|
230 sections when you distribute them as separate works. But when you |
|
231 distribute the same sections as part of a whole which is a work based |
|
232 on the Program, the distribution of the whole must be on the terms of |
|
233 this License, whose permissions for other licensees extend to the |
|
234 entire whole, and thus to each and every part regardless of who wrote it. |
|
235 |
|
236 Thus, it is not the intent of this section to claim rights or contest |
|
237 your rights to work written entirely by you; rather, the intent is to |
|
238 exercise the right to control the distribution of derivative or |
|
239 collective works based on the Program. |
|
240 |
|
241 In addition, mere aggregation of another work not based on the Program |
|
242 with the Program (or with a work based on the Program) on a volume of |
|
243 a storage or distribution medium does not bring the other work under |
|
244 the scope of this License. |
|
245 |
|
246 3. You may copy and distribute the Program (or a work based on it, |
|
247 under Section 2) in object code or executable form under the terms of |
|
248 Sections 1 and 2 above provided that you also do one of the following: |
|
249 |
|
250 a) Accompany it with the complete corresponding machine-readable |
|
251 source code, which must be distributed under the terms of Sections |
|
252 1 and 2 above on a medium customarily used for software interchange; or, |
|
253 |
|
254 b) Accompany it with a written offer, valid for at least three |
|
255 years, to give any third party, for a charge no more than your |
|
256 cost of physically performing source distribution, a complete |
|
257 machine-readable copy of the corresponding source code, to be |
|
258 distributed under the terms of Sections 1 and 2 above on a medium |
|
259 customarily used for software interchange; or, |
|
260 |
|
261 c) Accompany it with the information you received as to the offer |
|
262 to distribute corresponding source code. (This alternative is |
|
263 allowed only for noncommercial distribution and only if you |
|
264 received the program in object code or executable form with such |
|
265 an offer, in accord with Subsection b above.) |
|
266 |
|
267 The source code for a work means the preferred form of the work for |
|
268 making modifications to it. For an executable work, complete source |
|
269 code means all the source code for all modules it contains, plus any |
|
270 associated interface definition files, plus the scripts used to |
|
271 control compilation and installation of the executable. However, as a |
|
272 special exception, the source code distributed need not include |
|
273 anything that is normally distributed (in either source or binary |
|
274 form) with the major components (compiler, kernel, and so on) of the |
|
275 operating system on which the executable runs, unless that component |
|
276 itself accompanies the executable. |
|
277 |
|
278 If distribution of executable or object code is made by offering |
|
279 access to copy from a designated place, then offering equivalent |
|
280 access to copy the source code from the same place counts as |
|
281 distribution of the source code, even though third parties are not |
|
282 compelled to copy the source along with the object code. |
|
283 |
|
284 4. You may not copy, modify, sublicense, or distribute the Program |
|
285 except as expressly provided under this License. Any attempt |
|
286 otherwise to copy, modify, sublicense or distribute the Program is |
|
287 void, and will automatically terminate your rights under this License. |
|
288 However, parties who have received copies, or rights, from you under |
|
289 this License will not have their licenses terminated so long as such |
|
290 parties remain in full compliance. |
|
291 |
|
292 5. You are not required to accept this License, since you have not |
|
293 signed it. However, nothing else grants you permission to modify or |
|
294 distribute the Program or its derivative works. These actions are |
|
295 prohibited by law if you do not accept this License. Therefore, by |
|
296 modifying or distributing the Program (or any work based on the |
|
297 Program), you indicate your acceptance of this License to do so, and |
|
298 all its terms and conditions for copying, distributing or modifying |
|
299 the Program or works based on it. |
|
300 |
|
301 6. Each time you redistribute the Program (or any work based on the |
|
302 Program), the recipient automatically receives a license from the |
|
303 original licensor to copy, distribute or modify the Program subject to |
|
304 these terms and conditions. You may not impose any further |
|
305 restrictions on the recipients' exercise of the rights granted herein. |
|
306 You are not responsible for enforcing compliance by third parties to |
|
307 this License. |
|
308 |
|
309 7. If, as a consequence of a court judgment or allegation of patent |
|
310 infringement or for any other reason (not limited to patent issues), |
|
311 conditions are imposed on you (whether by court order, agreement or |
|
312 otherwise) that contradict the conditions of this License, they do not |
|
313 excuse you from the conditions of this License. If you cannot |
|
314 distribute so as to satisfy simultaneously your obligations under this |
|
315 License and any other pertinent obligations, then as a consequence you |
|
316 may not distribute the Program at all. For example, if a patent |
|
317 license would not permit royalty-free redistribution of the Program by |
|
318 all those who receive copies directly or indirectly through you, then |
|
319 the only way you could satisfy both it and this License would be to |
|
320 refrain entirely from distribution of the Program. |
|
321 |
|
322 If any portion of this section is held invalid or unenforceable under |
|
323 any particular circumstance, the balance of the section is intended to |
|
324 apply and the section as a whole is intended to apply in other |
|
325 circumstances. |
|
326 |
|
327 It is not the purpose of this section to induce you to infringe any |
|
328 patents or other property right claims or to contest validity of any |
|
329 such claims; this section has the sole purpose of protecting the |
|
330 integrity of the free software distribution system, which is |
|
331 implemented by public license practices. Many people have made |
|
332 generous contributions to the wide range of software distributed |
|
333 through that system in reliance on consistent application of that |
|
334 system; it is up to the author/donor to decide if he or she is willing |
|
335 to distribute software through any other system and a licensee cannot |
|
336 impose that choice. |
|
337 |
|
338 This section is intended to make thoroughly clear what is believed to |
|
339 be a consequence of the rest of this License. |
|
340 |
|
341 8. If the distribution and/or use of the Program is restricted in |
|
342 certain countries either by patents or by copyrighted interfaces, the |
|
343 original copyright holder who places the Program under this License |
|
344 may add an explicit geographical distribution limitation excluding |
|
345 those countries, so that distribution is permitted only in or among |
|
346 countries not thus excluded. In such case, this License incorporates |
|
347 the limitation as if written in the body of this License. |
|
348 |
|
349 9. The Free Software Foundation may publish revised and/or new versions |
|
350 of the General Public License from time to time. Such new versions will |
|
351 be similar in spirit to the present version, but may differ in detail to |
|
352 address new problems or concerns. |
|
353 |
|
354 Each version is given a distinguishing version number. If the Program |
|
355 specifies a version number of this License which applies to it and "any |
|
356 later version", you have the option of following the terms and conditions |
|
357 either of that version or of any later version published by the Free |
|
358 Software Foundation. If the Program does not specify a version number of |
|
359 this License, you may choose any version ever published by the Free Software |
|
360 Foundation. |
|
361 |
|
362 10. If you wish to incorporate parts of the Program into other free |
|
363 programs whose distribution conditions are different, write to the author |
|
364 to ask for permission. For software which is copyrighted by the Free |
|
365 Software Foundation, write to the Free Software Foundation; we sometimes |
|
366 make exceptions for this. Our decision will be guided by the two goals |
|
367 of preserving the free status of all derivatives of our free software and |
|
368 of promoting the sharing and reuse of software generally. |
|
369 |
|
370 NO WARRANTY |
|
371 |
|
372 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
|
373 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
|
374 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
|
375 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |
|
376 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
377 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS |
|
378 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE |
|
379 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, |
|
380 REPAIR OR CORRECTION. |
|
381 |
|
382 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
|
383 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
|
384 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, |
|
385 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING |
|
386 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED |
|
387 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY |
|
388 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER |
|
389 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE |
|
390 POSSIBILITY OF SUCH DAMAGES. |
|
391 |
|
392 END OF TERMS AND CONDITIONS |
|
393 |
|
394 How to Apply These Terms to Your New Programs |
|
395 |
|
396 If you develop a new program, and you want it to be of the greatest |
|
397 possible use to the public, the best way to achieve this is to make it |
|
398 free software which everyone can redistribute and change under these terms. |
|
399 |
|
400 To do so, attach the following notices to the program. It is safest |
|
401 to attach them to the start of each source file to most effectively |
|
402 convey the exclusion of warranty; and each file should have at least |
|
403 the "copyright" line and a pointer to where the full notice is found. |
|
404 |
|
405 <one line to give the program's name and a brief idea of what it does.> |
|
406 Copyright (C) <year> <name of author> |
|
407 |
|
408 This program is free software; you can redistribute it and/or modify |
|
409 it under the terms of the GNU General Public License as published by |
|
410 the Free Software Foundation; either version 2 of the License, or |
|
411 (at your option) any later version. |
|
412 |
|
413 This program is distributed in the hope that it will be useful, |
|
414 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
415 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
416 GNU General Public License for more details. |
|
417 |
|
418 You should have received a copy of the GNU General Public License along |
|
419 with this program; if not, write to the Free Software Foundation, Inc., |
|
420 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|
421 |
|
422 Also add information on how to contact you by electronic and paper mail. |
|
423 |
|
424 If the program is interactive, make it output a short notice like this |
|
425 when it starts in an interactive mode: |
|
426 |
|
427 Gnomovision version 69, Copyright (C) year name of author |
|
428 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. |
|
429 This is free software, and you are welcome to redistribute it |
|
430 under certain conditions; type `show c' for details. |
|
431 |
|
432 The hypothetical commands `show w' and `show c' should show the appropriate |
|
433 parts of the General Public License. Of course, the commands you use may |
|
434 be called something other than `show w' and `show c'; they could even be |
|
435 mouse-clicks or menu items--whatever suits your program. |
|
436 |
|
437 You should also get your employer (if you work as a programmer) or your |
|
438 school, if any, to sign a "copyright disclaimer" for the program, if |
|
439 necessary. Here is a sample; alter the names: |
|
440 |
|
441 Yoyodyne, Inc., hereby disclaims all copyright interest in the program |
|
442 `Gnomovision' (which makes passes at compilers) written by James Hacker. |
|
443 |
|
444 <signature of Ty Coon>, 1 April 1989 |
|
445 Ty Coon, President of Vice |
|
446 |
|
447 This General Public License does not permit incorporating your program into |
|
448 proprietary programs. If your program is a subroutine library, you may |
|
449 consider it more useful to permit linking proprietary applications with the |
|
450 library. If this is what you want to do, use the GNU Lesser General |
|
451 Public License instead of this License. |
|
452 |