fixmul_mips.h revision 4f0d97057c5c640b25518358886f8c47da9fc052
1824c19963e0263366047787b024a992afc2b1c54Howard Hinnant
2824c19963e0263366047787b024a992afc2b1c54Howard Hinnant/* -----------------------------------------------------------------------------------------------------------
3824c19963e0263366047787b024a992afc2b1c54Howard HinnantSoftware License for The Fraunhofer FDK AAC Codec Library for Android
4824c19963e0263366047787b024a992afc2b1c54Howard Hinnant
5824c19963e0263366047787b024a992afc2b1c54Howard Hinnant� Copyright  1995 - 2013 Fraunhofer-Gesellschaft zur F�rderung der angewandten Forschung e.V.
6824c19963e0263366047787b024a992afc2b1c54Howard Hinnant  All rights reserved.
7824c19963e0263366047787b024a992afc2b1c54Howard Hinnant
8824c19963e0263366047787b024a992afc2b1c54Howard Hinnant 1.    INTRODUCTION
9824c19963e0263366047787b024a992afc2b1c54Howard HinnantThe Fraunhofer FDK AAC Codec Library for Android ("FDK AAC Codec") is software that implements
10824c19963e0263366047787b024a992afc2b1c54Howard Hinnantthe MPEG Advanced Audio Coding ("AAC") encoding and decoding scheme for digital audio.
11824c19963e0263366047787b024a992afc2b1c54Howard HinnantThis FDK AAC Codec software is intended to be used on a wide variety of Android devices.
12824c19963e0263366047787b024a992afc2b1c54Howard Hinnant
13824c19963e0263366047787b024a992afc2b1c54Howard HinnantAAC's HE-AAC and HE-AAC v2 versions are regarded as today's most efficient general perceptual
145e57142c5902c3f73a6fdcb8cab55e88ffb43a56Howard Hinnantaudio codecs. AAC-ELD is considered the best-performing full-bandwidth communications codec by
15824c19963e0263366047787b024a992afc2b1c54Howard Hinnantindependent studies and is widely deployed. AAC has been standardized by ISO and IEC as part
16824c19963e0263366047787b024a992afc2b1c54Howard Hinnantof the MPEG specifications.
17824c19963e0263366047787b024a992afc2b1c54Howard Hinnant
18824c19963e0263366047787b024a992afc2b1c54Howard HinnantPatent licenses for necessary patent claims for the FDK AAC Codec (including those of Fraunhofer)
19824c19963e0263366047787b024a992afc2b1c54Howard Hinnantmay be obtained through Via Licensing (www.vialicensing.com) or through the respective patent owners
20824c19963e0263366047787b024a992afc2b1c54Howard Hinnantindividually for the purpose of encoding or decoding bit streams in products that are compliant with
21824c19963e0263366047787b024a992afc2b1c54Howard Hinnantthe ISO/IEC MPEG audio standards. Please note that most manufacturers of Android devices already license
22824c19963e0263366047787b024a992afc2b1c54Howard Hinnantthese patent claims through Via Licensing or directly from the patent owners, and therefore FDK AAC Codec
23824c19963e0263366047787b024a992afc2b1c54Howard Hinnantsoftware may already be covered under those patent licenses when it is used for those licensed purposes only.
24824c19963e0263366047787b024a992afc2b1c54Howard Hinnant
25824c19963e0263366047787b024a992afc2b1c54Howard HinnantCommercially-licensed AAC software libraries, including floating-point versions with enhanced sound quality,
26824c19963e0263366047787b024a992afc2b1c54Howard Hinnantare also available from Fraunhofer. Users are encouraged to check the Fraunhofer website for additional
27824c19963e0263366047787b024a992afc2b1c54Howard Hinnantapplications information and documentation.
28824c19963e0263366047787b024a992afc2b1c54Howard Hinnant
29824c19963e0263366047787b024a992afc2b1c54Howard Hinnant2.    COPYRIGHT LICENSE
30824c19963e0263366047787b024a992afc2b1c54Howard Hinnant
31824c19963e0263366047787b024a992afc2b1c54Howard HinnantRedistribution and use in source and binary forms, with or without modification, are permitted without
32824c19963e0263366047787b024a992afc2b1c54Howard Hinnantpayment of copyright license fees provided that you satisfy the following conditions:
33824c19963e0263366047787b024a992afc2b1c54Howard Hinnant
34824c19963e0263366047787b024a992afc2b1c54Howard HinnantYou must retain the complete text of this software license in redistributions of the FDK AAC Codec or
35824c19963e0263366047787b024a992afc2b1c54Howard Hinnantyour modifications thereto in source code form.
36824c19963e0263366047787b024a992afc2b1c54Howard Hinnant
37824c19963e0263366047787b024a992afc2b1c54Howard HinnantYou must retain the complete text of this software license in the documentation and/or other materials
38824c19963e0263366047787b024a992afc2b1c54Howard Hinnantprovided with redistributions of the FDK AAC Codec or your modifications thereto in binary form.
39824c19963e0263366047787b024a992afc2b1c54Howard HinnantYou must make available free of charge copies of the complete source code of the FDK AAC Codec and your
40824c19963e0263366047787b024a992afc2b1c54Howard Hinnantmodifications thereto to recipients of copies in binary form.
41824c19963e0263366047787b024a992afc2b1c54Howard Hinnant
42The name of Fraunhofer may not be used to endorse or promote products derived from this library without
43prior written permission.
44
45You may not charge copyright license fees for anyone to use, copy or distribute the FDK AAC Codec
46software or your modifications thereto.
47
48Your modified versions of the FDK AAC Codec must carry prominent notices stating that you changed the software
49and the date of any change. For modified versions of the FDK AAC Codec, the term
50"Fraunhofer FDK AAC Codec Library for Android" must be replaced by the term
51"Third-Party Modified Version of the Fraunhofer FDK AAC Codec Library for Android."
52
533.    NO PATENT LICENSE
54
55NO EXPRESS OR IMPLIED LICENSES TO ANY PATENT CLAIMS, including without limitation the patents of Fraunhofer,
56ARE GRANTED BY THIS SOFTWARE LICENSE. Fraunhofer provides no warranty of patent non-infringement with
57respect to this software.
58
59You may use this FDK AAC Codec software or modifications thereto only for purposes that are authorized
60by appropriate patent licenses.
61
624.    DISCLAIMER
63
64This FDK AAC Codec software is provided by Fraunhofer on behalf of the copyright holders and contributors
65"AS IS" and WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, including but not limited to the implied warranties
66of merchantability and fitness for a particular purpose. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
67CONTRIBUTORS BE LIABLE for any direct, indirect, incidental, special, exemplary, or consequential damages,
68including but not limited to procurement of substitute goods or services; loss of use, data, or profits,
69or business interruption, however caused and on any theory of liability, whether in contract, strict
70liability, or tort (including negligence), arising in any way out of the use of this software, even if
71advised of the possibility of such damage.
72
735.    CONTACT INFORMATION
74
75Fraunhofer Institute for Integrated Circuits IIS
76Attention: Audio and Multimedia Departments - FDK AAC LL
77Am Wolfsmantel 33
7891058 Erlangen, Germany
79
80www.iis.fraunhofer.de/amm
81amm-info@iis.fraunhofer.de
82----------------------------------------------------------------------------------------------------------- */
83
84/***************************  Fraunhofer IIS FDK Tools  **********************
85
86   Author(s):
87   Description: fixed point intrinsics
88
89******************************************************************************/
90
91#if defined(__mips__)
92
93#if (__GNUC__) && defined(__mips__)	/* cppp replaced: elif */
94/* MIPS GCC based compiler */
95
96#define FUNCTION_fixmuldiv2_DD
97
98#define FUNCTION_fixmuldiv2BitExact_DD
99#define fixmuldiv2BitExact_DD(a,b) fixmuldiv2_DD(a,b)
100
101inline INT fixmuldiv2_DD (const INT a, const INT b)
102{
103  INT result ;
104  result = ((long long)a * b)>>32;
105  return result ;
106}
107
108#endif /* (__GNUC__) && defined(__mips__) */
109
110#endif /* __mips__ */
111
112#define FUNCTION_fixmulBitExact_DD
113#define fixmulBitExact_DD fixmul_DD
114