mat_lib.c
资源名称:msp430.rar [点击查看]
上传用户:xs588588
上传日期:2021-03-30
资源大小:242k
文件大小:2k
源码类别:
DSP编程
开发平台:
C/C++
- /*
- 2.4 kbps MELP Proposed Federal Standard speech coder
- Fixed-point C code, version 1.0
- Copyright (c) 1998, Texas Instruments, Inc.
- Texas Instruments has intellectual property rights on the MELP
- algorithm. The Texas Instruments contact for licensing issues for
- commercial and non-government use is William Gordon, Director,
- Government Contracts, Texas Instruments Incorporated, Semiconductor
- Group (phone 972 480 7442).
- The fixed-point version of the voice codec Mixed Excitation Linear
- Prediction (MELP) is based on specifications on the C-language software
- simulation contained in GSM 06.06 which is protected by copyright and
- is the property of the European Telecommunications Standards Institute
- (ETSI). This standard is available from the ETSI publication office
- tel. +33 (0)4 92 94 42 58. ETSI has granted a license to United States
- Department of Defense to use the C-language software simulation contained
- in GSM 06.06 for the purposes of the development of a fixed-point
- version of the voice codec Mixed Excitation Linear Prediction (MELP).
- Requests for authorization to make other use of the GSM 06.06 or
- otherwise distribute or modify them need to be addressed to the ETSI
- Secretariat fax: +33 493 65 47 16.
- */
- /*
- mat_lib.c: Matrix and vector manipulation library
- */
- #include "spbstd.h"
- #include "mathhalf.h"
- #include "mat.h"
- /***************************************************************************
- *
- * FUNCTION NAME: v_zap
- *
- * PURPOSE:
- *
- * Set the elements of a 16 bit input vector to zero.
- *
- * INPUTS:
- *
- * vec1 16 bit short signed integer (Shortword) vector whose
- * values fall in the range
- * 0xffff 8000 <= vec1 <= 0x0000 7fff.
- *
- * n size of vec1.
- *
- * OUTPUTS:
- *
- * none
- *
- * RETURN VALUE:
- *
- * vec1 16 bit short signed integer (Shortword) vector whose
- * values are equal to 0x0000 0000.
- *
- * IMPLEMENTATION:
- *
- * Set the elements of 16 bit input vector to zero.
- *
- * vec1 = 0
- *
- * KEYWORDS: zap, clear, reset
- *
- *************************************************************************/
- Shortword *v_zap(Shortword *vec1,Shortword n)
- {
- Shortword i;
- for(i = 0; i < n; i++) {
- vec1[i] = 0;
- }
- return(vec1);
- }