亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? hp-timing.h

?? glibc 庫, 不僅可以學習使用庫函數(shù),還可以學習函數(shù)的具體實現(xiàn),是提高功力的好資料
?? H
字號:
/* High precision, low overhead timing functions.  i686 version.   Copyright (C) 1998, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.   This file is part of the GNU C Library.   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.   The GNU C Library is free software; you can redistribute it and/or   modify it under the terms of the GNU Lesser General Public   License as published by the Free Software Foundation; either   version 2.1 of the License, or (at your option) any later version.   The GNU C Library is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU   Lesser General Public License for more details.   You should have received a copy of the GNU Lesser General Public   License along with the GNU C Library; if not, write to the Free   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA   02111-1307 USA.  */#ifndef _HP_TIMING_H#define _HP_TIMING_H	1#include <string.h>#include <sys/param.h>#include <stdio-common/_itoa.h>/* The macros defined here use the timestamp counter in i586 and up versions   of the x86 processors.  They provide a very accurate way to measure the   time with very little overhead.  The time values themself have no real   meaning, only differences are interesting.   This version is for the i686 processors.  The difference to the i586   version is that the timerstamp register is unconditionally used.  This is   not the case for the i586 version where we have to perform runtime test   whether the processor really has this capability.  We have to make this   distinction since the sysdeps/i386/i586 code is supposed to work on all   platforms while the i686 already contains i686-specific code.   The list of macros we need includes the following:   - HP_TIMING_AVAIL: test for availability.   - HP_TIMING_INLINE: this macro is non-zero if the functionality is not     implemented using function calls but instead uses some inlined code     which might simply consist of a few assembler instructions.  We have to     know this since we might want to use the macros here in places where we     cannot make function calls.   - hp_timing_t: This is the type for variables used to store the time     values.   - HP_TIMING_ZERO: clear `hp_timing_t' object.   - HP_TIMING_NOW: place timestamp for current time in variable given as     parameter.   - HP_TIMING_DIFF_INIT: do whatever is necessary to be able to use the     HP_TIMING_DIFF macro.   - HP_TIMING_DIFF: compute difference between two times and store it     in a third.  Source and destination might overlap.   - HP_TIMING_ACCUM: add time difference to another variable.  This might     be a bit more complicated to implement for some platforms as the     operation should be thread-safe and 64bit arithmetic on 32bit platforms     is not.   - HP_TIMING_ACCUM_NT: this is the variant for situations where we know     there are no threads involved.   - HP_TIMING_PRINT: write decimal representation of the timing value into     the given string.  This operation need not be inline even though     HP_TIMING_INLINE is specified.*//* We always assume having the timestamp register.  */#define HP_TIMING_AVAIL		(1)/* We indeed have inlined functions.  */#define HP_TIMING_INLINE	(1)/* We use 64bit values for the times.  */typedef unsigned long long int hp_timing_t;/* Set timestamp value to zero.  */#define HP_TIMING_ZERO(Var)	(Var) = (0)/* That's quite simple.  Use the `rdtsc' instruction.  Note that the value   might not be 100% accurate since there might be some more instructions   running in this moment.  This could be changed by using a barrier like   'cpuid' right before the `rdtsc' instruciton.  But we are not interested   in accurate clock cycles here so we don't do this.  */#define HP_TIMING_NOW(Var)	__asm__ __volatile__ ("rdtsc" : "=A" (Var))/* Use two 'rdtsc' instructions in a row to find out how long it takes.  */#define HP_TIMING_DIFF_INIT() \  do {									      \    if (GLRO(dl_hp_timing_overhead) == 0)				      \      {									      \	int __cnt = 5;							      \	GLRO(dl_hp_timing_overhead) = ~0ull;				      \	do								      \	  {								      \	    hp_timing_t __t1, __t2;					      \	    HP_TIMING_NOW (__t1);					      \	    HP_TIMING_NOW (__t2);					      \	    if (__t2 - __t1 < GLRO(dl_hp_timing_overhead))		      \	      GLRO(dl_hp_timing_overhead) = __t2 - __t1;		      \	  }								      \	while (--__cnt > 0);						      \      }									      \  } while (0)/* It's simple arithmetic for us.  */#define HP_TIMING_DIFF(Diff, Start, End)	(Diff) = ((End) - (Start))/* We have to jump through hoops to get this correctly implemented.  */#define HP_TIMING_ACCUM(Sum, Diff) \  do {									      \    int __not_done;							      \    hp_timing_t __oldval = (Sum);					      \    hp_timing_t __diff = (Diff) - GLRO(dl_hp_timing_overhead);		      \    do									      \      {									      \	hp_timing_t __newval = __oldval + __diff;			      \	int __temp0, __temp1;						      \	__asm__ __volatile__ ("xchgl %0, %%ebx\n\t"			      \			      "lock; cmpxchg8b %1\n\t"			      \			      "sete %%bl\n\t"				      \			      "xchgl %0, %%ebx"				      \			      : "=SD" (__not_done), "=m" (Sum),		      \				"=A" (__oldval), "=c" (__temp0)		      \			      : "m" (Sum), "2" (__oldval),		      \				"3" ((unsigned int) (__newval >> 32)),	      \				"0" ((unsigned int) __newval));		      \      }									      \    while ((unsigned char) __not_done);					      \  } while (0)/* No threads, no extra work.  */#define HP_TIMING_ACCUM_NT(Sum, Diff)	(Sum) += (Diff)/* Print the time value.  */#define HP_TIMING_PRINT(Buf, Len, Val) \  do {									      \    char __buf[20];							      \    char *__cp = _itoa (Val, __buf + sizeof (__buf), 10, 0);		      \    size_t __len = (Len);						      \    char *__dest = (Buf);						      \    while (__len-- > 0 && __cp < __buf + sizeof (__buf))		      \      *__dest++ = *__cp++;						      \    memcpy (__dest, " clock cycles", MIN (__len, sizeof (" clock cycles")));  \  } while (0)#endif	/* hp-timing.h */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
青青草97国产精品免费观看| 在线免费观看成人短视频| 成人91在线观看| 91精品国产福利在线观看| 中文一区二区完整视频在线观看| 亚洲国产精品一区二区久久| 成人毛片老司机大片| 日韩欧美国产一区二区三区| 一区二区激情小说| 成人一级片在线观看| 91精品婷婷国产综合久久| 一区二区三区四区蜜桃| 成人妖精视频yjsp地址| 日韩一级二级三级| 性感美女极品91精品| 日本高清不卡在线观看| 亚洲欧洲av一区二区三区久久| 国产一区二区不卡在线| 欧美va亚洲va在线观看蝴蝶网| 亚洲综合成人在线| 欧美在线免费播放| 亚洲欧美另类图片小说| www.亚洲免费av| 国产欧美日本一区二区三区| 免费成人av在线播放| 欧美一级精品在线| 日本欧美加勒比视频| 欧美一区二区三区思思人| 亚洲一区二区三区中文字幕 | 欧美中文字幕亚洲一区二区va在线| 久久久精品免费免费| 久久99精品视频| 欧美大胆一级视频| 久久99国产精品久久| 五月天激情综合网| 亚洲午夜在线电影| 久久先锋影音av鲁色资源| 欧美一区二区在线看| 成人永久免费视频| 成人av电影在线观看| 成人va在线观看| 99久久久免费精品国产一区二区 | 亚洲精品乱码久久久久久日本蜜臀| 亚洲欧美福利一区二区| www.成人在线| 亚洲精品免费一二三区| 欧美在线制服丝袜| 午夜久久久久久久久久一区二区| 91精品国产日韩91久久久久久| 免费成人在线观看| 欧美激情在线看| 91蜜桃在线观看| 亚洲3atv精品一区二区三区| 91精品国产综合久久久蜜臀图片 | 欧美成人高清电影在线| 国产一区二区不卡| 一区二区三区精品视频| 正在播放亚洲一区| 国产aⅴ综合色| 亚洲一区二区影院| 精品国产人成亚洲区| 成人午夜电影小说| 亚洲国产精品久久人人爱| 日韩欧美你懂的| 91蝌蚪porny成人天涯| 亚洲成人av中文| 国产精品美日韩| 欧美日韩国产大片| 国产成人高清在线| 亚洲成人免费观看| 国产精品女主播在线观看| 欧美日韩亚洲高清一区二区| 国产一区二区三区精品视频| 亚洲免费av网站| 精品免费国产二区三区| 色天天综合久久久久综合片| 韩国一区二区视频| 亚洲成人自拍网| 成人欧美一区二区三区黑人麻豆 | 国产精品996| 亚洲国产乱码最新视频 | 奇米影视一区二区三区| 国产精品久久久久影院| 日韩欧美国产一二三区| 欧美写真视频网站| 国产69精品久久久久毛片| 亚洲午夜激情av| 国产精品乱码人人做人人爱| 日韩一级免费观看| 欧美在线不卡视频| 99久久er热在这里只有精品15| 久久99久久99小草精品免视看| 亚洲午夜久久久| 国产精品嫩草影院com| 精品999久久久| 欧美一区二区视频在线观看2020 | 国产午夜久久久久| 日韩欧美中文一区二区| 欧美日韩www| 91久久线看在观草草青青| 成人免费毛片app| 国产乱码一区二区三区| 麻豆极品一区二区三区| 日韩中文字幕av电影| 亚洲香肠在线观看| 一区二区三区精品在线观看| 亚洲图片激情小说| 国产精品天美传媒沈樵| 国产欧美1区2区3区| 亚洲精品在线观看网站| 日韩精品一区二区三区视频| 6080亚洲精品一区二区| 欧美日韩激情一区| 欧美日韩在线一区二区| 欧美日韩综合色| 欧洲色大大久久| 777亚洲妇女| 日韩美女天天操| 337p日本欧洲亚洲大胆色噜噜| 日韩欧美一二三| 久久噜噜亚洲综合| 国产女主播视频一区二区| 国产精品欧美一区二区三区| 国产精品久99| 一区二区三区在线播| 午夜精品123| 久久电影国产免费久久电影| 韩国女主播一区二区三区| 国产一区二区导航在线播放| 丁香激情综合国产| 91蜜桃在线免费视频| 欧美男女性生活在线直播观看| 欧美一级免费观看| 久久久高清一区二区三区| 中文字幕日韩一区二区| 亚洲精品伦理在线| 蜜桃精品视频在线| 成人免费精品视频| 欧美日韩一区不卡| 精品国内片67194| 中文字幕中文字幕一区| 亚洲国产aⅴ成人精品无吗| 精彩视频一区二区三区| av中文字幕一区| 在线观看91av| 国产欧美va欧美不卡在线| 一区二区三区美女| 国产一区二区三区四区五区入口| 成人av在线资源| 91精品国产福利| 综合欧美亚洲日本| 蜜臀av一级做a爰片久久| 成人国产精品免费观看动漫| 欧美精品国产精品| 国产日韩欧美综合一区| 日韩激情av在线| 成人h精品动漫一区二区三区| 欧美日韩dvd在线观看| 国产日韩欧美精品综合| 肉肉av福利一精品导航| 粉嫩一区二区三区性色av| 6080亚洲精品一区二区| 亚洲日本va午夜在线电影| 玖玖九九国产精品| 在线亚洲一区二区| 精品国产成人系列| 亚洲国产精品久久艾草纯爱 | 欧美亚一区二区| 国产无遮挡一区二区三区毛片日本 | 一区二区在线免费| 国产精品原创巨作av| 3d成人动漫网站| 一区二区三区不卡视频| 丰满少妇在线播放bd日韩电影| 日韩一区二区精品在线观看| 亚洲亚洲人成综合网络| 99国产欧美久久久精品| 欧美国产日韩精品免费观看| 久久成人免费网站| 欧美丰满少妇xxxxx高潮对白| 亚洲视频免费看| 国产成人在线视频免费播放| 精品三级在线观看| 日本系列欧美系列| 欧美一区日韩一区| 亚洲成人免费在线观看| 日本高清不卡aⅴ免费网站| 中文字幕欧美一| a在线播放不卡| 欧美国产日韩a欧美在线观看| 国产风韵犹存在线视精品| 欧美成人官网二区| 国产在线精品一区二区| 日韩免费观看高清完整版 | 日韩精品久久理论片| 欧美日韩午夜精品| 五月天激情小说综合| 欧美精三区欧美精三区| 日韩黄色一级片| 精品乱人伦一区二区三区|