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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ftcalc.c

?? QT 開發環境里面一個很重要的文件
?? C
字號:
/***************************************************************************//*                                                                         *//*  ftcalc.c                                                               *//*                                                                         *//*    Arithmetic computations (body).                                      *//*                                                                         *//*  Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006 by                   *//*  David Turner, Robert Wilhelm, and Werner Lemberg.                      *//*                                                                         *//*  This file is part of the FreeType project, and may only be used,       *//*  modified, and distributed under the terms of the FreeType project      *//*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     *//*  this file you indicate that you have read the license and              *//*  understand and accept it fully.                                        *//*                                                                         *//***************************************************************************/  /*************************************************************************/  /*                                                                       */  /* Support for 1-complement arithmetic has been totally dropped in this  */  /* release.  You can still write your own code if you need it.           */  /*                                                                       */  /*************************************************************************/  /*************************************************************************/  /*                                                                       */  /* Implementing basic computation routines.                              */  /*                                                                       */  /* FT_MulDiv(), FT_MulFix(), FT_DivFix(), FT_RoundFix(), FT_CeilFix(),   */  /* and FT_FloorFix() are declared in freetype.h.                         */  /*                                                                       */  /*************************************************************************/#include <ft2build.h>#include FT_INTERNAL_CALC_H#include FT_INTERNAL_DEBUG_H#include FT_INTERNAL_OBJECTS_H/* we need to define a 64-bits data type here */#ifdef FT_LONG64  typedef FT_INT64  FT_Int64;#else  typedef struct  FT_Int64_  {    FT_UInt32  lo;    FT_UInt32  hi;  } FT_Int64;#endif /* FT_LONG64 */  /*************************************************************************/  /*                                                                       */  /* The macro FT_COMPONENT is used in trace mode.  It is an implicit      */  /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log  */  /* messages during execution.                                            */  /*                                                                       */#undef  FT_COMPONENT#define FT_COMPONENT  trace_calc  /* The following three functions are available regardless of whether */  /* FT_LONG64 is defined.                                             */  /* documentation is in freetype.h */  FT_EXPORT_DEF( FT_Fixed )  FT_RoundFix( FT_Fixed  a )  {    return ( a >= 0 ) ?   ( a + 0x8000L ) & ~0xFFFFL                      : -((-a + 0x8000L ) & ~0xFFFFL );  }  /* documentation is in freetype.h */  FT_EXPORT_DEF( FT_Fixed )  FT_CeilFix( FT_Fixed  a )  {    return ( a >= 0 ) ?   ( a + 0xFFFFL ) & ~0xFFFFL                      : -((-a + 0xFFFFL ) & ~0xFFFFL );  }  /* documentation is in freetype.h */  FT_EXPORT_DEF( FT_Fixed )  FT_FloorFix( FT_Fixed  a )  {    return ( a >= 0 ) ?   a & ~0xFFFFL                      : -((-a) & ~0xFFFFL );  }#ifdef FT_CONFIG_OPTION_OLD_INTERNALS  /* documentation is in ftcalc.h */  FT_EXPORT_DEF( FT_Int32 )  FT_Sqrt32( FT_Int32  x )  {    FT_ULong  val, root, newroot, mask;    root = 0;    mask = 0x40000000L;    val  = (FT_ULong)x;    do    {      newroot = root + mask;      if ( newroot <= val )      {        val -= newroot;        root = newroot + mask;      }      root >>= 1;      mask >>= 2;    } while ( mask != 0 );    return root;  }#endif /* FT_CONFIG_OPTION_OLD_INTERNALS */#ifdef FT_LONG64  /* documentation is in freetype.h */  FT_EXPORT_DEF( FT_Long )  FT_MulDiv( FT_Long  a,             FT_Long  b,             FT_Long  c )  {    FT_Int   s;    FT_Long  d;    s = 1;    if ( a < 0 ) { a = -a; s = -1; }    if ( b < 0 ) { b = -b; s = -s; }    if ( c < 0 ) { c = -c; s = -s; }    d = (FT_Long)( c > 0 ? ( (FT_Int64)a * b + ( c >> 1 ) ) / c                         : 0x7FFFFFFFL );    return ( s > 0 ) ? d : -d;  }#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER  /* documentation is in ftcalc.h */  FT_BASE_DEF( FT_Long )  FT_MulDiv_No_Round( FT_Long  a,                      FT_Long  b,                      FT_Long  c )  {    FT_Int   s;    FT_Long  d;    s = 1;    if ( a < 0 ) { a = -a; s = -1; }    if ( b < 0 ) { b = -b; s = -s; }    if ( c < 0 ) { c = -c; s = -s; }    d = (FT_Long)( c > 0 ? (FT_Int64)a * b / c                         : 0x7FFFFFFFL );    return ( s > 0 ) ? d : -d;  }#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */  /* documentation is in freetype.h */  FT_EXPORT_DEF( FT_Long )  FT_MulFix( FT_Long  a,             FT_Long  b )  {    FT_Int   s = 1;    FT_Long  c;    if ( a < 0 ) { a = -a; s = -1; }    if ( b < 0 ) { b = -b; s = -s; }    c = (FT_Long)( ( (FT_Int64)a * b + 0x8000L ) >> 16 );    return ( s > 0 ) ? c : -c ;  }  /* documentation is in freetype.h */  FT_EXPORT_DEF( FT_Long )  FT_DivFix( FT_Long  a,             FT_Long  b )  {    FT_Int32   s;    FT_UInt32  q;    s = 1;    if ( a < 0 ) { a = -a; s = -1; }    if ( b < 0 ) { b = -b; s = -s; }    if ( b == 0 )      /* check for division by 0 */      q = 0x7FFFFFFFL;    else      /* compute result directly */      q = (FT_UInt32)( ( ( (FT_Int64)a << 16 ) + ( b >> 1 ) ) / b );    return ( s < 0 ? -(FT_Long)q : (FT_Long)q );  }#else /* FT_LONG64 */  static void  ft_multo64( FT_UInt32  x,              FT_UInt32  y,              FT_Int64  *z )  {    FT_UInt32  lo1, hi1, lo2, hi2, lo, hi, i1, i2;    lo1 = x & 0x0000FFFFU;  hi1 = x >> 16;    lo2 = y & 0x0000FFFFU;  hi2 = y >> 16;    lo = lo1 * lo2;    i1 = lo1 * hi2;    i2 = lo2 * hi1;    hi = hi1 * hi2;    /* Check carry overflow of i1 + i2 */    i1 += i2;    hi += (FT_UInt32)( i1 < i2 ) << 16;    hi += i1 >> 16;    i1  = i1 << 16;    /* Check carry overflow of i1 + lo */    lo += i1;    hi += ( lo < i1 );    z->lo = lo;    z->hi = hi;  }  static FT_UInt32  ft_div64by32( FT_UInt32  hi,                FT_UInt32  lo,                FT_UInt32  y )  {    FT_UInt32  r, q;    FT_Int     i;    q = 0;    r = hi;    if ( r >= y )      return (FT_UInt32)0x7FFFFFFFL;    i = 32;    do    {      r <<= 1;      q <<= 1;      r  |= lo >> 31;      if ( r >= (FT_UInt32)y )      {        r -= y;        q |= 1;      }      lo <<= 1;    } while ( --i );    return q;  }  static void  FT_Add64( FT_Int64*  x,            FT_Int64*  y,            FT_Int64  *z )  {    register FT_UInt32  lo, hi, max;    max = x->lo > y->lo ? x->lo : y->lo;    lo  = x->lo + y->lo;    hi  = x->hi + y->hi + ( lo < max );    z->lo = lo;    z->hi = hi;  }  /* documentation is in freetype.h */  FT_EXPORT_DEF( FT_Long )  FT_MulDiv( FT_Long  a,             FT_Long  b,             FT_Long  c )  {    long  s;    if ( a == 0 || b == c )      return a;    s  = a; a = FT_ABS( a );    s ^= b; b = FT_ABS( b );    s ^= c; c = FT_ABS( c );    if ( a <= 46340L && b <= 46340L && c <= 176095L && c > 0 )      a = ( a * b + ( c >> 1 ) ) / c;    else if ( c > 0 )    {      FT_Int64  temp, temp2;      ft_multo64( a, b, &temp );      temp2.hi = 0;      temp2.lo = (FT_UInt32)(c >> 1);      FT_Add64( &temp, &temp2, &temp );      a = ft_div64by32( temp.hi, temp.lo, c );    }    else      a = 0x7FFFFFFFL;    return ( s < 0 ? -a : a );  }#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER  FT_BASE_DEF( FT_Long )  FT_MulDiv_No_Round( FT_Long  a,                      FT_Long  b,                      FT_Long  c )  {    long  s;    if ( a == 0 || b == c )      return a;    s  = a; a = FT_ABS( a );    s ^= b; b = FT_ABS( b );    s ^= c; c = FT_ABS( c );    if ( a <= 46340L && b <= 46340L && c > 0 )      a = a * b / c;    else if ( c > 0 )    {      FT_Int64  temp;      ft_multo64( a, b, &temp );      a = ft_div64by32( temp.hi, temp.lo, c );    }    else      a = 0x7FFFFFFFL;    return ( s < 0 ? -a : a );  }#endif /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER */  /* documentation is in freetype.h */  FT_EXPORT_DEF( FT_Long )  FT_MulFix( FT_Long  a,             FT_Long  b )  {#if 1    FT_Long   sa, sb;    FT_ULong  ua, ub;    if ( a == 0 || b == 0x10000L )      return a;    sa = ( a >> ( sizeof ( a ) * 8 - 1 ) );     a = ( a ^ sa ) - sa;    sb = ( b >> ( sizeof ( b ) * 8 - 1 ) );     b = ( b ^ sb ) - sb;    ua = (FT_ULong)a;    ub = (FT_ULong)b;    if ( ua <= 2048 && ub <= 1048576L )    {      ua = ( ua * ub + 0x8000 ) >> 16;    }    else    {      FT_ULong  al = ua & 0xFFFF;      ua = ( ua >> 16 ) * ub +  al * ( ub >> 16 ) +           ( ( al * ( ub & 0xFFFF ) + 0x8000 ) >> 16 );    }    sa ^= sb,    ua  = (FT_ULong)(( ua ^ sa ) - sa);    return (FT_Long)ua;#else /* 0 */    FT_Long   s;    FT_ULong  ua, ub;    if ( a == 0 || b == 0x10000L )      return a;    s  = a; a = FT_ABS(a);    s ^= b; b = FT_ABS(b);    ua = (FT_ULong)a;    ub = (FT_ULong)b;    if ( ua <= 2048 && ub <= 1048576L )    {      ua = ( ua * ub + 0x8000L ) >> 16;    }    else    {      FT_ULong  al = ua & 0xFFFFL;      ua = ( ua >> 16 ) * ub +  al * ( ub >> 16 ) +           ( ( al * ( ub & 0xFFFFL ) + 0x8000L ) >> 16 );    }    return ( s < 0 ? -(FT_Long)ua : (FT_Long)ua );#endif /* 0 */  }  /* documentation is in freetype.h */  FT_EXPORT_DEF( FT_Long )  FT_DivFix( FT_Long  a,             FT_Long  b )  {    FT_Int32   s;    FT_UInt32  q;    s  = a; a = FT_ABS(a);    s ^= b; b = FT_ABS(b);    if ( b == 0 )    {      /* check for division by 0 */      q = 0x7FFFFFFFL;    }    else if ( ( a >> 16 ) == 0 )    {      /* compute result directly */      q = (FT_UInt32)( (a << 16) + (b >> 1) ) / (FT_UInt32)b;    }    else    {      /* we need more bits; we have to do it by hand */      FT_Int64  temp, temp2;      temp.hi  = (FT_Int32) (a >> 16);      temp.lo  = (FT_UInt32)(a << 16);      temp2.hi = 0;      temp2.lo = (FT_UInt32)( b >> 1 );      FT_Add64( &temp, &temp2, &temp );      q = ft_div64by32( temp.hi, temp.lo, b );    }    return ( s < 0 ? -(FT_Int32)q : (FT_Int32)q );  }#if 0  /* documentation is in ftcalc.h */  FT_EXPORT_DEF( void )  FT_MulTo64( FT_Int32   x,              FT_Int32   y,              FT_Int64  *z )  {    FT_Int32  s;    s  = x; x = FT_ABS( x );    s ^= y; y = FT_ABS( y );    ft_multo64( x, y, z );    if ( s < 0 )    {      z->lo = (FT_UInt32)-(FT_Int32)z->lo;      z->hi = ~z->hi + !( z->lo );    }  }  /* apparently, the second version of this code is not compiled correctly */  /* on Mac machines with the MPW C compiler..  tsk, tsk, tsk...         */#if 1  FT_EXPORT_DEF( FT_Int32 )  FT_Div64by32( FT_Int64*  x,                FT_Int32   y )  {    FT_Int32   s;    FT_UInt32  q, r, i, lo;    s  = x->hi;    if ( s < 0 )    {      x->lo = (FT_UInt32)-(FT_Int32)x->lo;      x->hi = ~x->hi + !x->lo;    }    s ^= y;  y = FT_ABS( y );    /* Shortcut */    if ( x->hi == 0 )    {      if ( y > 0 )        q = x->lo / y;      else        q = 0x7FFFFFFFL;      return ( s < 0 ? -(FT_Int32)q : (FT_Int32)q );    }    r  = x->hi;    lo = x->lo;    if ( r >= (FT_UInt32)y ) /* we know y is to be treated as unsigned here */      return ( s < 0 ? 0x80000001UL : 0x7FFFFFFFUL );                             /* Return Max/Min Int32 if division overflow. */                             /* This includes division by zero! */    q = 0;    for ( i = 0; i < 32; i++ )    {      r <<= 1;      q <<= 1;      r  |= lo >> 31;      if ( r >= (FT_UInt32)y )      {        r -= y;        q |= 1;      }      lo <<= 1;    }    return ( s < 0 ? -(FT_Int32)q : (FT_Int32)q );  }#else /* 0 */  FT_EXPORT_DEF( FT_Int32 )  FT_Div64by32( FT_Int64*  x,                FT_Int32   y )  {    FT_Int32   s;    FT_UInt32  q;    s  = x->hi;    if ( s < 0 )    {      x->lo = (FT_UInt32)-(FT_Int32)x->lo;      x->hi = ~x->hi + !x->lo;    }    s ^= y;  y = FT_ABS( y );    /* Shortcut */    if ( x->hi == 0 )    {      if ( y > 0 )        q = ( x->lo + ( y >> 1 ) ) / y;      else        q = 0x7FFFFFFFL;      return ( s < 0 ? -(FT_Int32)q : (FT_Int32)q );    }    q = ft_div64by32( x->hi, x->lo, y );    return ( s < 0 ? -(FT_Int32)q : (FT_Int32)q );  }#endif /* 0 */#endif /* 0 */#endif /* FT_LONG64 */  /* documentation is in ftcalc.h */  FT_BASE_DEF( FT_Int32 )  FT_SqrtFixed( FT_Int32  x )  {    FT_UInt32  root, rem_hi, rem_lo, test_div;    FT_Int     count;    root = 0;    if ( x > 0 )    {      rem_hi = 0;      rem_lo = x;      count  = 24;      do      {        rem_hi   = ( rem_hi << 2 ) | ( rem_lo >> 30 );        rem_lo <<= 2;        root   <<= 1;        test_div = ( root << 1 ) + 1;        if ( rem_hi >= test_div )        {          rem_hi -= test_div;          root   += 1;        }      } while ( --count );    }    return (FT_Int32)root;  }/* END */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品日韩在线一区| 国产精一区二区三区| 在线精品视频免费观看| 亚洲最新在线观看| 欧美性受极品xxxx喷水| 天堂成人免费av电影一区| 欧美一区二区三区公司| 紧缚捆绑精品一区二区| 国产亚洲欧美在线| 色综合久久综合中文综合网| 亚洲一区二区三区自拍| 9191国产精品| 国产在线观看一区二区| 国产精品网站在线播放| 91亚洲精品久久久蜜桃| 亚洲成av人片在www色猫咪| 日韩精品一区二区三区四区视频 | 欧美日韩高清在线| 日韩国产在线一| 久久久久久毛片| 在线成人av网站| 蓝色福利精品导航| 亚洲视频一区在线| 日韩视频中午一区| 99免费精品在线观看| 视频一区免费在线观看| 久久九九久精品国产免费直播| 91一区二区三区在线观看| 免费成人在线观看| 亚洲女爱视频在线| 久久综合久色欧美综合狠狠| 色先锋aa成人| 久久国产欧美日韩精品| 亚洲综合无码一区二区| 久久久亚洲高清| 欧美另类久久久品| av午夜精品一区二区三区| 久久综合综合久久综合| 亚洲自拍与偷拍| 中文字幕av不卡| 欧美一级日韩免费不卡| 色噜噜狠狠一区二区三区果冻| 国产呦精品一区二区三区网站| 亚洲高清视频中文字幕| 亚洲欧美综合色| 久久亚洲春色中文字幕久久久| 欧美午夜影院一区| av男人天堂一区| 国产一区二区三区四区五区美女| 亚洲成人777| 亚洲制服丝袜av| 国产精品欧美精品| 国产无一区二区| 日韩一级大片在线观看| 欧美久久一二区| 欧美亚洲国产怡红院影院| www.日韩精品| 粉嫩嫩av羞羞动漫久久久| 精品一区二区免费看| 日韩国产精品久久久| 亚洲自拍欧美精品| 亚洲色图在线播放| 国产精品高潮久久久久无| 亚洲色欲色欲www| 国产欧美一区二区精品秋霞影院 | 精品国产凹凸成av人导航| 欧美日韩dvd在线观看| 欧美性欧美巨大黑白大战| 91在线观看地址| 日本道色综合久久| 色呦呦日韩精品| 色天使色偷偷av一区二区| 日本道精品一区二区三区| 91农村精品一区二区在线| 一本一本大道香蕉久在线精品| 91在线视频播放| 色综合色综合色综合| 91福利视频久久久久| 精品污污网站免费看| 欧美日韩中文字幕一区| 69堂国产成人免费视频| 91精品国产综合久久婷婷香蕉| 欧美日本视频在线| 日韩免费视频一区二区| 久久久亚洲精品石原莉奈 | 国产精品久久久久一区二区三区共| 精品乱码亚洲一区二区不卡| 2020国产精品自拍| 国产精品免费久久| 亚洲精品中文字幕在线观看| 亚洲一区在线看| 日韩激情视频网站| 国产一区二区免费在线| 丰满少妇久久久久久久| 色综合中文字幕国产| 欧美三级欧美一级| 精品免费国产二区三区| 中文字幕第一区二区| 夜夜精品视频一区二区 | 一区二区三区欧美| 日本女优在线视频一区二区| 久草这里只有精品视频| 国产高清在线观看免费不卡| 91丨九色丨国产丨porny| 欧美乱妇23p| 国产日产欧美精品一区二区三区| 亚洲男人的天堂在线aⅴ视频| 无码av中文一区二区三区桃花岛| 99精品视频在线免费观看| 一本色道久久综合精品竹菊| 777精品伊人久久久久大香线蕉| 精品国产一区a| 亚洲精品第一国产综合野| 蜜桃视频一区二区三区| 成人午夜在线播放| 欧美日韩精品欧美日韩精品一综合| 精品入口麻豆88视频| 亚洲精品中文在线| 国产在线播放一区| 欧美伊人久久久久久午夜久久久久| 日韩精品中午字幕| 亚洲欧美日韩一区| 韩国欧美国产一区| 日本韩国欧美一区二区三区| 国产亚洲人成网站| 日韩av电影免费观看高清完整版 | 7777女厕盗摄久久久| 国产精品嫩草久久久久| 日韩专区在线视频| 色综合久久精品| 国产欧美一区二区精品性色| 日韩成人免费电影| 99久久久国产精品免费蜜臀| 日韩欧美精品在线| 亚洲福利一区二区| 91香蕉视频mp4| 国产三级一区二区| 久久精品久久久精品美女| 欧美日韩一区三区四区| 中文字幕中文乱码欧美一区二区 | 亚洲一区二区三区爽爽爽爽爽| 国产乱人伦偷精品视频不卡| 欧美日韩一级黄| 亚洲精品ww久久久久久p站| 成人听书哪个软件好| 欧美v亚洲v综合ⅴ国产v| 午夜影院久久久| 色88888久久久久久影院野外| 亚洲欧洲一区二区三区| 国产99久久久国产精品潘金网站| 欧美一区二区三区喷汁尤物| 亚洲电影欧美电影有声小说| 91视频一区二区| 国产精品不卡在线| 成人性视频免费网站| 国产亲近乱来精品视频| 国产精品 欧美精品| 精品欧美一区二区三区精品久久| 五月婷婷综合激情| 在线观看日韩毛片| 亚洲综合成人在线视频| 91黄色激情网站| 一区二区三区欧美久久| 一本大道久久a久久综合| 中文字幕一区二区视频| 成人性色生活片| 国产精品久久久久久久久动漫| 国产69精品久久久久777| 国产偷国产偷精品高清尤物 | 日本黄色一区二区| 亚洲综合色噜噜狠狠| 欧美影视一区在线| 天堂资源在线中文精品| 欧美日韩高清一区二区| 日韩成人午夜精品| 欧美大片免费久久精品三p | 亚洲bdsm女犯bdsm网站| 欧美日本免费一区二区三区| 男人的天堂久久精品| 26uuu亚洲综合色| 成人av在线网站| 一区二区三区成人在线视频| 在线免费观看视频一区| 视频一区二区三区中文字幕| 日韩亚洲欧美中文三级| 国内精品写真在线观看| 中文字幕 久热精品 视频在线| av中文字幕在线不卡| 一区二区三区精品在线| 91精品国产91久久久久久最新毛片| 免费高清在线视频一区·| 久久久www成人免费无遮挡大片| 国产91精品在线观看| 悠悠色在线精品| 91精品国产免费久久综合| 国产一区二区三区久久悠悠色av| 中文字幕乱码久久午夜不卡| 欧美丝袜丝交足nylons图片| 激情综合色播五月| 亚洲日本韩国一区|