sinsp_d.c

来自「ROMexamples dsp672x的romboot 例子」· C语言 代码 · 共 40 行

C
40
字号
/* ======================================================================== *//*  TEXAS INSTRUMENTS, INC.                                                 *//*                                                                          *//*  NAME                                                                    *//*      sinsp -- Driver file for sinsp                                      *//*                                                                          *//* ------------------------------------------------------------------------ *//*          Copyright (C) 2005 Texas Instruments, Incorporated.             *//*                          All Rights Reserved.                            *//* ======================================================================== */#include <stdio.h>
#include <math.h>
/* ======================================================================== *//*  Input variable to function.                                             *//* ======================================================================== */float a = 17.6184514;
/* ======================================================================== *//*  Variable to catch return values from function.                          *//* ======================================================================== */float ret_val;/* ======================================================================== *//*  MAIN -- Top level driver for the test.                                  *//* ======================================================================== */int main(){   
	printf("Calculating single precision sin from C672x ROM ...\n");    ret_val = sinf(a);
	printf("Calculation is complete.\n");}/* ======================================================================== *//*  End of file:  sinsp_d.c                                                 *//* ------------------------------------------------------------------------ *//*          Copyright (C) 2005 Texas Instruments, Incorporated.             *//*                          All Rights Reserved.                            *//* ======================================================================== */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?