dCRCTYPE randBits

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

dCRCTYPE randBits

Postby pHySiQuE » Fri Jan 25, 2013 7:14 pm

This fix will make it compile on LLVM. I guess it's a little strict with the length of longs.
Code: Select all
static dCRCTYPE randBits[] =
{
    7266447313870364031,  4946485549665804864, static_cast<long long>(16945909448695747420), static_cast<long long>(16394063075524226720),
    4873882236456199058, static_cast<long long>(14877448043947020171),  6740343660852211943, static_cast<long long>(13857871200353263164),
    5249110015610582907, static_cast<long long>(10205081126064480383),  1235879089597390050, static_cast<long long>(17320312680810499042),
   static_cast<long long>(16489141110565194782),  8942268601720066061, static_cast<long long>(13520575722002588570), static_cast<long long>(14226945236717732373),
   
   static_cast<long long>(9383926873555417063), static_cast<long long>(15690281668532552105), static_cast<long long>(11510704754157191257), static_cast<long long>(15864264574919463609),
   6489677788245343319,  5112602299894754389, static_cast<long long>(10828930062652518694), static_cast<long long>(15942305434158995996),
   static_cast<long long>(15445717675088218264), 4764500002345775851, static_cast<long long>(14673753115101942098),  236502320419669032,
   static_cast<long long>(13670483975188204088), static_cast<long long>(14931360615268175698), 8904234204977263924, static_cast<long long>(12836915408046564963),
   
   static_cast<long long>(12120302420213647524), static_cast<long long>(15755110976537356441),  5405758943702519480, static_cast<long long>(10951858968426898805),
   static_cast<long long>(17251681303478610375),  4144140664012008120, static_cast<long long>(18286145806977825275), static_cast<long long>(13075804672185204371),
   static_cast<long long>(10831805955733617705),  6172975950399619139, static_cast<long long>(12837097014497293886), static_cast<long long>(12903857913610213846),
   560691676108914154,    1074659097419704618, static_cast<long long>(14266121283820281686), static_cast<long long>(11696403736022963346),
   
   static_cast<long long>(13383246710985227247),  7132746073714321322, static_cast<long long>(10608108217231874211), 9027884570906061560,
   static_cast<long long>(12893913769120703138), static_cast<long long>(15675160838921962454),  2511068401785704737, static_cast<long long>(14483183001716371453),
   3774730664208216065,  5083371700846102796,  958349826457093363, 1711987008505125722,
   5217910858257235075, 1061217680947568985,  1924700483125896976,  7171619684536160599,
   
   1094927925670175150, 1559619696407266489, 1409794800265559935, 615821766635933047,
   5636498760852923045, 1761879280394205122, 580805356741162327,   425267967796817241,
   8381470634608387938, 1321222867842088762, 1699306030863674196, 957923366004347591,
   6210242862396777185,  1012818702180800310, 1529938392597451575, 1750183200946594563,
   
   1745379494289124122, 1580780546207648449,  8407189590930420827,   974125122787311712,
   1861591264068118966, 997568339582634050, 1804677184446739149, 1798186768843568779,
   3809841506498447207,  946010891763813567, 1617298063863937431,   958022432077424298,
   4393365126459778813, 1340868314106955368, 1390000552954764595, 1577355035440281786,
   
   1647532752434923060,  6260298154874769264, 1222457665977646091,  6405294864092763507,
   7585484664713203306,  5187641382818981381, 1243599840028535338, 1355435344101734475,
   646091557254529188, 1139374711697494925, 1679724924841334285, 1571351902353749549,
   1282350470957985884,  4738086532119935073, 4429068783387643752,  585582692562183870,
   
   1048280754023674130, 6788940719869959076, 1167085624497207377, 2488756775360218862,
   2061695363573180185,  6884655301895085032, 3566345954323888697, 1278431993305904181,
   4772468691551857254,  6864898938209826895,  7198730565322227090, 2452224231472687253,
   1342479260603244580, 1082769522485538398, 1101660889712207090, 1468328056515137835,
   
   7077866519618824360, 1748707994119842233, 3956319990205097495,  5804870313319323478,
   8017203611194497730,  3310931575584983808,  5009341981771541845, 1177202017457700593,
   3537640779967351792,  6801855569284252424, 1768726823119262338, 1296835861363323721,
   1429775571144180123, 1042737773217220841, 1215556609198678899, 1646595442159829611,
   
   1271042969046435999, 954722635154156559, 1215662489140341034,  2985938688676214686,
   1806691778598501095,  5975570403614438776, 1154134316302250056, 1111538865238970459,
   949932838949471007,  924716303676965182,  3688303938005101774, 2210483654336887556,
   1545816191008969322,  6558785204455557683,  1288373156735958118, 1843398605994882962,
   
   3435082195390932486, 1682235180034306199,  3120532877336962310, 1668178511106288556,
   7835551710041302304, 2612798015018627203, 1508327917715265749, 6591467229462292195,
   1059270645053456544,  7438147750787157163, 323186165595851698, 7444710627467609883,
   8473714411329896576,  2782675857700189492,  3383567662400128329, 3200233909833521327,
   
   1289760128028560444, 3612068790453735040, 8324209243736219497, 1578957035649772346,
   1083312926512215996,  4797349136059339390, 5556729349871544986, 1826694310492974707,
   1620389818516182276, 172225355691600141,  3034352936522087096,  1266779576738385285,
   3906668377244742888,  6961783143042492788, 1715970688732124757,  4676208075243319061,
   
   1031563469714298581, 1343514004793325118, 716076639492622016,   1384795403543869755,
   7195811275139178570, 1081531263651032887,  6214164734784158515, 1641219451183992154,
   3862249798930641332,  1005482699535576005,  4644542796609371301, 1760009105736798728,
   4209958422564632034, 5419285945389823940, 1145370154756435460,  995158802667938011,
   
   7425168333159839689,  8436306210125134906, 1121661587259682010,  3681345096403933680,
   5770016989916553752, 1110285593615087173, 1118798089233969393, 396336430216428875,
   6384853777489155236,  7551613839184151117, 1652706202327694310, 1342985042902495689,
   990175396047727176,  973150199270261225,  5217575797614661659, 1031170834663654870,
   
   1511174751973533048, 4353415295139137513,  1845293119018433391, 1195200687343049356,
   3531972641585683893, 1685224647764840982,   1595685482214332138, 1231460999357947477,
   1676391168484459896, 1639214569038538263,  1545507136970403756, 1777119906186279006,
   1212134846297263897, 1261306854514830577,   954203144844315208,  1257976447679270605,
   
   3664184785462160180,  2747964788443845091, 1589591700747051230, 1555293576572430212,
   1636691586226168262, 8385468783684865323, 1074534382714510294, 2485742734157099909,
   916246281077683950, 1521420665363746670, 1289548314947434579,  1079510114301747843,
   1071887613448066366,  1259990987526807294,  8326303777037206221, 1410466117201424829,
};
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: dCRCTYPE randBits

Postby Julio Jerez » Sat Jan 26, 2013 7:10 am

why some are caste and not all?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: dCRCTYPE randBits

Postby pHySiQuE » Mon Jan 28, 2013 10:28 pm

I started by letting Xcode fix it for me, then I just started shortening the numbers.
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: dCRCTYPE randBits

Postby Julio Jerez » Tue Jan 29, 2013 7:23 am

why do you remove the posfix uLL
that's the clue to the compiler that is a 64 bit constant.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: dCRCTYPE randBits

Postby Julio Jerez » Tue Jan 29, 2013 7:43 am

Al right I edit teh fiel and made then all 19 digist in length, that should resolve any xcode waring.
what I find extrange is that I never had a waring there.
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: dCRCTYPE randBits

Postby Julio Jerez » Tue Jan 29, 2013 11:01 am

Oh before I change the CRC table I have to make a script that convert all of teh data file to teh new CRC, for now I have to leave until I do that.

are you sure that xcode has problem reading those const, because I do no get those errors?
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: dCRCTYPE randBits

Postby pHySiQuE » Tue Jan 29, 2013 9:33 pm

Are you compiling with GCC or LLVM? It's just LLVM that has the problem.
pHySiQuE
 
Posts: 608
Joined: Fri Sep 02, 2011 9:54 pm

Re: dCRCTYPE randBits

Postby Julio Jerez » Wed Jan 30, 2013 10:32 am

I compiled with all combination GCC, LLLVM, and GCC LLVM
ha, I have not compield the tool because some how I do no have a test.

I will try to compile the tools then
Julio Jerez
Moderator
Moderator
 
Posts: 12426
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests