⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ipow.c

📁 shpf 1.9一个并行编译器
💻 C
字号:
//======================================================================
// NPAC $Id: ipow.C,v 1.1 1996/09/23 22:34:33 dbc Exp $
//======================================================================

int ipow(int i, int j) {

// _____________________________________________________________________
//|                                                                     |
//| Function to return the i raised to the power j.                     |
//|                                                                     |
//| H W Yau.  1st of February, 1995.                                    |
//| Northeast Parallel Architectures Center.                            |
//| Syracuse University.                                                |
//|_____________________________________________________________________|
//|                                                                     |
//| Edit record:                                                        |
//| 01/Jan/1995: First edit.                                            |
//| 16/Feb/1995: Removed PURE declaration of this function, PGI does    |
//|              not like it.                                           |
//| 20/Aug/1996: PGI compiler now likes PURE attribute.                 |
//|_____________________________________________________________________|

  int k, tmp ;

  tmp = 1 ;
  for(k = 1 ; k <= j ; k++)
    tmp = tmp * i ;
  return tmp ;
}

//======================================================================

⌨️ 快捷键说明

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