剖析Intel IA32 架構下C 語言及CPU 浮點數機制 Version 0.01 哈爾濱工業大學 謝煜波 (email: xieyubo@126.com 網址:http://purec.binghua.com) (QQ:13916830 哈工大紫丁香BBSID:iamxiaohan) 前言 這兩天翻看一本C 語言書的時候,發現上面有一段這樣寫到 例:將同一實型數分別賦值給單精度實型和雙精度實型,然后打印輸出。 #include <stdio.h> main() { float a double b a = 123456.789e4 b = 123456.789e4 printf(“%f\n%f\n”,a,b) } 運行結果如下:
標簽: Version xieyubo Intel email
上傳時間: 2013-12-25
上傳用戶:徐孺
Please place this entire folder (complete with contents) into your System32 directory folder Double click on the Register .bat file to Register Double click on the UnRegister .bat file to UnRegister It s as simple as that! Cheers
標簽: folder directory complete contents
上傳時間: 2013-12-23
上傳用戶:jyycc
函數模板T max(T a, T b, T c),使之實現對任何類型數,能從三個數中求出最大數返回。設計各種類型數據(char,short,long,float,double)調用此函數模板。
上傳時間: 2015-07-07
上傳用戶:時代電子小智
//=== === === === === === === === === === === ===== //函數說明 //函數名稱:Correlation //函數功能:計算最小二乘法擬合的多項式的相關系數 //使用方法:int M------ 擬合多項式的階數(已知條件) // double *b--- 擬合曲線的系數,排列順序為由高階到低階(已知條件) // double *x--- 結點x軸數據(已知條件) // double *y--- 結點y軸數據(已知條件) // double *Yg-- 結點估計值,個數為m(過程變量) // int m------ 結點個數(已知條件) //注意事項:多項式階數最高為10,多項式的形式為 y = a0 + a1x +a2x2
標簽: Correlation 函數 計算 最小二乘法擬合
上傳時間: 2013-11-26
上傳用戶:change0329
//=== === === === === === === === === === === ===== //函數說明 //函數名稱:Correlation //函數功能:計算最小二乘法擬合的多項式的相關系數 //使用方法:int M------擬合多項式的項數(已知條件) // double *b---擬合曲線的系數,按升次排列(已知條件) // double *x---結點x軸數據(已知條件) // double *y---結點y軸數據(已知條件) // double *Yg--結點估計值,與*y相對應,個數為m(過程變量) // int m------結點個數(已知條件) //注意事項:多項式階數最高為10,多項式的形式為 y = b0 + b1*(x-Xavr)...
標簽: Correlation 函數 計算 最小二乘法擬合
上傳時間: 2014-11-23
上傳用戶:yxgi5
//=== === === === === === === === === === === === === === = //函數說明 //函數名稱:PolyFit //函數功能:最小二乘法曲線擬合 //使用方法:double *x ---- 存放n個數據點的X坐標 // double *y ---- 存放n個數據點的Y坐標 // int n -------- 給定數據點個數 // double *a ---- 返回m-1次擬合多項式的m個系數 // int m -------- 擬合多項式的項數,即擬合多項式的最高次為m-1。要求m<=n,且 // m<=20。若m>n或m>20,則本函數自動按m=min{n,20}處理 // double *dt --- dt[0]返回擬合多項式與各數據點誤差的平方和;dt[1]返回擬合多 // 項式與各數據點的誤差絕對值之和;dt[2]返回擬合多項式與各數據 // 點誤差絕對值的最大值 //注意事項:擬合多項式的形式為 y = b0 + b1*(x-Xavr)...
上傳時間: 2015-07-19
上傳用戶:waizhang
The Valgrind distribution has multiple tools. The most popular is the memory checking tool (called Memcheck) which can detect many common memory errors such as: * touching memory you shouldn t (eg. overrunning heap block boundaries) * using values before they have been initialized * incorrect freeing of memory, such as double-freeing heap blocks * memory leaks.
標簽: distribution The Valgrind checking
上傳時間: 2014-01-14
上傳用戶:xc216
Address book helps you look up your addresses from the system tray. It is quite useful in that way 慶ause it stays out of the way and is easily accessible when needed. Double clicking on any URL will start the default web browser and take you to that URL. Double clicking on the phone number will dial that number. Every column supports sorting and can be customized to your needs. Preview will display the notes associated with each record. This program can also import Comma Separated Values (*csv) text files of Outlook Express.
標簽: addresses Address system useful
上傳時間: 2014-07-08
上傳用戶:lyy1234
1.功能 用高斯方法計算n重積分(C語言) 2.參數說明 int n : 積分重數 int js[n] : js[k]表示第k層積分區間所劃分的子區間 void (*ss)() : 指向計算各層積分上、下限的函數名(用戶自編) double (*f)() : 指向計算被積函數值的函數名(用戶自編) double gaus() : 函數返回積分值 3.文件說明 gaus.c為函數程序 gaus0.c為主函數程序
上傳時間: 2014-01-05
上傳用戶:731140412
很多嵌入式系統,特別是應用于圖像處理與高速數據采集等場合的嵌入式系統,都需要高速緩存大量的數據。DDR(Double Data Rate,雙數據速率)SDRAM由于其速度快、容量大,而且價格便宜,因此能夠很好地滿足上述場合對大量數據緩存的需求。但DDR SDRAM的接口不能直接與現今的微處理器和DSP的存儲器接口相連,需要在其間插入控制器實現微處理器或DSP對存儲器的控制。
標簽: 嵌入式系統
上傳時間: 2015-09-18
上傳用戶:zjf3110