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

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

?? ftcalc.c

?? a very goog book
?? C
字號:
/***************************************************************************//*                                                                         *//*  ftcalc.c                                                               *//*                                                                         *//*    Arithmetic computations (body).                                      *//*                                                                         *//*  Copyright 1996-2001, 2002 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 ) & -0x10000L                      : -((-a + 0x8000L ) & -0x10000L );  }  /* documentation is in freetype.h */  FT_EXPORT_DEF( FT_Fixed )  FT_CeilFix( FT_Fixed  a )  {    return ( a >= 0 ) ?   ( a + 0xFFFFL ) & -0x10000L                      : -((-a + 0xFFFFL ) & -0x10000L );  }  /* documentation is in freetype.h */  FT_EXPORT_DEF( FT_Fixed )  FT_FloorFix( FT_Fixed  a )  {    return ( a >= 0 ) ?   a & -0x10000L                      : -((-a) & -0x10000L );  }  /* 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;  }#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;  }  /* 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 + 0x8000 ) >> 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;  }  /* documentation is in ftcalc.h */  FT_EXPORT_DEF( 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 = ABS( a );    s ^= b; b = ABS( b );    s ^= c; c = 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 );  }  /* documentation is in freetype.h */  FT_EXPORT_DEF( FT_Long )  FT_MulFix( FT_Long  a,             FT_Long  b )  {    FT_Long   s;    FT_ULong  ua, ub;    if ( a == 0 || b == 0x10000L )      return a;    s  = a; a = ABS(a);    s ^= b; b = ABS(b);    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 );    }    return ( s < 0 ? -(FT_Long)ua : (FT_Long)ua );  }  /* 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 = ABS(a);    s ^= b; b = 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 );  }  /* 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 = ABS( x );    s ^= y; y = ABS( y );    ft_multo64( x, y, z );    if ( s < 0 )    {      z->lo = (FT_UInt32)-(FT_Int32)z->lo;      z->hi = ~z->hi + !( z->lo );    }  }  /* documentation is in ftcalc.h */  /* apparently, the second version of this code is not compiled correctly */  /* on Mac machines with the MPW C compiler..  tsss, tsss, tss...         */#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 = 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 = 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 /* FT_LONG64 */  /* a not-so-fast but working 16.16 fixed point square root function */  FT_EXPORT_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一区二区三区免费野_久草精品视频
91色porny| 国内精品伊人久久久久av一坑 | 亚洲精品成a人| 91麻豆精品国产自产在线观看一区 | 一本一道久久a久久精品综合蜜臀| 偷拍一区二区三区| 国产精品女人毛片| 日韩欧美aaaaaa| 欧美亚洲一区二区在线| av动漫一区二区| 韩国一区二区视频| 午夜精品福利在线| 国产精品国产成人国产三级 | 久久日韩精品一区二区五区| 欧美三级视频在线观看| 91视频观看视频| 国产.欧美.日韩| 国产最新精品免费| 九色porny丨国产精品| 亚洲chinese男男1069| 亚洲图片另类小说| 国产无遮挡一区二区三区毛片日本| 91精品久久久久久久91蜜桃| 日本乱码高清不卡字幕| 97久久超碰国产精品| 成人综合激情网| 国产一区二区按摩在线观看| 蜜臀精品久久久久久蜜臀 | 国产精品国产自产拍高清av王其| 久久综合久久综合九色| 日韩精品在线一区| 欧美一区二区精品在线| 欧美夫妻性生活| 欧美日韩另类一区| 欧美性xxxxx极品少妇| 欧美在线视频日韩| 91精品福利在线| 色国产综合视频| 91成人免费在线| 在线亚洲高清视频| 欧美三级资源在线| 欧美日韩高清在线播放| 欧美日韩一区 二区 三区 久久精品 | 天天av天天翘天天综合网| 亚洲国产综合视频在线观看| 亚洲一区精品在线| 亚洲va天堂va国产va久| 国产成人免费9x9x人网站视频| 精品一区二区三区香蕉蜜桃 | 另类综合日韩欧美亚洲| 蜜桃久久久久久| 美女网站一区二区| 国产成人在线视频网站| 成人免费毛片片v| 色综合久久66| 欧美日韩免费一区二区三区视频| 欧美日本国产一区| 日韩限制级电影在线观看| 精品国产99国产精品| 国产视频在线观看一区二区三区| 国产精品的网站| 亚洲一区二区高清| 奇米影视在线99精品| 国产一区二区三区高清播放| 99精品视频在线观看| 欧美日韩精品综合在线| 欧美成人性战久久| 国产精品无圣光一区二区| 亚洲一区二区视频| 国产在线精品免费| 91麻豆自制传媒国产之光| 欧美日韩国产首页在线观看| 欧美成人一区二区三区片免费 | 青青草91视频| 成人一区二区三区在线观看| 日本韩国视频一区二区| 日韩女优毛片在线| 国产精品福利电影一区二区三区四区| 亚洲午夜私人影院| 国产一区欧美日韩| 欧美午夜在线一二页| 欧美tk—视频vk| 亚洲人成网站影音先锋播放| 免费成人在线视频观看| 不卡的av网站| 欧美一区二区三区视频免费播放| 中文字幕av资源一区| 视频一区欧美日韩| 成人黄色大片在线观看| 欧美精品少妇一区二区三区| 欧美韩国日本综合| 毛片av一区二区| 色八戒一区二区三区| 久久影院午夜论| 亚洲二区视频在线| 97se亚洲国产综合在线| 欧美精品一区二区三区视频| 亚洲成人激情综合网| 成人黄色免费短视频| 日韩欧美国产成人一区二区| 日韩毛片精品高清免费| 国产乱淫av一区二区三区| 欧美日韩你懂得| 亚洲乱码中文字幕综合| 国产成人在线观看| 日韩欧美国产一区在线观看| 亚洲综合激情另类小说区| 成人亚洲一区二区一| 精品国产网站在线观看| 日韩在线一二三区| 色综合久久六月婷婷中文字幕| 国产三级精品三级| 欧美中文字幕一二三区视频| 久久久无码精品亚洲日韩按摩| 视频在线观看一区二区三区| 欧美在线视频全部完| 亚洲视频一区二区在线| 成人在线综合网站| 久久久久久久久伊人| 激情文学综合丁香| 欧美va亚洲va在线观看蝴蝶网| 日韩中文字幕av电影| 欧美日韩免费视频| 亚洲一区二区黄色| 欧美午夜精品一区二区三区| 亚洲精品大片www| 欧美中文字幕一区二区三区| 一区二区三区在线观看视频| 91原创在线视频| 亚洲少妇屁股交4| 97国产一区二区| 亚洲黄色免费电影| 欧美吞精做爰啪啪高潮| 一区二区三区美女| 欧美在线一区二区| 午夜精品福利一区二区三区蜜桃| 欧美性色黄大片| 亚洲不卡在线观看| 日韩一区二区三| 久久精品国内一区二区三区| 欧美mv和日韩mv的网站| 国产九色sp调教91| 国产精品午夜免费| 日本精品视频一区二区| 亚洲一区免费在线观看| 91精品在线麻豆| 久久成人麻豆午夜电影| 久久精品亚洲精品国产欧美| 国产91富婆露脸刺激对白| 亚洲天堂中文字幕| 欧美日韩一区二区三区在线看| 免费观看30秒视频久久| 久久久不卡网国产精品二区| 成人黄色片在线观看| 夜夜精品视频一区二区 | 99精品欧美一区二区蜜桃免费| 亚洲美女视频在线观看| 欧美日韩一级视频| 麻豆久久久久久| 中文字幕精品一区| 色老头久久综合| 另类调教123区| 国产精品全国免费观看高清 | 久久久噜噜噜久久人人看 | 亚洲综合视频在线| 日韩亚洲欧美中文三级| 国产综合久久久久影院| 国产精品国产三级国产专播品爱网| 欧美综合色免费| 国产综合色在线视频区| 亚洲欧美日韩国产手机在线| 欧美色手机在线观看| 激情成人综合网| 欧美国产一区视频在线观看| 欧美亚洲综合久久| 国产一区二区视频在线播放| 亚洲人123区| 精品久久久久久亚洲综合网| 色综合久久久网| 精品亚洲国产成人av制服丝袜| 国产精品久久久久久妇女6080 | 五月婷婷激情综合| 久久中文娱乐网| 欧美最猛黑人xxxxx猛交| 精品一区二区三区影院在线午夜| 亚洲久本草在线中文字幕| 精品国产1区2区3区| 91福利在线看| 成人深夜福利app| 日本亚洲天堂网| 亚洲伦理在线免费看| 国产日韩欧美高清在线| 欧美理论片在线| 99国产精品一区| 国产又黄又大久久| 亚州成人在线电影| 中文字幕在线观看一区二区| 欧美成人精品福利| 欧美日韩卡一卡二| 色噜噜狠狠一区二区三区果冻|