📄 armippp_power_s64.c
字号:
/** * * * File Name: armIPPP_Power_S64.c * OpenMAX DL: v1.0.2 * Revision: 10586 * Date: Wednesday, March 5, 2008 * * (c) Copyright 2007-2008 ARM Limited. All Rights Reserved. * * * * Description : Computes one term to the power of the other. * */#include "omxtypes.h"#include "armIP.h"/** * Function: armIPPP_Power_S64 * * Description: * Computes "base" to the power of "power". This function uses the C library * apart from the case of 0 to the power 0 which we must ensure is returned as 1 * * Return Value: * OMX_S64 -- The result of "base" raised to "power" */ OMX_S64 armIPPP_Power_S64( OMX_S32 base, OMX_S32 power ){ /* Although we must ensure that 0 to the power 0 is returned as 1, it */ /* requires less code just to say anything that is to the power 0 is 1. */ if (power==0) { return 1; } return armRoundFloatToS64(pow(base, power));}/* End of file */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -