代码搜索结果
找到约 10,000 项符合
Raspberry Pi 的代码
pi.s
; ******************************************************************************
;
pi.c
#include
#include
#include
int no_threads;
long int N;
long int global_index=0;
double pi=0.0;
pthread_mutex_t mutex1;
void *slave(void *ignored)
{
long in
pi.cpp
#include "stdio.h"
void main()
{
long a=10000,b=0,c=2800,d=0,e=0,f[2801],g=0;
for( ; b-c; )
f[ b++ ]=a/5;
for( ;d=0, g=c*2; c-=14, printf( "%.4d",e+d/a ), e = d%a )
fo
pi.h
#define PI 3.141592653589793
#define TWOPI 6.28318530717959
pi.x
const int LimitN = 1000;
void sys_putchar(char c)
{
%asm {
%writereg("r2", c);
%asm("LI", "r0", "1");
%asm("INT", "3");
%asm("BNEZ", "r1", "-2");
%asm("NOP");
};
}
void puts
pi.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
pi.cpp
// Pi.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
//#include
//#include
long a=10000,b,c=2800,d,e,f[2801],g;
main()
{
pi.plg
Build Log
--------------------Configuration: Pi - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\DOCUME~1\ADMINI~1.4