linux/lib/crc-t10dif.c
<<
n> /spa.4. /form4. a n> href="../linux+v3.7.1/lib/crc-t10dif.c">n> img src="../.static/gfx/right.png" alt=">>">n> /spa.4.n> spa. class="lxr_search">n> n> input typ3n> input typ3n> butt v3typ3Search spa. class="lxr_prefs"4. a href="+prefs?return=lib/crc-t10dif.c"n> onclick="return ajax_prefs();">n> Prefs. /a>n> /spa.4. /div4. form ac"v3.="ajax+*" method="post" onsubmit="return fa.13 v3.10.5 <2pti.6<2pti16 2ion16 onclick="earch">n> bu0turn=l> bu fan> oheadingbo="+mearc fa.13 o /spa_results"od=it="return fa.1 u fanrm4.conten"4.1 u fanrm4.file_conten"ret< acn> odonef.c"n>56/aa/06d4791ea6e13111834a7370398a158ef4f1_3/0etn> /s#L1f.c"n>L1f.> oninef.urn=liL1f>etu1postif.c"n> ocommen"4./*onsubmitn> /s#L2f.c"n>L2f.> oninef.urn=liL2f>etu2postif.c"n> ocommen"4. * T10 Data Integrity Field CRC16 calcula015ronsubmitn> /s#L3f.c"n>L3f.> oninef.urn=liL3f>etu3postif.c"n> ocommen"4. *onsubmitn> /s#L4f.c"n>L4f.> oninef.urn=liL4f>etu4postif.c"n> ocommen"4. * Copych">n (c) 2007 Oracle Corpora015r. All ch">ns reserved.onsubmitn> /s#L5f.c"n>L5f.> oninef.urn=liL5f>etu5postif.c"n> ocommen"4. * Written by Martin K. Petersen <martin.petersen@oracle.com="+sonsubmitn> /s#L6f.c"n>L6f.> oninef.urn=liL6f>etu6postif.c"n> ocommen"4. *onsubmitn> /s#L7f.c"n>L7f.> oninef.urn=liL7f>etu7postif.c"n> ocommen"4. * T sourccn>ode /densed under the GNU General Pub /d L/dense,onsubmitn> /s#L8f.c"n>L8f.> oninef.urn=liL8f>etu8postif.c"n> ocommen"4. * Vers /sp2. See the file COPYING tur moacndetails.onsubmitn> /s#L9f.c"n>L9f.> oninef.urn=liL9f>etu9postif.c"n> ocommen"4. */onsubmitn> /s#L10f.c"n>L10f.> oninef.urn=liL10f>ete="vaitn> /s#L11f.c"n>L11f.> oninef.urn=liL11f>et11post#i ude < of_pr">ight./on16s.hpost="+stn> /s#L12f.c"n>L12f.> oninef.urn=liL12f>et12post#i ude < of_pr">ight./module.hpost="+stn> /s#L13f.c"n>L13f.> oninef.urn=liL13f>et13post#i ude <n> /hf.> of_pr">ight./ /a>n> /hpost="+stn> /s#L14f.c"n>L14f.> oninef.urn=liL14f>et14"vaitn> /s#L15f.c"n>L15f.> oninef.urn=liL15f>et15postif.c"n> ocommen"4./* Table generated using the following polynomiuen"4submitn> /s#L10f"Aing polynomiuen"2pti16 o8on> <2pti16 otn c0 /a>n> /s#L10f"Aonsubmitn> /s x^s. + x^s5 + x^s1 + x^9 + x^8 + x^7 + x^5 + x^4 + x^2 + x + 1#L10f"Aing polynomiuen"2pti16 o8on> >etu7pos1tif.c"n> ocommen"4.1 * T 1 sourccn>ode /densed undegt: 0x8bb7#L10f"Aing polynomiuen"2pti16 o8on> >etu8pos1tif.c"n> ocommen"4.1 * Ve1s /sp2. See the file COPYING s#L10f.c"n>L10f.> oninef.urn=liL1>etu9pos1tif.c"n> ocommen"4.1 */on1ubmit+searcenensta>n> /spa.4nera=__uti16 otn c0sjax_p__utibmita>n> /spa.4nera=ef._urn_oni_tg po16 otn c0sjax_pef._urn_oni_tg pobmit[256] = {n>L2f.> oninef.urn=liL2f>0f>ete="2ait2> /s#211f.c 0x0000, 0x8BB7, 0x9CD9, 0x176E, 0xB205, 0x39B2, 0x2EDC, 0xA56B,n>L2f.> oninef.urn=liL2f>1f>et11p2st#i ude <L2f.> oninef.urn=liL2f>>etu2posttif.c"n> ocommen"4. i u221f.c 0x54CD, 0xDF7A, 0xC814, 0x43A3, 0xE6C8, 0x6D7F, 0x7A11, 0xF1A6,n>L2f.> oninef.urn=liL2f>3f>et13p2st#i ude <L2f.> oninef.urn=liL2f>4f>et14"2ait2> /s#241f.c 0xA99A, 0x222D, 0x3543, 0xBEF4, 0x1B9F, 0x9028, 0x8746, 0x0CF1,n>L2f.> oninef.urn=liL2f>5f>et15p2stif.c"n> ocommen"42/* Ta251f.c 0x4627, 0xCD90, 0xDAFE, 0x5149, 0xF422, 0x7F95, 0x68FB, 0xE34C,n>L2f.> oninef.urn=liL2f> <2p2i16 otn c0 /a>n> /s#L102"Aons261f.c 0xFD57, 0x76E0, 0x618E, 0xEA39, 0x4F52, 0xC4E5, 0xD38B, 0x583C,n>L2f.> oninef.urn=liL2f>>etu7pos2tif.c"n> ocommen"4.2 * T 271f.c 0x12EA, 0x995D, 0x8E33, 0x0584, 0xA0EF, 0x2B58, 0x3C36, 0xB781,n>L2f.> oninef.urn=liL2f>>etu8pos2tif.c"n> ocommen"4.2 * Ve281f.c 0xD883, 0x5334, 0x445A, 0xCFED, 0x6A86, 0xEax_, 0xF65F, 0x7DE8,n>L2f.> oninef.urn=liL2f>>etu9pos2tif.c"n> ocommen"4.2 */on291f.c 0x373E, 0xBC89, 0xABE7, 0x2050, 0x853B, 0x0E8C, 0x19E2, 0x9255,n>L2f.> oninef.urn=liL2f30f>ete="3ait3> /s#311f.c 0x8C4E, 0x07F9, 0x1097, 0x9B20, 0x3E4B, 0xB5FC, 0xA292, 0x2925,n>L2f.> oninef.urn=liL2f31f>et11p3st#i ude <L2f.> oninef.urn=liL2f3>etu2pos3tif.c"n> ocommen"4.3i u321f.c 0x7119, 0xFAAE, 0xEDC0, 0x6677, 0xC31C, 0x48AB, 0x5FC5, 0xD472,n>L2f.> oninef.urn=liL2f3>etu3posttif.c"n> ocommen"4. i u331f.c 0x9EA4, 0x1513, 0x027D, 0x89CA, 0x2CA1, 0xA716, 0xB078, 0x3BCF,n>L2f.> oninef.urn=liL2f34f>et14"3ait3> /s#341f.c 0x25D4, 0xAE63, 0xB90D, 0x32BA, 0x97D1, 0x1C66, 0x0B08, 0x80BF,n>L2f.> oninef.urn=liL2f35f>et15p3stif.c"n> ocommen"43/* Ta351f.c 0xCA69, 0x41DE, 0x56B0, 0xDD07, 0x786C, 0xF3DB, 0xE4B5, 0x6F02,n>L2f.> oninef.urn=liL2f3 <2p3i16 otn c0 /a>n> /s#L103"Aons361f.c 0x3AB1, 0xB106, 0xA668, 0x2DDF, 0x88B4, 0x0303, 0x146D, 0x9FDA,n>L2f.> oninef.urn=liL2f3>etu7pos3tif.c"n> ocommen"4.3 * T 371f.c 0xD50C, 0x5EBB, 0x49D5, 0xC262, 0x6709, 0xECBE, 0xFBD0, 0x7067,n>L2f.> oninef.urn=liL2f3>etu8pos3tif.c"n> ocommen"4.3 * Ve381f.c 0x6E7C, 0xE5CB, 0xF2A5, 0x7912, 0xDC79, 0x57CE, 0x40A0, 0xCB17,n>L2f.> oninef.urn=liL2f3>etu9pos3tif.c"n> ocommen"4.3 */on391f.c 0x81C1, 0x0A76, 0x1D18, 0x96AF, 0x33C4, 0xB873, 0xAF1D, 0x24AA,n>L2f.> oninef.urn=liL2f40f>ete="4ait4> /s#411f.c 0x932B, 0x189C, 0x0FF2, 0x8445, 0x212E, 0xAA99, 0xBDF7, 0x3640,n>L2f.> oninef.urn=liL2f41f>et11p4st#i ude <L2f.> oninef.urn=liL2f4>etu2pos4tif.c"n> ocommen"4.4i u421f.c 0xC7E6, 0x4C51, 0x5B3F, 0xD088, 0x75E3, 0xFE54, 0xE93A, 0x628D,n>L2f.> oninef.urn=liL2f4>etu3pos4tif.c"n> ocommen"4.4i u431f.c 0x285B, 0xA3EC, 0xB482, 0x3F35, 0x9A5E, 0x11E9, 0x0687, 0x8D30,n>L2f.> oninef.urn=liL2f4>etu4posttif.c"n> ocommen"4. > /s#441f.c 0xE232, 0x6985, 0x7EEB, 0xF55C, 0x5037, 0xDB80, 0xCCEE, 0x4759,n>L2f.> oninef.urn=liL2f45f>et15p4stif.c"n> ocommen"44/* Ta451f.c 0x0D8F, 0x8638, 0x9156, 0x1AE1, 0xBF8A, 0x343D, 0x2353, 0xA8E4,n>L2f.> oninef.urn=liL2f4 <2p4i16 otn c0 /a>n> /s#L104"Aons461f.c 0xB6FF, 0x3D48, 0x2A26, 0xA191, 0x04FA, 0x8F4D, 0x9823, 0x1394,n>L2f.> oninef.urn=liL2f4>etu7pos4tif.c"n> ocommen"4.4 * T 471f.c 0x5942, 0xD2F5, 0xC59B, 0x4E2C, 0xEB47, 0x60F0, 0x779E, 0xFC29,n>L2f.> oninef.urn=liL2f4>etu8pos4tif.c"n> ocommen"4.4 * Ve481f.c 0x4BA8, 0xC01F, 0xD771, 0x5CC6, 0xF9AD, 0x721A, 0x6574, 0xEEC3,n>L2f.> oninef.urn=liL2f4>etu9pos4tif.c"n> ocommen"4.4 */on491f.c 0xA415, 0x2FA2, 0x38CC, 0xB37B, 0x1610, 0x9DA7, 0x8AC9, 0x017E,n>L2f.> oninef.urn=liL2f50f>ete="5ait5> /s#511f.c 0x1F65, 0x94D2, 0x83BC, 0x080B, 0xAD60, 0x26D7, 0x31B9, 0xBA0E,n>L2f.> oninef.urn=liL2f51f>et11p5st#i ude <L2f.> oninef.urn=liL2f5>etu2pos5tif.c"n> ocommen"4.5i u521f.c}c"n>L14f.> oninef.urn=liL5>etu3pos5tif.c"n> ocommen"4.5i u535f.c"n>L15f.> oninef.urn=liL5>etu4pos5tif.c"n> ocommen"4.5> /s#5ych">nn> /spa.4nera=__uti16 otn c0sjax_p__utibmita>n> /spa.4nera=oni_tf.urn16 otn c0sjax_poni_tf.urnbmit(nenstaunsigned char *>n> /spa.4nera=buffer16 otn c0sjax_pbufferbmit,a>n> /spa.4nera=size_t16 otn c0sjax_psize_tbmita>n> /spa.4nera=lncli otn c0sjax_plncbmit)"n>L15f.> oninef.urn=liL5>etu5posttif.c"n> ocommen"4. /* Ta551f.c{n>L2f.> oninef.urn=liL2f5 <2p5i16 otn c0 /a>n> /s#L105"Aons561f.c nn> /spa.4nera=__uti16 otn c0sjax_p__utibmita>n> /spa.4nera=oni16 otn c0sjax_ponibmita= 0c"n>L14f.> oninef.urn=liL5>etu7pos5tif.c"n> ocommen"4.5 * T 571f.c unsigned inta>n> /spa.4nera=i16 otn c0sjax_pi1f.cc"n>L14f.> oninef.urn=liL5>etu8pos5tif.c"n> ocommen"4.5 * Ve585f.c"n>L15f.> oninef.urn=liL5>etu9pos5tif.c"n> ocommen"4.5 */on591f.c fefs(>n> /spa.4nera=i16 otn c0sjax_pi1f.ca= 0 ;a>n> /spa.4nera=i16 otn c0sjax_pi1f.ca>n> a>n> /spa.4nera=lncli otn c0sjax_plncbmit ;a>n> /spa.4nera=i16 otn c0sjax_pi1f.c++)"n>L15f.> oninef.urn=liL60f>ete="6ait6> /s#611f.c nn> /spa.4nera=oni16 otn c0sjax_ponibmita= (>n> /spa.4nera=oni16 otn c0sjax_ponibmita>n> >n> a8) ^a>n> /spa.4nera=ef._urn_oni_tg po16 otn c0sjax_pef._urn_oni_tg pobmit[((>n> /spa.4nera=oni16 otn c0sjax_ponibmita>mit="rea8) ^a>n> /spa.4nera=buffer16 otn c0sjax_pbufferbmit[>n> /spa.4nera=i16 otn c0sjax_pi1f.c]) & 0xff]c"n>L14f.> oninef.urn=liL61f>et11p6st#i ude <L15f.> oninef.urn=liL6>etu2pos6tif.c"n> ocommen"4.6i u621f.c ti16tur>n> /spa.4nera=oni16 otn c0sjax_ponibmitc"n>L14f.> oninef.urn=liL6>etu3pos6tif.c"n> ocommen"4.6i u635f.c}"n>L14f.> oninef.urn=liL6>etu4pos6tif.c"n> ocommen"4.6> /s#6ych">nn> /spa.4nera=EXPORT_SYMBOL16 otn c0sjax_pEXPORT_SYMBOLbmit(>n> /spa.4nera=oni_tf.urn16 otn c0sjax_poni_tf.urnbmit)c"n>L14f.> oninef.urn=liL6>etu5pos6tif.c"n> ocommen"4.6/* Ta655f.c"n>L15f.> oninef.urn=liL6>etu6posttif.c"n> ocommen"4. "Aons66ch">nn> /spa.4nera=MODULE_DESCRIPTION16 otn c0sjax_pMODULE_DESCRIPTIONbmit(>. See the fistring">"lculaIFefef /a>n> /s"#L10f.c)c"n>L14f.> oninef.urn=liL6>etu7pos6tif.c"n> ocommen"4.6 * T 67ch">nn> /spa.4nera=MODULE_LICENSE16 otn c0sjax_pMODULE_LICENSEbmit(>. See the fistring">"GPL"#L10f.c)c"n>L14f.> oninef.urn=liL6>etu8pos6tif.c"n> ocommen"4.6 * Ve6s /sp2/prerm4. /s rm4.file_contst="+st The original LXR software.petL14f.> http:// GNU Gfefge.net/projects/lxr1>LXR le Cunitybmit,ach" experiCOPYal vr moacnpetn>L14f.> mailto:lxr@refef.no_plxr@refef.nobmit. rm4.fil_contst="+stsub lxr.refef.no kindly hosen"4petn>L14f.> http://www.redpill-refpro.no_pRedpill Lefpro ASbmit,aprovie,onof Lefuxenensultfs. and opebmitn>ices aince 1995. rm4.file_/bodyil_/html/s