r_compiler.h 145 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763
  1. /***********************************************************************************************************************
  2. * DISCLAIMER
  3. * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No
  4. * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all
  5. * applicable laws, including copyright laws.
  6. * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
  7. * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,
  8. * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM
  9. * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES
  10. * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS
  11. * SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  12. * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of
  13. * this software. By using this software, you agree to the additional terms and conditions found by accessing the
  14. * following link:
  15. * http://www.renesas.com/disclaimer
  16. *
  17. * Copyright (C) 2018 Renesas Electronics Corporation. All rights reserved.
  18. ***********************************************************************************************************************/
  19. /***********************************************************************************************************************
  20. * File Name : r_compiler.h
  21. * Description : Replace different functions for each compiler.
  22. ***********************************************************************************************************************/
  23. /**********************************************************************************************************************
  24. * History : DD.MM.YYYY Version Description
  25. * : xx.xx.xxxx 1.00 First Release
  26. ***********************************************************************************************************************/
  27. #ifndef R_GCOMPILER_H
  28. #define R_GCOMPILER_H
  29. /***********************************************************************************************************************
  30. Includes <System Includes> , "Project Includes"
  31. ***********************************************************************************************************************/
  32. /***********************************************************************************************************************
  33. Macro definitions
  34. ***********************************************************************************************************************/
  35. /***********************************************************************************************************************
  36. Typedef definitions
  37. ***********************************************************************************************************************/
  38. /***********************************************************************************************************************
  39. Exported global variables
  40. ***********************************************************************************************************************/
  41. /***********************************************************************************************************************
  42. Exported global functions (to be accessed by other files)
  43. ***********************************************************************************************************************/
  44. /* ========== Check Compiler ========== */
  45. #if defined(__CCRX__)
  46. /* supported */
  47. #elif defined(__GNUC__)
  48. /* supported */
  49. #elif defined(__ICCRX__)
  50. /* supported */
  51. #else
  52. #error "Unrecognized compiler"
  53. #endif
  54. /* ========== Macros ========== */
  55. #if defined(__CCRX__)
  56. /* #define __RX 1 */ /* This is already defined by CCRX. */
  57. /* #define __LIT 1 */ /* This is automatically defined by CCRX. */
  58. /* #define __BIG 1 */ /* This is automatically defined by CCRX. */
  59. /* #define __FPU 1 */ /* This is automatically defined by CCRX. */
  60. /* #define __RXV2 1 */ /* This is automatically defined by CCRX. */
  61. #elif defined(__GNUC__)
  62. #if !defined(__RX)
  63. #define __RX 1
  64. #endif
  65. #if defined(__RX_LITTLE_ENDIAN__)
  66. #if !defined(__LIT)
  67. #define __LIT 1
  68. #endif
  69. #elif defined(__RX_BIG_ENDIAN__)
  70. #if !defined(__BIG)
  71. #define __BIG 1
  72. #endif
  73. #endif
  74. #if defined(__RX_FPU_INSNS__)
  75. #if !defined(__FPU)
  76. #define __FPU 1
  77. #endif
  78. #endif
  79. #if defined(__RXv2__)
  80. #if !defined(__RXV2)
  81. #define __RXV2 1
  82. #endif
  83. #endif
  84. #elif defined(__ICCRX__)
  85. #if !defined(__RX)
  86. #define __RX 1
  87. #endif
  88. /* #define __LIT 1 */ /* This is automatically defined by ICCRX. */
  89. /* #define __BIG 1 */ /* This is automatically defined by ICCRX. */
  90. /* #define __FPU 1 */ /* This is automatically defined by ICCRX. */
  91. /* #define __RXV2 1 */ /* This is automatically defined by ICCRX. */
  92. #endif
  93. /* ========== Keywords ========== */
  94. #if !(defined(__CCRX__) && defined(__cplusplus))
  95. #define R_PRAGMA(...) _Pragma(#__VA_ARGS__)
  96. #else
  97. /* CC-RX' C++ mode does not support Pragma operator and variadic macros */
  98. #define R_PRAGMA(x)
  99. #endif
  100. #if defined(__CCRX__)
  101. /* #define volatile volatile __evenaccess */
  102. #elif defined(__GNUC__)
  103. #define __evenaccess /* none */
  104. #elif defined(__ICCRX__)
  105. #define __evenaccess __sfr
  106. #endif
  107. /* ========== Sections ========== */
  108. /* ---------- Operators ---------- */
  109. #if defined(__CCRX__)
  110. #define R_SECTOP(name) __sectop(#name)
  111. #define R_SECEND(name) __secend(#name)
  112. #define R_SECSIZE(name) __secsize(#name)
  113. #define R_EXTERN_SEC(name) /* none */
  114. #elif defined(__GNUC__)
  115. #define R_SECTOP(name) ((void *)name##_start)
  116. #define R_SECEND(name) ((void *)name##_end)
  117. #define R_SECSIZE(name) ((size_t)((uint8_t *)R_SECEND(name) - (uint8_t *)R_SECTOP(name)))
  118. #define R_EXTERN_SEC(name) extern uint8_t name##_start[], name##_end[];
  119. #elif defined(__ICCRX__)
  120. #define R_SECTOP(name) __section_begin(#name)
  121. #define R_SECEND(name) __section_end(#name)
  122. #define R_SECSIZE(name) __section_size(#name)
  123. #define R_EXTERN_SEC(name) /* none */
  124. #endif
  125. /* ---------- Names ---------- */
  126. #if defined(__CCRX__)
  127. #define R_SECNAME_INTVECTTBL "C$VECT"
  128. #if defined(__RXV2)
  129. #define R_SECNAME_EXCEPTVECTTBL "EXCEPTVECT"
  130. #define R_SECNAME_RESETVECT "RESETVECT"
  131. #else
  132. #define R_SECNAME_FIXEDVECTTBL "FIXEDVECT"
  133. #endif
  134. #define R_SECNAME_UBSETTINGS "UBSETTINGS"
  135. #elif defined(__GNUC__)
  136. #define R_SECNAME_INTVECTTBL ".rvectors"
  137. #if defined(__RXV2)
  138. #define R_SECNAME_EXCEPTVECTTBL ".exvectors"
  139. #define R_SECNAME_RESETVECT ".fvectors"
  140. #else
  141. #define R_SECNAME_FIXEDVECTTBL ".fvectors"
  142. #endif
  143. #define R_SECNAME_UBSETTINGS ".ubsettings"
  144. #elif defined(__ICCRX__)
  145. #define R_SECNAME_INTVECTTBL ".inttable"
  146. #if defined(__RXV2)
  147. #define R_SECNAME_EXCEPTVECTTBL ".nmivec"
  148. #define R_SECNAME_RESETVECT //FIXME: Is the section defined? If so, what is the name?
  149. #else
  150. #define R_SECNAME_FIXEDVECTTBL ".nmivec"
  151. #endif
  152. #define R_SECNAME_UBSETTINGS ".ubsettings"
  153. #endif
  154. /* ---------- Addresses ---------- */
  155. #if defined(__CCRX__)
  156. #define R_SECTOP_INTVECTTBL __sectop(R_SECNAME_INTVECTTBL)
  157. #if defined(__RXV2)
  158. #define R_SECTOP_EXCEPTVECTTBL __sectop(R_SECNAME_EXCEPTVECTTBL)
  159. #endif
  160. #define R_SECEND_ISTACK R_SECEND(SI)
  161. #define R_SECEND_USTACK R_SECEND(SU)
  162. #elif defined(__GNUC__)
  163. #define R_SECTOP_INTVECTTBL ((void *)rvectors_start)
  164. extern void * const rvectors_start[];
  165. #if defined(__RXV2)
  166. #if 1 /* for backward compatibility */
  167. #define R_SECTOP_EXCEPTVECTTBL ((void *)Except_Vectors)
  168. extern void * const Except_Vectors[];
  169. #else
  170. #define R_SECTOP_EXCEPTVECTTBL ((void *)exvectors_start)
  171. extern void * const exvectors_start[];
  172. #endif
  173. #endif
  174. #define R_SECEND_ISTACK istack
  175. extern uint8_t istack[]; /* This symbol means the end address of the istack_area[] */
  176. #define R_SECEND_USTACK ustack
  177. extern uint8_t ustack[]; /* This symbol means the end address of the ustack_area[] */
  178. #elif defined(__ICCRX__)
  179. #define R_SECTOP_INTVECTTBL __section_begin(R_SECNAME_INTVECTTBL)
  180. #if defined(__RXV2)
  181. #define R_SECTOP_EXCEPTVECTTBL __section_begin(R_SECNAME_EXCEPTVECTTBL)
  182. #endif
  183. #define R_SECEND_ISTACK R_SECEND(ISTACK)
  184. #define R_SECEND_USTACK R_SECEND(USTACK)
  185. #endif
  186. /* ========== #pragma Directive ========== */
  187. /* ---------- Stack Size ---------- */
  188. #if defined(__CCRX__)
  189. #define R_PRAGMA_STACKSIZE_SI(_size) _R_PRAGMA_STACKSIZE_SI(_size) /* _size means '(size)' */
  190. #define _R_PRAGMA_STACKSIZE_SI(_size) __R_PRAGMA_STACKSIZE_SI##_size
  191. #define __R_PRAGMA_STACKSIZE_SI(size) R_PRAGMA(stacksize si=size)
  192. #define R_PRAGMA_STACKSIZE_SU(_size) _R_PRAGMA_STACKSIZE_SU(_size) /* _size means '(size)' */
  193. #define _R_PRAGMA_STACKSIZE_SU(_size) __R_PRAGMA_STACKSIZE_SU##_size
  194. #define __R_PRAGMA_STACKSIZE_SU(size) R_PRAGMA(stacksize su=size)
  195. #elif defined(__GNUC__)
  196. #define R_PRAGMA_STACKSIZE_SI(size) static uint8_t istack_area[size] __attribute__((section(".r_bsp_istack"), used));
  197. #define R_PRAGMA_STACKSIZE_SU(size) static uint8_t ustack_area[size] __attribute__((section(".r_bsp_ustack"), used));
  198. #elif defined(__ICCRX__)
  199. //#define R_PRAGMA_STACKSIZE_SI(size) FIXME: Is there any way? If so, what to do?
  200. //#define R_PRAGMA_STACKSIZE_SU(size) FIXME: Is there any way? If so, what to do?
  201. #endif
  202. /* ---------- Section Switch (part1) ---------- */
  203. #if defined(__CCRX__)
  204. #define R_ATTRIB_SECTION_CHANGE_UBSETTINGS R_PRAGMA(section C UBSETTINGS)
  205. #if defined(__RXV2)
  206. #define R_ATTRIB_SECTION_CHANGE_EXCEPTVECT R_PRAGMA(section C EXCEPTVECT)
  207. #define R_ATTRIB_SECTION_CHANGE_RESETVECT R_PRAGMA(section C RESETVECT)
  208. #else
  209. #define R_ATTRIB_SECTION_CHANGE_FIXEDVECT R_PRAGMA(section C FIXEDVECT)
  210. #endif
  211. #elif defined(__GNUC__)
  212. #define R_ATTRIB_SECTION_CHANGE_UBSETTINGS __attribute__((section(R_SECNAME_UBSETTINGS)))
  213. #if defined (__RXV2)
  214. #define R_ATTRIB_SECTION_CHANGE_EXCEPTVECT __attribute__((section(R_SECNAME_EXCEPTVECTTBL)))
  215. #define R_ATTRIB_SECTION_CHANGE_RESETVECT __attribute__((section(R_SECNAME_RESETVECT)))
  216. #else
  217. #define R_ATTRIB_SECTION_CHANGE_FIXEDVECT __attribute__((section(R_SECNAME_FIXEDVECTTBL)))
  218. #endif
  219. #elif defined(__ICCRX__)
  220. #define R_ATTRIB_SECTION_CHANGE_UBSETTINGS R_PRAGMA(location=R_SECNAME_UBSETTINGS)
  221. #endif
  222. /* ---------- Section Switch (part2) ---------- */
  223. #if defined(__CCRX__)
  224. #define __R_ATTRIB_SECTION_CHANGE_V(type, section_name) R_PRAGMA(section type section_name)
  225. #define __R_ATTRIB_SECTION_CHANGE_F(type, section_name) R_PRAGMA(section type section_name)
  226. #define _R_ATTRIB_SECTION_CHANGE_B1(section_tag) __R_ATTRIB_SECTION_CHANGE_V(B, B##section_tag) /* The CC-RX adds postfix '_1' automatically */
  227. #define _R_ATTRIB_SECTION_CHANGE_B2(section_tag) __R_ATTRIB_SECTION_CHANGE_V(B, B##section_tag) /* The CC-RX adds postfix '_2' automatically */
  228. #define _R_ATTRIB_SECTION_CHANGE_B4(section_tag) __R_ATTRIB_SECTION_CHANGE_V(B, B##section_tag) /* The CC-RX does not add postfix '_4' */
  229. #define _R_ATTRIB_SECTION_CHANGE_C1(section_tag) __R_ATTRIB_SECTION_CHANGE_V(C, C##section_tag) /* The CC-RX adds postfix '_1' automatically */
  230. #define _R_ATTRIB_SECTION_CHANGE_C2(section_tag) __R_ATTRIB_SECTION_CHANGE_V(C, C##section_tag) /* The CC-RX adds postfix '_2' automatically */
  231. #define _R_ATTRIB_SECTION_CHANGE_C4(section_tag) __R_ATTRIB_SECTION_CHANGE_V(C, C##section_tag) /* The CC-RX does not add postfix '_4' */
  232. #define _R_ATTRIB_SECTION_CHANGE_P(section_tag) __R_ATTRIB_SECTION_CHANGE_F(P, P##section_tag)
  233. #if !defined(__cplusplus)
  234. #define R_ATTRIB_SECTION_CHANGE(type, section_tag, ...) _R_ATTRIB_SECTION_CHANGE_##type##__VA_ARGS__(section_tag)
  235. #else
  236. /* CC-RX' C++ mode does not support variadic macros */
  237. #endif
  238. #define R_ATTRIB_SECTION_CHANGE_END R_PRAGMA(section)
  239. #elif defined(__GNUC__)
  240. #define __R_ATTRIB_SECTION_CHANGE_V(section_name) __attribute__((section(#section_name)))
  241. #define __R_ATTRIB_SECTION_CHANGE_F(section_name) __attribute__((section(#section_name)))
  242. #define _R_ATTRIB_SECTION_CHANGE_B1(section_tag) __R_ATTRIB_SECTION_CHANGE_V(B##section_tag##_1)
  243. #define _R_ATTRIB_SECTION_CHANGE_B2(section_tag) __R_ATTRIB_SECTION_CHANGE_V(B##section_tag##_2)
  244. #define _R_ATTRIB_SECTION_CHANGE_B4(section_tag) __R_ATTRIB_SECTION_CHANGE_V(B##section_tag) /* No postfix '_4' because the CC-RX does not add it */
  245. #define _R_ATTRIB_SECTION_CHANGE_C1(section_tag) __R_ATTRIB_SECTION_CHANGE_V(C##section_tag##_1)
  246. #define _R_ATTRIB_SECTION_CHANGE_C2(section_tag) __R_ATTRIB_SECTION_CHANGE_V(C##section_tag##_2)
  247. #define _R_ATTRIB_SECTION_CHANGE_C4(section_tag) __R_ATTRIB_SECTION_CHANGE_V(C##section_tag) /* No postfix '_4' because the CC-RX does not add it */
  248. #define _R_ATTRIB_SECTION_CHANGE_P(section_tag) __R_ATTRIB_SECTION_CHANGE_F(P##section_tag)
  249. #define R_ATTRIB_SECTION_CHANGE(type, section_tag, ...) _R_ATTRIB_SECTION_CHANGE_##type##__VA_ARGS__(section_tag)
  250. #define R_ATTRIB_SECTION_CHANGE_END /* none */
  251. #elif defined(__ICCRX__)
  252. #define __R_ATTRIB_SECTION_CHANGE_V(section_name) R_PRAGMA(location=#section_name)\
  253. __no_init
  254. #define __R_ATTRIB_SECTION_CHANGE_F(section_name) R_PRAGMA(location=#section_name)
  255. #define _R_ATTRIB_SECTION_CHANGE_B1(section_tag) __R_ATTRIB_SECTION_CHANGE_V(B##section_tag##_1)
  256. #define _R_ATTRIB_SECTION_CHANGE_B2(section_tag) __R_ATTRIB_SECTION_CHANGE_V(B##section_tag##_2)
  257. #define _R_ATTRIB_SECTION_CHANGE_B4(section_tag) __R_ATTRIB_SECTION_CHANGE_V(B##section_tag) /* No postfix '_4' because the CC-RX does not add it */
  258. #define _R_ATTRIB_SECTION_CHANGE_P(section_tag) __R_ATTRIB_SECTION_CHANGE_F(P##section_tag)
  259. #define R_ATTRIB_SECTION_CHANGE(type, section_tag, ...) _R_ATTRIB_SECTION_CHANGE_##type##__VA_ARGS__(section_tag)
  260. #define R_ATTRIB_SECTION_CHANGE_END /* none */
  261. #endif
  262. /* ---------- Interrupt Function Creation ---------- */
  263. #if defined(__CCRX__)
  264. #define R_PRAGMA_INTERRUPT(function_name, vector) R_PRAGMA(interrupt function_name(vect=vector))\
  265. extern void function_name(void);
  266. #define R_PRAGMA_STATIC_INTERRUPT(function_name, vector) R_PRAGMA(interrupt function_name(vect=vector))\
  267. static void function_name(void);
  268. #define R_PRAGMA_INTERRUPT_DEFAULT(function_name) R_PRAGMA(interrupt function_name)\
  269. extern void function_name(void);
  270. #define R_PRAGMA_STATIC_INTERRUPT_DEFAULT(function_name) R_PRAGMA(interrupt function_name)\
  271. static void function_name(void);
  272. #define R_PRAGMA_INTERRUPT_FUNCTION(function_name) R_PRAGMA(interrupt function_name)\
  273. extern void function_name(void);
  274. #define R_PRAGMA_STATIC_INTERRUPT_FUNCTION(function_name) R_PRAGMA(interrupt function_name)\
  275. static void function_name(void);
  276. #define R_PRAGMA_FAST_INTERRUPT(function_name) R_PRAGMA(interrupt function_name(fast))\
  277. extern void function_name(void);
  278. #define R_PRAGMA_STATIC_FAST_INTERRUPT(function_name) R_PRAGMA(interrupt function_name(fast))\
  279. static void function_name(void);
  280. #define R_ATTRIB_INTERRUPT extern /* only this one because of no corresponding keyword */
  281. #define R_ATTRIB_STATIC_INTERRUPT static /* only this one because of no corresponding keyword */
  282. #define R_ATTRIB_FAST_INTERRUPT extern /* only this one because of no corresponding keyword */
  283. #define R_ATTRIB_STATIC_FAST_INTERRUPT static /* only this one because of no corresponding keyword */
  284. #elif defined(__GNUC__)
  285. #define R_PRAGMA_INTERRUPT(function_name, vector) extern void function_name(void) __attribute__((interrupt(R_SECNAME_INTVECTTBL, vector)));
  286. #define R_PRAGMA_STATIC_INTERRUPT(function_name, vector) static void function_name(void) __attribute__((interrupt(R_SECNAME_INTVECTTBL, vector), used));
  287. #define R_PRAGMA_INTERRUPT_DEFAULT(function_name) extern void function_name(void) __attribute__((interrupt(R_SECNAME_INTVECTTBL, "$default")));
  288. #define R_PRAGMA_STATIC_INTERRUPT_DEFAULT(function_name) static void function_name(void) __attribute__((interrupt(R_SECNAME_INTVECTTBL, "$default"), used));
  289. #define R_PRAGMA_INTERRUPT_FUNCTION(function_name) extern void function_name(void) __attribute__((interrupt));
  290. #define R_PRAGMA_STATIC_INTERRUPT_FUNCTION(function_name) static void function_name(void) __attribute__((interrupt, used));
  291. #define R_PRAGMA_FAST_INTERRUPT(function_name) extern void function_name(void) __attribute__((interrupt(fast)));
  292. #define R_PRAGMA_STATIC_FAST_INTERRUPT(function_name) static void function_name(void) __attribute__((interrupt(fast)), used);
  293. #define R_ATTRIB_INTERRUPT extern /* only this one because __attribute__((interrupt)) prevents GNURX from generating vector */
  294. #define R_ATTRIB_STATIC_INTERRUPT static /* only this one because __attribute__((interrupt, used)) prevents GNURX from generating vector */
  295. #define R_ATTRIB_FAST_INTERRUPT extern /* __attribute__((interrupt(fast))) Not necessary, but Don't forget a R_PRAGMA_FAST_INTERRUPT() declaration */
  296. #define R_ATTRIB_STATIC_FAST_INTERRUPT static /* __attribute__((interrupt(fast)), used) Not necessary, but Don't forget a R_PRAGMA_STATIC_FAST_INTERRUPT() declaration */
  297. #elif defined(__ICCRX__)
  298. #define R_PRAGMA_INTERRUPT(function_name, vect) R_PRAGMA(vector=vect)\
  299. extern __interrupt void function_name(void);
  300. #define R_PRAGMA_STATIC_INTERRUPT(function_name, vect) R_PRAGMA(vector=vect)\
  301. static __interrupt void function_name(void);
  302. #define R_PRAGMA_INTERRUPT_DEFAULT(function_name) extern __interrupt void function_name(void);
  303. #define R_PRAGMA_STATIC_INTERRUPT_DEFAULT(function_name) static __interrupt void function_name(void);
  304. #define R_PRAGMA_INTERRUPT_FUNCTION(function_name) extern __interrupt void function_name(void);
  305. #define R_PRAGMA_STATIC_INTERRUPT_FUNCTION(function_name) static __interrupt void function_name(void);
  306. #define R_PRAGMA_FAST_INTERRUPT(function_name) extern __fast_interrupt void function_name(void);
  307. #define R_PRAGMA_STATIC_FAST_INTERRUPT(function_name) static __fast_interrupt void function_name(void);
  308. #define R_ATTRIB_INTERRUPT extern __interrupt /* ICCRX requires __interrupt not only at a function declaration but also at a function definition */
  309. #define R_ATTRIB_STATIC_INTERRUPT static __interrupt /* ICCRX requires __interrupt not only at a function declaration but also at a function definition */
  310. #define R_ATTRIB_FAST_INTERRUPT extern __fast_interrupt /* ICCRX requires __interrupt not only at a function declaration but also at a function definition */
  311. #define R_ATTRIB_STATIC_FAST_INTERRUPT static __fast_interrupt /* ICCRX requires __interrupt not only at a function declaration but also at a function definition */
  312. #endif
  313. /* ---------- Inline Expansion of Function ---------- */
  314. #if defined(__CCRX__)
  315. #define R_PRAGMA_INLINE(function_name) R_PRAGMA(inline function_name)\
  316. extern
  317. #define R_PRAGMA_STATIC_INLINE(function_name) R_PRAGMA(inline function_name)\
  318. static
  319. #elif defined(__GNUC__)
  320. #define R_PRAGMA_INLINE(function_name) inline extern __attribute__((always_inline))
  321. #define R_PRAGMA_STATIC_INLINE(function_name) inline static __attribute__((always_inline))
  322. #elif defined(__ICCRX__)
  323. #define R_PRAGMA_INLINE(function_name) R_PRAGMA(inline=forced)\
  324. extern
  325. #define R_PRAGMA_STATIC_INLINE(function_name) R_PRAGMA(inline=forced)\
  326. static
  327. #endif
  328. /* ---------- Inline Expansion of Assembly-Language Function (part1) ---------- */
  329. #if defined(__CCRX__)
  330. #define R_PRAGMA_INLINE_ASM(function_name) R_PRAGMA(inline_asm function_name)\
  331. extern
  332. #define R_PRAGMA_STATIC_INLINE_ASM(function_name) R_PRAGMA(inline_asm function_name)\
  333. static
  334. #elif defined(__GNUC__)
  335. /* Using inline assembler without operands and clobbered resources is dangerous but using it with them is too difficult. */
  336. #define R_PRAGMA_INLINE_ASM(function_name) extern __attribute__((naked, noinline))
  337. #define R_PRAGMA_STATIC_INLINE_ASM(function_name) static __attribute__((naked, noinline))
  338. #elif defined(__ICCRX__)
  339. /* Using inline assembler without operands and clobbered resources is dangerous but using it with them is too difficult. */
  340. #define R_PRAGMA_INLINE_ASM(function_name) R_PRAGMA(inline=never)\
  341. extern __task
  342. #define R_PRAGMA_STATIC_INLINE_ASM(function_name) R_PRAGMA(inline=never)\
  343. static __task
  344. #endif
  345. /* ---------- Inline Expansion of Assembly-Language Function (part2) ---------- */
  346. #if defined(__CDT_PARSER__)
  347. #define R_ASM(...) /* none */
  348. #define R_LAB_NEXT(n) /* none */
  349. #define R_LAB_PREV(n) /* none */
  350. #define R_LAB(n_colon) /* none */
  351. #define R_ASM_BEGIN /* none */
  352. #define R_ASM_END /* none */
  353. #else
  354. #if defined(__CCRX__)
  355. #if !defined(__cplusplus)
  356. #define R_ASM(...) __VA_ARGS__
  357. #else
  358. /* CC-RX' C++ mode does not support variadic macros */
  359. #endif
  360. #define R_LAB_NEXT(n) ?+
  361. #define R_LAB_PREV(n) ?-
  362. #define R_LAB(n_colon) R_ASM(?:)
  363. #define R_ASM_BEGIN /* none */
  364. #define R_ASM_END /* none */
  365. #elif defined(__GNUC__)
  366. #define _R_ASM(...) #__VA_ARGS__
  367. #define R_ASM(...) _R_ASM(__VA_ARGS__\n)
  368. #define R_LAB_NEXT(n) ?+
  369. #define R_LAB_PREV(n) ?-
  370. #define R_LAB(n_colon) R_ASM(?:)
  371. #define R_ASM_BEGIN __asm__ volatile (
  372. #define R_ASM_END R_ASM(rts));
  373. #elif defined(__ICCRX__)
  374. #define _R_ASM(...) #__VA_ARGS__
  375. #define R_ASM(...) _R_ASM(__VA_ARGS__\n)
  376. #define R_LAB_NEXT(n) _lab##n
  377. #define R_LAB_PREV(n) _lab##n
  378. #define R_LAB(n_colon) R_ASM(_lab##n_colon)
  379. #define R_ASM_BEGIN asm(
  380. #define R_ASM_END );
  381. #endif
  382. #endif
  383. /* ---------- Inline Expansion of Assembly-Language Function (part3) ---------- */
  384. #if defined(__CCRX__)
  385. #define R_ASM_INTERNAL_USED(p) /* no way */
  386. #define R_ASM_INTERNAL_NOT_USED(p) /* no way */
  387. #elif defined(__GNUC__)
  388. #define R_ASM_INTERNAL_USED(p) ((void)(p));
  389. #define R_ASM_INTERNAL_NOT_USED(p) ((void)(p));
  390. #elif defined(__ICCRX__)
  391. #define R_ASM_INTERNAL_USED(p) ((void)(p));
  392. #define R_ASM_INTERNAL_NOT_USED(p) ((void)(p));
  393. #endif
  394. /* ---------- Bit Field Order Specification ---------- */
  395. #if defined(__CCRX__)
  396. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_2(bf1, bf2)\
  397. struct {\
  398. R_PRAGMA(bit_order left)\
  399. struct {\
  400. bf1;\
  401. bf2;\
  402. };\
  403. R_PRAGMA(bit_order)\
  404. }
  405. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_3(bf1, bf2, bf3)\
  406. struct {\
  407. R_PRAGMA(bit_order left)\
  408. struct {\
  409. bf1;\
  410. bf2;\
  411. bf3;\
  412. };\
  413. R_PRAGMA(bit_order)\
  414. }
  415. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_4(bf1, bf2, bf3, bf4)\
  416. struct {\
  417. R_PRAGMA(bit_order left)\
  418. struct {\
  419. bf1;\
  420. bf2;\
  421. bf3;\
  422. bf4;\
  423. };\
  424. R_PRAGMA(bit_order)\
  425. }
  426. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_5(bf1, bf2, bf3, bf4, bf5)\
  427. struct {\
  428. R_PRAGMA(bit_order left)\
  429. struct {\
  430. bf1;\
  431. bf2;\
  432. bf3;\
  433. bf4;\
  434. bf5;\
  435. };\
  436. R_PRAGMA(bit_order)\
  437. }
  438. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_6(bf1, bf2, bf3, bf4, bf5, bf6)\
  439. struct {\
  440. R_PRAGMA(bit_order left)\
  441. struct {\
  442. bf1;\
  443. bf2;\
  444. bf3;\
  445. bf4;\
  446. bf5;\
  447. bf6;\
  448. };\
  449. R_PRAGMA(bit_order)\
  450. }
  451. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_7(bf1, bf2, bf3, bf4, bf5, bf6, bf7)\
  452. struct {\
  453. R_PRAGMA(bit_order left)\
  454. struct {\
  455. bf1;\
  456. bf2;\
  457. bf3;\
  458. bf4;\
  459. bf5;\
  460. bf6;\
  461. bf7;\
  462. };\
  463. R_PRAGMA(bit_order)\
  464. }
  465. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_8(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8)\
  466. struct {\
  467. R_PRAGMA(bit_order left)\
  468. struct {\
  469. bf1;\
  470. bf2;\
  471. bf3;\
  472. bf4;\
  473. bf5;\
  474. bf6;\
  475. bf7;\
  476. bf8;\
  477. };\
  478. R_PRAGMA(bit_order)\
  479. }
  480. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_9(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9)\
  481. struct {\
  482. R_PRAGMA(bit_order left)\
  483. struct {\
  484. bf1;\
  485. bf2;\
  486. bf3;\
  487. bf4;\
  488. bf5;\
  489. bf6;\
  490. bf7;\
  491. bf8;\
  492. bf9;\
  493. };\
  494. R_PRAGMA(bit_order)\
  495. }
  496. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_10(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10)\
  497. struct {\
  498. R_PRAGMA(bit_order left)\
  499. struct {\
  500. bf1;\
  501. bf2;\
  502. bf3;\
  503. bf4;\
  504. bf5;\
  505. bf6;\
  506. bf7;\
  507. bf8;\
  508. bf9;\
  509. bf10;\
  510. };\
  511. R_PRAGMA(bit_order)\
  512. }
  513. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_11(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  514. bf11)\
  515. struct {\
  516. R_PRAGMA(bit_order left)\
  517. struct {\
  518. bf1;\
  519. bf2;\
  520. bf3;\
  521. bf4;\
  522. bf5;\
  523. bf6;\
  524. bf7;\
  525. bf8;\
  526. bf9;\
  527. bf10;\
  528. bf11;\
  529. };\
  530. R_PRAGMA(bit_order)\
  531. }
  532. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_12(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  533. bf11, bf12)\
  534. struct {\
  535. R_PRAGMA(bit_order left)\
  536. struct {\
  537. bf1;\
  538. bf2;\
  539. bf3;\
  540. bf4;\
  541. bf5;\
  542. bf6;\
  543. bf7;\
  544. bf8;\
  545. bf9;\
  546. bf10;\
  547. bf11;\
  548. bf12;\
  549. };\
  550. R_PRAGMA(bit_order)\
  551. }
  552. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_13(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  553. bf11, bf12, bf13)\
  554. struct {\
  555. R_PRAGMA(bit_order left)\
  556. struct {\
  557. bf1;\
  558. bf2;\
  559. bf3;\
  560. bf4;\
  561. bf5;\
  562. bf6;\
  563. bf7;\
  564. bf8;\
  565. bf9;\
  566. bf10;\
  567. bf11;\
  568. bf12;\
  569. bf13;\
  570. };\
  571. R_PRAGMA(bit_order)\
  572. }
  573. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_14(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  574. bf11, bf12, bf13, bf14)\
  575. struct {\
  576. R_PRAGMA(bit_order left)\
  577. struct {\
  578. bf1;\
  579. bf2;\
  580. bf3;\
  581. bf4;\
  582. bf5;\
  583. bf6;\
  584. bf7;\
  585. bf8;\
  586. bf9;\
  587. bf10;\
  588. bf11;\
  589. bf12;\
  590. bf13;\
  591. bf14;\
  592. };\
  593. R_PRAGMA(bit_order)\
  594. }
  595. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_15(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  596. bf11, bf12, bf13, bf14, bf15)\
  597. struct {\
  598. R_PRAGMA(bit_order left)\
  599. struct {\
  600. bf1;\
  601. bf2;\
  602. bf3;\
  603. bf4;\
  604. bf5;\
  605. bf6;\
  606. bf7;\
  607. bf8;\
  608. bf9;\
  609. bf10;\
  610. bf11;\
  611. bf12;\
  612. bf13;\
  613. bf14;\
  614. bf15;\
  615. };\
  616. R_PRAGMA(bit_order)\
  617. }
  618. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_16(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  619. bf11, bf12, bf13, bf14, bf15, bf16)\
  620. struct {\
  621. R_PRAGMA(bit_order left)\
  622. struct {\
  623. bf1;\
  624. bf2;\
  625. bf3;\
  626. bf4;\
  627. bf5;\
  628. bf6;\
  629. bf7;\
  630. bf8;\
  631. bf9;\
  632. bf10;\
  633. bf11;\
  634. bf12;\
  635. bf13;\
  636. bf14;\
  637. bf15;\
  638. bf16;\
  639. };\
  640. R_PRAGMA(bit_order)\
  641. }
  642. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_17(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  643. bf11, bf12, bf13, bf14, bf15, bf16, bf17)\
  644. struct {\
  645. R_PRAGMA(bit_order left)\
  646. struct {\
  647. bf1;\
  648. bf2;\
  649. bf3;\
  650. bf4;\
  651. bf5;\
  652. bf6;\
  653. bf7;\
  654. bf8;\
  655. bf9;\
  656. bf10;\
  657. bf11;\
  658. bf12;\
  659. bf13;\
  660. bf14;\
  661. bf15;\
  662. bf16;\
  663. bf17;\
  664. };\
  665. R_PRAGMA(bit_order)\
  666. }
  667. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_18(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  668. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18)\
  669. struct {\
  670. R_PRAGMA(bit_order left)\
  671. struct {\
  672. bf1;\
  673. bf2;\
  674. bf3;\
  675. bf4;\
  676. bf5;\
  677. bf6;\
  678. bf7;\
  679. bf8;\
  680. bf9;\
  681. bf10;\
  682. bf11;\
  683. bf12;\
  684. bf13;\
  685. bf14;\
  686. bf15;\
  687. bf16;\
  688. bf17;\
  689. bf18;\
  690. };\
  691. R_PRAGMA(bit_order)\
  692. }
  693. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_19(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  694. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19)\
  695. struct {\
  696. R_PRAGMA(bit_order left)\
  697. struct {\
  698. bf1;\
  699. bf2;\
  700. bf3;\
  701. bf4;\
  702. bf5;\
  703. bf6;\
  704. bf7;\
  705. bf8;\
  706. bf9;\
  707. bf10;\
  708. bf11;\
  709. bf12;\
  710. bf13;\
  711. bf14;\
  712. bf15;\
  713. bf16;\
  714. bf17;\
  715. bf18;\
  716. bf19;\
  717. };\
  718. R_PRAGMA(bit_order)\
  719. }
  720. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_20(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  721. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20)\
  722. struct {\
  723. R_PRAGMA(bit_order left)\
  724. struct {\
  725. bf1;\
  726. bf2;\
  727. bf3;\
  728. bf4;\
  729. bf5;\
  730. bf6;\
  731. bf7;\
  732. bf8;\
  733. bf9;\
  734. bf10;\
  735. bf11;\
  736. bf12;\
  737. bf13;\
  738. bf14;\
  739. bf15;\
  740. bf16;\
  741. bf17;\
  742. bf18;\
  743. bf19;\
  744. bf20;\
  745. };\
  746. R_PRAGMA(bit_order)\
  747. }
  748. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_21(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  749. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  750. bf21)\
  751. struct {\
  752. R_PRAGMA(bit_order left)\
  753. struct {\
  754. bf1;\
  755. bf2;\
  756. bf3;\
  757. bf4;\
  758. bf5;\
  759. bf6;\
  760. bf7;\
  761. bf8;\
  762. bf9;\
  763. bf10;\
  764. bf11;\
  765. bf12;\
  766. bf13;\
  767. bf14;\
  768. bf15;\
  769. bf16;\
  770. bf17;\
  771. bf18;\
  772. bf19;\
  773. bf20;\
  774. bf21;\
  775. };\
  776. R_PRAGMA(bit_order)\
  777. }
  778. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_22(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  779. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  780. bf21, bf22)\
  781. struct {\
  782. R_PRAGMA(bit_order left)\
  783. struct {\
  784. bf1;\
  785. bf2;\
  786. bf3;\
  787. bf4;\
  788. bf5;\
  789. bf6;\
  790. bf7;\
  791. bf8;\
  792. bf9;\
  793. bf10;\
  794. bf11;\
  795. bf12;\
  796. bf13;\
  797. bf14;\
  798. bf15;\
  799. bf16;\
  800. bf17;\
  801. bf18;\
  802. bf19;\
  803. bf20;\
  804. bf21;\
  805. bf22;\
  806. };\
  807. R_PRAGMA(bit_order)\
  808. }
  809. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_23(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  810. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  811. bf21, bf22, bf23)\
  812. struct {\
  813. R_PRAGMA(bit_order left)\
  814. struct {\
  815. bf1;\
  816. bf2;\
  817. bf3;\
  818. bf4;\
  819. bf5;\
  820. bf6;\
  821. bf7;\
  822. bf8;\
  823. bf9;\
  824. bf10;\
  825. bf11;\
  826. bf12;\
  827. bf13;\
  828. bf14;\
  829. bf15;\
  830. bf16;\
  831. bf17;\
  832. bf18;\
  833. bf19;\
  834. bf20;\
  835. bf21;\
  836. bf22;\
  837. bf23;\
  838. };\
  839. R_PRAGMA(bit_order)\
  840. }
  841. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_24(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  842. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  843. bf21, bf22, bf23, bf24)\
  844. struct {\
  845. R_PRAGMA(bit_order left)\
  846. struct {\
  847. bf1;\
  848. bf2;\
  849. bf3;\
  850. bf4;\
  851. bf5;\
  852. bf6;\
  853. bf7;\
  854. bf8;\
  855. bf9;\
  856. bf10;\
  857. bf11;\
  858. bf12;\
  859. bf13;\
  860. bf14;\
  861. bf15;\
  862. bf16;\
  863. bf17;\
  864. bf18;\
  865. bf19;\
  866. bf20;\
  867. bf21;\
  868. bf22;\
  869. bf23;\
  870. bf24;\
  871. };\
  872. R_PRAGMA(bit_order)\
  873. }
  874. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_25(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  875. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  876. bf21, bf22, bf23, bf24, bf25)\
  877. struct {\
  878. R_PRAGMA(bit_order left)\
  879. struct {\
  880. bf1;\
  881. bf2;\
  882. bf3;\
  883. bf4;\
  884. bf5;\
  885. bf6;\
  886. bf7;\
  887. bf8;\
  888. bf9;\
  889. bf10;\
  890. bf11;\
  891. bf12;\
  892. bf13;\
  893. bf14;\
  894. bf15;\
  895. bf16;\
  896. bf17;\
  897. bf18;\
  898. bf19;\
  899. bf20;\
  900. bf21;\
  901. bf22;\
  902. bf23;\
  903. bf24;\
  904. bf25;\
  905. };\
  906. R_PRAGMA(bit_order)\
  907. }
  908. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_26(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  909. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  910. bf21, bf22, bf23, bf24, bf25, bf26)\
  911. struct {\
  912. R_PRAGMA(bit_order left)\
  913. struct {\
  914. bf1;\
  915. bf2;\
  916. bf3;\
  917. bf4;\
  918. bf5;\
  919. bf6;\
  920. bf7;\
  921. bf8;\
  922. bf9;\
  923. bf10;\
  924. bf11;\
  925. bf12;\
  926. bf13;\
  927. bf14;\
  928. bf15;\
  929. bf16;\
  930. bf17;\
  931. bf18;\
  932. bf19;\
  933. bf20;\
  934. bf21;\
  935. bf22;\
  936. bf23;\
  937. bf24;\
  938. bf25;\
  939. bf26;\
  940. };\
  941. R_PRAGMA(bit_order)\
  942. }
  943. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_27(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  944. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  945. bf21, bf22, bf23, bf24, bf25, bf26, bf27)\
  946. struct {\
  947. R_PRAGMA(bit_order left)\
  948. struct {\
  949. bf1;\
  950. bf2;\
  951. bf3;\
  952. bf4;\
  953. bf5;\
  954. bf6;\
  955. bf7;\
  956. bf8;\
  957. bf9;\
  958. bf10;\
  959. bf11;\
  960. bf12;\
  961. bf13;\
  962. bf14;\
  963. bf15;\
  964. bf16;\
  965. bf17;\
  966. bf18;\
  967. bf19;\
  968. bf20;\
  969. bf21;\
  970. bf22;\
  971. bf23;\
  972. bf24;\
  973. bf25;\
  974. bf26;\
  975. bf27;\
  976. };\
  977. R_PRAGMA(bit_order)\
  978. }
  979. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_28(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  980. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  981. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28)\
  982. struct {\
  983. R_PRAGMA(bit_order left)\
  984. struct {\
  985. bf1;\
  986. bf2;\
  987. bf3;\
  988. bf4;\
  989. bf5;\
  990. bf6;\
  991. bf7;\
  992. bf8;\
  993. bf9;\
  994. bf10;\
  995. bf11;\
  996. bf12;\
  997. bf13;\
  998. bf14;\
  999. bf15;\
  1000. bf16;\
  1001. bf17;\
  1002. bf18;\
  1003. bf19;\
  1004. bf20;\
  1005. bf21;\
  1006. bf22;\
  1007. bf23;\
  1008. bf24;\
  1009. bf25;\
  1010. bf26;\
  1011. bf27;\
  1012. bf28;\
  1013. };\
  1014. R_PRAGMA(bit_order)\
  1015. }
  1016. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_29(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1017. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1018. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29)\
  1019. struct {\
  1020. R_PRAGMA(bit_order left)\
  1021. struct {\
  1022. bf1;\
  1023. bf2;\
  1024. bf3;\
  1025. bf4;\
  1026. bf5;\
  1027. bf6;\
  1028. bf7;\
  1029. bf8;\
  1030. bf9;\
  1031. bf10;\
  1032. bf11;\
  1033. bf12;\
  1034. bf13;\
  1035. bf14;\
  1036. bf15;\
  1037. bf16;\
  1038. bf17;\
  1039. bf18;\
  1040. bf19;\
  1041. bf20;\
  1042. bf21;\
  1043. bf22;\
  1044. bf23;\
  1045. bf24;\
  1046. bf25;\
  1047. bf26;\
  1048. bf27;\
  1049. bf28;\
  1050. bf29;\
  1051. };\
  1052. R_PRAGMA(bit_order)\
  1053. }
  1054. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_30(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1055. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1056. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30)\
  1057. struct {\
  1058. R_PRAGMA(bit_order left)\
  1059. struct {\
  1060. bf1;\
  1061. bf2;\
  1062. bf3;\
  1063. bf4;\
  1064. bf5;\
  1065. bf6;\
  1066. bf7;\
  1067. bf8;\
  1068. bf9;\
  1069. bf10;\
  1070. bf11;\
  1071. bf12;\
  1072. bf13;\
  1073. bf14;\
  1074. bf15;\
  1075. bf16;\
  1076. bf17;\
  1077. bf18;\
  1078. bf19;\
  1079. bf20;\
  1080. bf21;\
  1081. bf22;\
  1082. bf23;\
  1083. bf24;\
  1084. bf25;\
  1085. bf26;\
  1086. bf27;\
  1087. bf28;\
  1088. bf29;\
  1089. bf30;\
  1090. };\
  1091. R_PRAGMA(bit_order)\
  1092. }
  1093. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_31(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1094. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1095. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  1096. bf31)\
  1097. struct {\
  1098. R_PRAGMA(bit_order left)\
  1099. struct {\
  1100. bf1;\
  1101. bf2;\
  1102. bf3;\
  1103. bf4;\
  1104. bf5;\
  1105. bf6;\
  1106. bf7;\
  1107. bf8;\
  1108. bf9;\
  1109. bf10;\
  1110. bf11;\
  1111. bf12;\
  1112. bf13;\
  1113. bf14;\
  1114. bf15;\
  1115. bf16;\
  1116. bf17;\
  1117. bf18;\
  1118. bf19;\
  1119. bf20;\
  1120. bf21;\
  1121. bf22;\
  1122. bf23;\
  1123. bf24;\
  1124. bf25;\
  1125. bf26;\
  1126. bf27;\
  1127. bf28;\
  1128. bf29;\
  1129. bf30;\
  1130. bf31;\
  1131. };\
  1132. R_PRAGMA(bit_order)\
  1133. }
  1134. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_32(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1135. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1136. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  1137. bf31, bf32)\
  1138. struct {\
  1139. R_PRAGMA(bit_order left)\
  1140. struct {\
  1141. bf1;\
  1142. bf2;\
  1143. bf3;\
  1144. bf4;\
  1145. bf5;\
  1146. bf6;\
  1147. bf7;\
  1148. bf8;\
  1149. bf9;\
  1150. bf10;\
  1151. bf11;\
  1152. bf12;\
  1153. bf13;\
  1154. bf14;\
  1155. bf15;\
  1156. bf16;\
  1157. bf17;\
  1158. bf18;\
  1159. bf19;\
  1160. bf20;\
  1161. bf21;\
  1162. bf22;\
  1163. bf23;\
  1164. bf24;\
  1165. bf25;\
  1166. bf26;\
  1167. bf27;\
  1168. bf28;\
  1169. bf29;\
  1170. bf30;\
  1171. bf31;\
  1172. bf32;\
  1173. };\
  1174. R_PRAGMA(bit_order)\
  1175. }
  1176. #elif defined(__GNUC__)
  1177. #if defined(__RX_LITTLE_ENDIAN__)
  1178. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_2(bf1, bf2)\
  1179. struct {\
  1180. bf2;\
  1181. bf1;\
  1182. }
  1183. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_3(bf1, bf2, bf3)\
  1184. struct {\
  1185. bf3;\
  1186. bf2;\
  1187. bf1;\
  1188. }
  1189. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_4(bf1, bf2, bf3, bf4)\
  1190. struct {\
  1191. bf4;\
  1192. bf3;\
  1193. bf2;\
  1194. bf1;\
  1195. }
  1196. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_5(bf1, bf2, bf3, bf4, bf5)\
  1197. struct {\
  1198. bf5;\
  1199. bf4;\
  1200. bf3;\
  1201. bf2;\
  1202. bf1;\
  1203. }
  1204. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_6(bf1, bf2, bf3, bf4, bf5, bf6)\
  1205. struct {\
  1206. bf6;\
  1207. bf5;\
  1208. bf4;\
  1209. bf3;\
  1210. bf2;\
  1211. bf1;\
  1212. }
  1213. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_7(bf1, bf2, bf3, bf4, bf5, bf6, bf7)\
  1214. struct {\
  1215. bf7;\
  1216. bf6;\
  1217. bf5;\
  1218. bf4;\
  1219. bf3;\
  1220. bf2;\
  1221. bf1;\
  1222. }
  1223. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_8(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8)\
  1224. struct {\
  1225. bf8;\
  1226. bf7;\
  1227. bf6;\
  1228. bf5;\
  1229. bf4;\
  1230. bf3;\
  1231. bf2;\
  1232. bf1;\
  1233. }
  1234. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_9(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9)\
  1235. struct {\
  1236. bf9;\
  1237. bf8;\
  1238. bf7;\
  1239. bf6;\
  1240. bf5;\
  1241. bf4;\
  1242. bf3;\
  1243. bf2;\
  1244. bf1;\
  1245. }
  1246. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_10(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10)\
  1247. struct {\
  1248. bf10;\
  1249. bf9;\
  1250. bf8;\
  1251. bf7;\
  1252. bf6;\
  1253. bf5;\
  1254. bf4;\
  1255. bf3;\
  1256. bf2;\
  1257. bf1;\
  1258. }
  1259. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_11(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1260. bf11)\
  1261. struct {\
  1262. bf11;\
  1263. bf10;\
  1264. bf9;\
  1265. bf8;\
  1266. bf7;\
  1267. bf6;\
  1268. bf5;\
  1269. bf4;\
  1270. bf3;\
  1271. bf2;\
  1272. bf1;\
  1273. }
  1274. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_12(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1275. bf11, bf12)\
  1276. struct {\
  1277. bf12;\
  1278. bf11;\
  1279. bf10;\
  1280. bf9;\
  1281. bf8;\
  1282. bf7;\
  1283. bf6;\
  1284. bf5;\
  1285. bf4;\
  1286. bf3;\
  1287. bf2;\
  1288. bf1;\
  1289. }
  1290. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_13(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1291. bf11, bf12, bf13)\
  1292. struct {\
  1293. bf13;\
  1294. bf12;\
  1295. bf11;\
  1296. bf10;\
  1297. bf9;\
  1298. bf8;\
  1299. bf7;\
  1300. bf6;\
  1301. bf5;\
  1302. bf4;\
  1303. bf3;\
  1304. bf2;\
  1305. bf1;\
  1306. }
  1307. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_14(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1308. bf11, bf12, bf13, bf14)\
  1309. struct {\
  1310. bf14;\
  1311. bf13;\
  1312. bf12;\
  1313. bf11;\
  1314. bf10;\
  1315. bf9;\
  1316. bf8;\
  1317. bf7;\
  1318. bf6;\
  1319. bf5;\
  1320. bf4;\
  1321. bf3;\
  1322. bf2;\
  1323. bf1;\
  1324. }
  1325. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_15(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1326. bf11, bf12, bf13, bf14, bf15)\
  1327. struct {\
  1328. bf15;\
  1329. bf14;\
  1330. bf13;\
  1331. bf12;\
  1332. bf11;\
  1333. bf10;\
  1334. bf9;\
  1335. bf8;\
  1336. bf7;\
  1337. bf6;\
  1338. bf5;\
  1339. bf4;\
  1340. bf3;\
  1341. bf2;\
  1342. bf1;\
  1343. }
  1344. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_16(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1345. bf11, bf12, bf13, bf14, bf15, bf16)\
  1346. struct {\
  1347. bf16;\
  1348. bf15;\
  1349. bf14;\
  1350. bf13;\
  1351. bf12;\
  1352. bf11;\
  1353. bf10;\
  1354. bf9;\
  1355. bf8;\
  1356. bf7;\
  1357. bf6;\
  1358. bf5;\
  1359. bf4;\
  1360. bf3;\
  1361. bf2;\
  1362. bf1;\
  1363. }
  1364. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_17(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1365. bf11, bf12, bf13, bf14, bf15, bf16, bf17)\
  1366. struct {\
  1367. bf17;\
  1368. bf16;\
  1369. bf15;\
  1370. bf14;\
  1371. bf13;\
  1372. bf12;\
  1373. bf11;\
  1374. bf10;\
  1375. bf9;\
  1376. bf8;\
  1377. bf7;\
  1378. bf6;\
  1379. bf5;\
  1380. bf4;\
  1381. bf3;\
  1382. bf2;\
  1383. bf1;\
  1384. }
  1385. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_18(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1386. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18)\
  1387. struct {\
  1388. bf18;\
  1389. bf17;\
  1390. bf16;\
  1391. bf15;\
  1392. bf14;\
  1393. bf13;\
  1394. bf12;\
  1395. bf11;\
  1396. bf10;\
  1397. bf9;\
  1398. bf8;\
  1399. bf7;\
  1400. bf6;\
  1401. bf5;\
  1402. bf4;\
  1403. bf3;\
  1404. bf2;\
  1405. bf1;\
  1406. }
  1407. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_19(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1408. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19)\
  1409. struct {\
  1410. bf19;\
  1411. bf18;\
  1412. bf17;\
  1413. bf16;\
  1414. bf15;\
  1415. bf14;\
  1416. bf13;\
  1417. bf12;\
  1418. bf11;\
  1419. bf10;\
  1420. bf9;\
  1421. bf8;\
  1422. bf7;\
  1423. bf6;\
  1424. bf5;\
  1425. bf4;\
  1426. bf3;\
  1427. bf2;\
  1428. bf1;\
  1429. }
  1430. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_20(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1431. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20)\
  1432. struct {\
  1433. bf20;\
  1434. bf19;\
  1435. bf18;\
  1436. bf17;\
  1437. bf16;\
  1438. bf15;\
  1439. bf14;\
  1440. bf13;\
  1441. bf12;\
  1442. bf11;\
  1443. bf10;\
  1444. bf9;\
  1445. bf8;\
  1446. bf7;\
  1447. bf6;\
  1448. bf5;\
  1449. bf4;\
  1450. bf3;\
  1451. bf2;\
  1452. bf1;\
  1453. }
  1454. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_21(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1455. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1456. bf21)\
  1457. struct {\
  1458. bf21;\
  1459. bf20;\
  1460. bf19;\
  1461. bf18;\
  1462. bf17;\
  1463. bf16;\
  1464. bf15;\
  1465. bf14;\
  1466. bf13;\
  1467. bf12;\
  1468. bf11;\
  1469. bf10;\
  1470. bf9;\
  1471. bf8;\
  1472. bf7;\
  1473. bf6;\
  1474. bf5;\
  1475. bf4;\
  1476. bf3;\
  1477. bf2;\
  1478. bf1;\
  1479. }
  1480. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_22(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1481. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1482. bf21, bf22)\
  1483. struct {\
  1484. bf22;\
  1485. bf21;\
  1486. bf20;\
  1487. bf19;\
  1488. bf18;\
  1489. bf17;\
  1490. bf16;\
  1491. bf15;\
  1492. bf14;\
  1493. bf13;\
  1494. bf12;\
  1495. bf11;\
  1496. bf10;\
  1497. bf9;\
  1498. bf8;\
  1499. bf7;\
  1500. bf6;\
  1501. bf5;\
  1502. bf4;\
  1503. bf3;\
  1504. bf2;\
  1505. bf1;\
  1506. }
  1507. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_23(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1508. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1509. bf21, bf22, bf23)\
  1510. struct {\
  1511. bf23;\
  1512. bf22;\
  1513. bf21;\
  1514. bf20;\
  1515. bf19;\
  1516. bf18;\
  1517. bf17;\
  1518. bf16;\
  1519. bf15;\
  1520. bf14;\
  1521. bf13;\
  1522. bf12;\
  1523. bf11;\
  1524. bf10;\
  1525. bf9;\
  1526. bf8;\
  1527. bf7;\
  1528. bf6;\
  1529. bf5;\
  1530. bf4;\
  1531. bf3;\
  1532. bf2;\
  1533. bf1;\
  1534. }
  1535. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_24(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1536. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1537. bf21, bf22, bf23, bf24)\
  1538. struct {\
  1539. bf24;\
  1540. bf23;\
  1541. bf22;\
  1542. bf21;\
  1543. bf20;\
  1544. bf19;\
  1545. bf18;\
  1546. bf17;\
  1547. bf16;\
  1548. bf15;\
  1549. bf14;\
  1550. bf13;\
  1551. bf12;\
  1552. bf11;\
  1553. bf10;\
  1554. bf9;\
  1555. bf8;\
  1556. bf7;\
  1557. bf6;\
  1558. bf5;\
  1559. bf4;\
  1560. bf3;\
  1561. bf2;\
  1562. bf1;\
  1563. }
  1564. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_25(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1565. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1566. bf21, bf22, bf23, bf24, bf25)\
  1567. struct {\
  1568. bf25;\
  1569. bf24;\
  1570. bf23;\
  1571. bf22;\
  1572. bf21;\
  1573. bf20;\
  1574. bf19;\
  1575. bf18;\
  1576. bf17;\
  1577. bf16;\
  1578. bf15;\
  1579. bf14;\
  1580. bf13;\
  1581. bf12;\
  1582. bf11;\
  1583. bf10;\
  1584. bf9;\
  1585. bf8;\
  1586. bf7;\
  1587. bf6;\
  1588. bf5;\
  1589. bf4;\
  1590. bf3;\
  1591. bf2;\
  1592. bf1;\
  1593. }
  1594. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_26(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1595. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1596. bf21, bf22, bf23, bf24, bf25, bf26)\
  1597. struct {\
  1598. bf26;\
  1599. bf25;\
  1600. bf24;\
  1601. bf23;\
  1602. bf22;\
  1603. bf21;\
  1604. bf20;\
  1605. bf19;\
  1606. bf18;\
  1607. bf17;\
  1608. bf16;\
  1609. bf15;\
  1610. bf14;\
  1611. bf13;\
  1612. bf12;\
  1613. bf11;\
  1614. bf10;\
  1615. bf9;\
  1616. bf8;\
  1617. bf7;\
  1618. bf6;\
  1619. bf5;\
  1620. bf4;\
  1621. bf3;\
  1622. bf2;\
  1623. bf1;\
  1624. }
  1625. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_27(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1626. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1627. bf21, bf22, bf23, bf24, bf25, bf26, bf27)\
  1628. struct {\
  1629. bf27;\
  1630. bf26;\
  1631. bf25;\
  1632. bf24;\
  1633. bf23;\
  1634. bf22;\
  1635. bf21;\
  1636. bf20;\
  1637. bf19;\
  1638. bf18;\
  1639. bf17;\
  1640. bf16;\
  1641. bf15;\
  1642. bf14;\
  1643. bf13;\
  1644. bf12;\
  1645. bf11;\
  1646. bf10;\
  1647. bf9;\
  1648. bf8;\
  1649. bf7;\
  1650. bf6;\
  1651. bf5;\
  1652. bf4;\
  1653. bf3;\
  1654. bf2;\
  1655. bf1;\
  1656. }
  1657. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_28(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1658. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1659. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28)\
  1660. struct {\
  1661. bf28;\
  1662. bf27;\
  1663. bf26;\
  1664. bf25;\
  1665. bf24;\
  1666. bf23;\
  1667. bf22;\
  1668. bf21;\
  1669. bf20;\
  1670. bf19;\
  1671. bf18;\
  1672. bf17;\
  1673. bf16;\
  1674. bf15;\
  1675. bf14;\
  1676. bf13;\
  1677. bf12;\
  1678. bf11;\
  1679. bf10;\
  1680. bf9;\
  1681. bf8;\
  1682. bf7;\
  1683. bf6;\
  1684. bf5;\
  1685. bf4;\
  1686. bf3;\
  1687. bf2;\
  1688. bf1;\
  1689. }
  1690. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_29(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1691. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1692. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29)\
  1693. struct {\
  1694. bf29;\
  1695. bf28;\
  1696. bf27;\
  1697. bf26;\
  1698. bf25;\
  1699. bf24;\
  1700. bf23;\
  1701. bf22;\
  1702. bf21;\
  1703. bf20;\
  1704. bf19;\
  1705. bf18;\
  1706. bf17;\
  1707. bf16;\
  1708. bf15;\
  1709. bf14;\
  1710. bf13;\
  1711. bf12;\
  1712. bf11;\
  1713. bf10;\
  1714. bf9;\
  1715. bf8;\
  1716. bf7;\
  1717. bf6;\
  1718. bf5;\
  1719. bf4;\
  1720. bf3;\
  1721. bf2;\
  1722. bf1;\
  1723. }
  1724. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_30(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1725. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1726. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30)\
  1727. struct {\
  1728. bf30;\
  1729. bf29;\
  1730. bf28;\
  1731. bf27;\
  1732. bf26;\
  1733. bf25;\
  1734. bf24;\
  1735. bf23;\
  1736. bf22;\
  1737. bf21;\
  1738. bf20;\
  1739. bf19;\
  1740. bf18;\
  1741. bf17;\
  1742. bf16;\
  1743. bf15;\
  1744. bf14;\
  1745. bf13;\
  1746. bf12;\
  1747. bf11;\
  1748. bf10;\
  1749. bf9;\
  1750. bf8;\
  1751. bf7;\
  1752. bf6;\
  1753. bf5;\
  1754. bf4;\
  1755. bf3;\
  1756. bf2;\
  1757. bf1;\
  1758. }
  1759. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_31(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1760. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1761. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  1762. bf31)\
  1763. struct {\
  1764. bf31;\
  1765. bf30;\
  1766. bf29;\
  1767. bf28;\
  1768. bf27;\
  1769. bf26;\
  1770. bf25;\
  1771. bf24;\
  1772. bf23;\
  1773. bf22;\
  1774. bf21;\
  1775. bf20;\
  1776. bf19;\
  1777. bf18;\
  1778. bf17;\
  1779. bf16;\
  1780. bf15;\
  1781. bf14;\
  1782. bf13;\
  1783. bf12;\
  1784. bf11;\
  1785. bf10;\
  1786. bf9;\
  1787. bf8;\
  1788. bf7;\
  1789. bf6;\
  1790. bf5;\
  1791. bf4;\
  1792. bf3;\
  1793. bf2;\
  1794. bf1;\
  1795. }
  1796. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_32(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1797. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  1798. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  1799. bf31, bf32)\
  1800. struct {\
  1801. bf32;\
  1802. bf31;\
  1803. bf30;\
  1804. bf29;\
  1805. bf28;\
  1806. bf27;\
  1807. bf26;\
  1808. bf25;\
  1809. bf24;\
  1810. bf23;\
  1811. bf22;\
  1812. bf21;\
  1813. bf20;\
  1814. bf19;\
  1815. bf18;\
  1816. bf17;\
  1817. bf16;\
  1818. bf15;\
  1819. bf14;\
  1820. bf13;\
  1821. bf12;\
  1822. bf11;\
  1823. bf10;\
  1824. bf9;\
  1825. bf8;\
  1826. bf7;\
  1827. bf6;\
  1828. bf5;\
  1829. bf4;\
  1830. bf3;\
  1831. bf2;\
  1832. bf1;\
  1833. }
  1834. #else
  1835. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_2(bf1, bf2)\
  1836. struct {\
  1837. bf1;\
  1838. bf2;\
  1839. }
  1840. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_3(bf1, bf2, bf3)\
  1841. struct {\
  1842. bf1;\
  1843. bf2;\
  1844. bf3;\
  1845. }
  1846. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_4(bf1, bf2, bf3, bf4)\
  1847. struct {\
  1848. bf1;\
  1849. bf2;\
  1850. bf3;\
  1851. bf4;\
  1852. }
  1853. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_5(bf1, bf2, bf3, bf4, bf5)\
  1854. struct {\
  1855. bf1;\
  1856. bf2;\
  1857. bf3;\
  1858. bf4;\
  1859. bf5;\
  1860. }
  1861. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_6(bf1, bf2, bf3, bf4, bf5, bf6)\
  1862. struct {\
  1863. bf1;\
  1864. bf2;\
  1865. bf3;\
  1866. bf4;\
  1867. bf5;\
  1868. bf6;\
  1869. }
  1870. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_7(bf1, bf2, bf3, bf4, bf5, bf6, bf7)\
  1871. struct {\
  1872. bf1;\
  1873. bf2;\
  1874. bf3;\
  1875. bf4;\
  1876. bf5;\
  1877. bf6;\
  1878. bf7;\
  1879. }
  1880. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_8(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8)\
  1881. struct {\
  1882. bf1;\
  1883. bf2;\
  1884. bf3;\
  1885. bf4;\
  1886. bf5;\
  1887. bf6;\
  1888. bf7;\
  1889. bf8;\
  1890. }
  1891. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_9(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9)\
  1892. struct {\
  1893. bf1;\
  1894. bf2;\
  1895. bf3;\
  1896. bf4;\
  1897. bf5;\
  1898. bf6;\
  1899. bf7;\
  1900. bf8;\
  1901. bf9;\
  1902. }
  1903. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_10(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10)\
  1904. struct {\
  1905. bf1;\
  1906. bf2;\
  1907. bf3;\
  1908. bf4;\
  1909. bf5;\
  1910. bf6;\
  1911. bf7;\
  1912. bf8;\
  1913. bf9;\
  1914. bf10;\
  1915. }
  1916. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_11(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1917. bf11)\
  1918. struct {\
  1919. bf1;\
  1920. bf2;\
  1921. bf3;\
  1922. bf4;\
  1923. bf5;\
  1924. bf6;\
  1925. bf7;\
  1926. bf8;\
  1927. bf9;\
  1928. bf10;\
  1929. bf11;\
  1930. }
  1931. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_12(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1932. bf11, bf12)\
  1933. struct {\
  1934. bf1;\
  1935. bf2;\
  1936. bf3;\
  1937. bf4;\
  1938. bf5;\
  1939. bf6;\
  1940. bf7;\
  1941. bf8;\
  1942. bf9;\
  1943. bf10;\
  1944. bf11;\
  1945. bf12;\
  1946. }
  1947. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_13(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1948. bf11, bf12, bf13)\
  1949. struct {\
  1950. bf1;\
  1951. bf2;\
  1952. bf3;\
  1953. bf4;\
  1954. bf5;\
  1955. bf6;\
  1956. bf7;\
  1957. bf8;\
  1958. bf9;\
  1959. bf10;\
  1960. bf11;\
  1961. bf12;\
  1962. bf13;\
  1963. }
  1964. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_14(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1965. bf11, bf12, bf13, bf14)\
  1966. struct {\
  1967. bf1;\
  1968. bf2;\
  1969. bf3;\
  1970. bf4;\
  1971. bf5;\
  1972. bf6;\
  1973. bf7;\
  1974. bf8;\
  1975. bf9;\
  1976. bf10;\
  1977. bf11;\
  1978. bf12;\
  1979. bf13;\
  1980. bf14;\
  1981. }
  1982. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_15(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  1983. bf11, bf12, bf13, bf14, bf15)\
  1984. struct {\
  1985. bf1;\
  1986. bf2;\
  1987. bf3;\
  1988. bf4;\
  1989. bf5;\
  1990. bf6;\
  1991. bf7;\
  1992. bf8;\
  1993. bf9;\
  1994. bf10;\
  1995. bf11;\
  1996. bf12;\
  1997. bf13;\
  1998. bf14;\
  1999. bf15;\
  2000. }
  2001. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_16(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2002. bf11, bf12, bf13, bf14, bf15, bf16)\
  2003. struct {\
  2004. bf1;\
  2005. bf2;\
  2006. bf3;\
  2007. bf4;\
  2008. bf5;\
  2009. bf6;\
  2010. bf7;\
  2011. bf8;\
  2012. bf9;\
  2013. bf10;\
  2014. bf11;\
  2015. bf12;\
  2016. bf13;\
  2017. bf14;\
  2018. bf15;\
  2019. bf16;\
  2020. }
  2021. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_17(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2022. bf11, bf12, bf13, bf14, bf15, bf16, bf17)\
  2023. struct {\
  2024. bf1;\
  2025. bf2;\
  2026. bf3;\
  2027. bf4;\
  2028. bf5;\
  2029. bf6;\
  2030. bf7;\
  2031. bf8;\
  2032. bf9;\
  2033. bf10;\
  2034. bf11;\
  2035. bf12;\
  2036. bf13;\
  2037. bf14;\
  2038. bf15;\
  2039. bf16;\
  2040. bf17;\
  2041. }
  2042. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_18(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2043. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18)\
  2044. struct {\
  2045. bf1;\
  2046. bf2;\
  2047. bf3;\
  2048. bf4;\
  2049. bf5;\
  2050. bf6;\
  2051. bf7;\
  2052. bf8;\
  2053. bf9;\
  2054. bf10;\
  2055. bf11;\
  2056. bf12;\
  2057. bf13;\
  2058. bf14;\
  2059. bf15;\
  2060. bf16;\
  2061. bf17;\
  2062. bf18;\
  2063. }
  2064. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_19(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2065. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19)\
  2066. struct {\
  2067. bf1;\
  2068. bf2;\
  2069. bf3;\
  2070. bf4;\
  2071. bf5;\
  2072. bf6;\
  2073. bf7;\
  2074. bf8;\
  2075. bf9;\
  2076. bf10;\
  2077. bf11;\
  2078. bf12;\
  2079. bf13;\
  2080. bf14;\
  2081. bf15;\
  2082. bf16;\
  2083. bf17;\
  2084. bf18;\
  2085. bf19;\
  2086. }
  2087. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_20(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2088. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20)\
  2089. struct {\
  2090. bf1;\
  2091. bf2;\
  2092. bf3;\
  2093. bf4;\
  2094. bf5;\
  2095. bf6;\
  2096. bf7;\
  2097. bf8;\
  2098. bf9;\
  2099. bf10;\
  2100. bf11;\
  2101. bf12;\
  2102. bf13;\
  2103. bf14;\
  2104. bf15;\
  2105. bf16;\
  2106. bf17;\
  2107. bf18;\
  2108. bf19;\
  2109. bf20;\
  2110. }
  2111. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_21(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2112. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2113. bf21)\
  2114. struct {\
  2115. bf1;\
  2116. bf2;\
  2117. bf3;\
  2118. bf4;\
  2119. bf5;\
  2120. bf6;\
  2121. bf7;\
  2122. bf8;\
  2123. bf9;\
  2124. bf10;\
  2125. bf11;\
  2126. bf12;\
  2127. bf13;\
  2128. bf14;\
  2129. bf15;\
  2130. bf16;\
  2131. bf17;\
  2132. bf18;\
  2133. bf19;\
  2134. bf20;\
  2135. bf21;\
  2136. }
  2137. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_22(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2138. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2139. bf21, bf22)\
  2140. struct {\
  2141. bf1;\
  2142. bf2;\
  2143. bf3;\
  2144. bf4;\
  2145. bf5;\
  2146. bf6;\
  2147. bf7;\
  2148. bf8;\
  2149. bf9;\
  2150. bf10;\
  2151. bf11;\
  2152. bf12;\
  2153. bf13;\
  2154. bf14;\
  2155. bf15;\
  2156. bf16;\
  2157. bf17;\
  2158. bf18;\
  2159. bf19;\
  2160. bf20;\
  2161. bf21;\
  2162. bf22;\
  2163. }
  2164. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_23(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2165. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2166. bf21, bf22, bf23)\
  2167. struct {\
  2168. bf1;\
  2169. bf2;\
  2170. bf3;\
  2171. bf4;\
  2172. bf5;\
  2173. bf6;\
  2174. bf7;\
  2175. bf8;\
  2176. bf9;\
  2177. bf10;\
  2178. bf11;\
  2179. bf12;\
  2180. bf13;\
  2181. bf14;\
  2182. bf15;\
  2183. bf16;\
  2184. bf17;\
  2185. bf18;\
  2186. bf19;\
  2187. bf20;\
  2188. bf21;\
  2189. bf22;\
  2190. bf23;\
  2191. }
  2192. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_24(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2193. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2194. bf21, bf22, bf23, bf24)\
  2195. struct {\
  2196. bf1;\
  2197. bf2;\
  2198. bf3;\
  2199. bf4;\
  2200. bf5;\
  2201. bf6;\
  2202. bf7;\
  2203. bf8;\
  2204. bf9;\
  2205. bf10;\
  2206. bf11;\
  2207. bf12;\
  2208. bf13;\
  2209. bf14;\
  2210. bf15;\
  2211. bf16;\
  2212. bf17;\
  2213. bf18;\
  2214. bf19;\
  2215. bf20;\
  2216. bf21;\
  2217. bf22;\
  2218. bf23;\
  2219. bf24;\
  2220. }
  2221. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_25(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2222. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2223. bf21, bf22, bf23, bf24, bf25)\
  2224. struct {\
  2225. bf1;\
  2226. bf2;\
  2227. bf3;\
  2228. bf4;\
  2229. bf5;\
  2230. bf6;\
  2231. bf7;\
  2232. bf8;\
  2233. bf9;\
  2234. bf10;\
  2235. bf11;\
  2236. bf12;\
  2237. bf13;\
  2238. bf14;\
  2239. bf15;\
  2240. bf16;\
  2241. bf17;\
  2242. bf18;\
  2243. bf19;\
  2244. bf20;\
  2245. bf21;\
  2246. bf22;\
  2247. bf23;\
  2248. bf24;\
  2249. bf25;\
  2250. }
  2251. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_26(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2252. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2253. bf21, bf22, bf23, bf24, bf25, bf26)\
  2254. struct {\
  2255. bf1;\
  2256. bf2;\
  2257. bf3;\
  2258. bf4;\
  2259. bf5;\
  2260. bf6;\
  2261. bf7;\
  2262. bf8;\
  2263. bf9;\
  2264. bf10;\
  2265. bf11;\
  2266. bf12;\
  2267. bf13;\
  2268. bf14;\
  2269. bf15;\
  2270. bf16;\
  2271. bf17;\
  2272. bf18;\
  2273. bf19;\
  2274. bf20;\
  2275. bf21;\
  2276. bf22;\
  2277. bf23;\
  2278. bf24;\
  2279. bf25;\
  2280. bf26;\
  2281. }
  2282. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_27(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2283. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2284. bf21, bf22, bf23, bf24, bf25, bf26, bf27)\
  2285. struct {\
  2286. bf1;\
  2287. bf2;\
  2288. bf3;\
  2289. bf4;\
  2290. bf5;\
  2291. bf6;\
  2292. bf7;\
  2293. bf8;\
  2294. bf9;\
  2295. bf10;\
  2296. bf11;\
  2297. bf12;\
  2298. bf13;\
  2299. bf14;\
  2300. bf15;\
  2301. bf16;\
  2302. bf17;\
  2303. bf18;\
  2304. bf19;\
  2305. bf20;\
  2306. bf21;\
  2307. bf22;\
  2308. bf23;\
  2309. bf24;\
  2310. bf25;\
  2311. bf26;\
  2312. bf27;\
  2313. }
  2314. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_28(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2315. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2316. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28)\
  2317. struct {\
  2318. bf1;\
  2319. bf2;\
  2320. bf3;\
  2321. bf4;\
  2322. bf5;\
  2323. bf6;\
  2324. bf7;\
  2325. bf8;\
  2326. bf9;\
  2327. bf10;\
  2328. bf11;\
  2329. bf12;\
  2330. bf13;\
  2331. bf14;\
  2332. bf15;\
  2333. bf16;\
  2334. bf17;\
  2335. bf18;\
  2336. bf19;\
  2337. bf20;\
  2338. bf21;\
  2339. bf22;\
  2340. bf23;\
  2341. bf24;\
  2342. bf25;\
  2343. bf26;\
  2344. bf27;\
  2345. bf28;\
  2346. }
  2347. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_29(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2348. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2349. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29)\
  2350. struct {\
  2351. bf1;\
  2352. bf2;\
  2353. bf3;\
  2354. bf4;\
  2355. bf5;\
  2356. bf6;\
  2357. bf7;\
  2358. bf8;\
  2359. bf9;\
  2360. bf10;\
  2361. bf11;\
  2362. bf12;\
  2363. bf13;\
  2364. bf14;\
  2365. bf15;\
  2366. bf16;\
  2367. bf17;\
  2368. bf18;\
  2369. bf19;\
  2370. bf20;\
  2371. bf21;\
  2372. bf22;\
  2373. bf23;\
  2374. bf24;\
  2375. bf25;\
  2376. bf26;\
  2377. bf27;\
  2378. bf28;\
  2379. bf29;\
  2380. }
  2381. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_30(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2382. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2383. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30)\
  2384. struct {\
  2385. bf1;\
  2386. bf2;\
  2387. bf3;\
  2388. bf4;\
  2389. bf5;\
  2390. bf6;\
  2391. bf7;\
  2392. bf8;\
  2393. bf9;\
  2394. bf10;\
  2395. bf11;\
  2396. bf12;\
  2397. bf13;\
  2398. bf14;\
  2399. bf15;\
  2400. bf16;\
  2401. bf17;\
  2402. bf18;\
  2403. bf19;\
  2404. bf20;\
  2405. bf21;\
  2406. bf22;\
  2407. bf23;\
  2408. bf24;\
  2409. bf25;\
  2410. bf26;\
  2411. bf27;\
  2412. bf28;\
  2413. bf29;\
  2414. bf30;\
  2415. }
  2416. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_31(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2417. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2418. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  2419. bf31)\
  2420. struct {\
  2421. bf1;\
  2422. bf2;\
  2423. bf3;\
  2424. bf4;\
  2425. bf5;\
  2426. bf6;\
  2427. bf7;\
  2428. bf8;\
  2429. bf9;\
  2430. bf10;\
  2431. bf11;\
  2432. bf12;\
  2433. bf13;\
  2434. bf14;\
  2435. bf15;\
  2436. bf16;\
  2437. bf17;\
  2438. bf18;\
  2439. bf19;\
  2440. bf20;\
  2441. bf21;\
  2442. bf22;\
  2443. bf23;\
  2444. bf24;\
  2445. bf25;\
  2446. bf26;\
  2447. bf27;\
  2448. bf28;\
  2449. bf29;\
  2450. bf30;\
  2451. bf31;\
  2452. }
  2453. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_32(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2454. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2455. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  2456. bf31, bf32)\
  2457. struct {\
  2458. bf1;\
  2459. bf2;\
  2460. bf3;\
  2461. bf4;\
  2462. bf5;\
  2463. bf6;\
  2464. bf7;\
  2465. bf8;\
  2466. bf9;\
  2467. bf10;\
  2468. bf11;\
  2469. bf12;\
  2470. bf13;\
  2471. bf14;\
  2472. bf15;\
  2473. bf16;\
  2474. bf17;\
  2475. bf18;\
  2476. bf19;\
  2477. bf20;\
  2478. bf21;\
  2479. bf22;\
  2480. bf23;\
  2481. bf24;\
  2482. bf25;\
  2483. bf26;\
  2484. bf27;\
  2485. bf28;\
  2486. bf29;\
  2487. bf30;\
  2488. bf31;\
  2489. bf32;\
  2490. }
  2491. #endif
  2492. #elif defined(__ICCRX__)
  2493. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_2(bf1, bf2)\
  2494. struct {\
  2495. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2496. struct {\
  2497. bf1;\
  2498. bf2;\
  2499. };\
  2500. R_PRAGMA(bitfields=default)\
  2501. }
  2502. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_3(bf1, bf2, bf3)\
  2503. struct {\
  2504. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2505. struct {\
  2506. bf1;\
  2507. bf2;\
  2508. bf3;\
  2509. };\
  2510. R_PRAGMA(bitfields=default)\
  2511. }
  2512. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_4(bf1, bf2, bf3, bf4)\
  2513. struct {\
  2514. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2515. struct {\
  2516. bf1;\
  2517. bf2;\
  2518. bf3;\
  2519. bf4;\
  2520. };\
  2521. R_PRAGMA(bitfields=default)\
  2522. }
  2523. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_5(bf1, bf2, bf3, bf4, bf5)\
  2524. struct {\
  2525. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2526. struct {\
  2527. bf1;\
  2528. bf2;\
  2529. bf3;\
  2530. bf4;\
  2531. bf5;\
  2532. };\
  2533. R_PRAGMA(bitfields=default)\
  2534. }
  2535. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_6(bf1, bf2, bf3, bf4, bf5, bf6)\
  2536. struct {\
  2537. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2538. struct {\
  2539. bf1;\
  2540. bf2;\
  2541. bf3;\
  2542. bf4;\
  2543. bf5;\
  2544. bf6;\
  2545. };\
  2546. R_PRAGMA(bitfields=default)\
  2547. }
  2548. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_7(bf1, bf2, bf3, bf4, bf5, bf6, bf7)\
  2549. struct {\
  2550. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2551. struct {\
  2552. bf1;\
  2553. bf2;\
  2554. bf3;\
  2555. bf4;\
  2556. bf5;\
  2557. bf6;\
  2558. bf7;\
  2559. };\
  2560. R_PRAGMA(bitfields=default)\
  2561. }
  2562. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_8(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8)\
  2563. struct {\
  2564. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2565. struct {\
  2566. bf1;\
  2567. bf2;\
  2568. bf3;\
  2569. bf4;\
  2570. bf5;\
  2571. bf6;\
  2572. bf7;\
  2573. bf8;\
  2574. };\
  2575. R_PRAGMA(bitfields=default)\
  2576. }
  2577. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_9(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9)\
  2578. struct {\
  2579. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2580. struct {\
  2581. bf1;\
  2582. bf2;\
  2583. bf3;\
  2584. bf4;\
  2585. bf5;\
  2586. bf6;\
  2587. bf7;\
  2588. bf8;\
  2589. bf9;\
  2590. };\
  2591. R_PRAGMA(bitfields=default)\
  2592. }
  2593. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_10(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10)\
  2594. struct {\
  2595. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2596. struct {\
  2597. bf1;\
  2598. bf2;\
  2599. bf3;\
  2600. bf4;\
  2601. bf5;\
  2602. bf6;\
  2603. bf7;\
  2604. bf8;\
  2605. bf9;\
  2606. bf10;\
  2607. };\
  2608. R_PRAGMA(bitfields=default)\
  2609. }
  2610. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_11(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2611. bf11)\
  2612. struct {\
  2613. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2614. struct {\
  2615. bf1;\
  2616. bf2;\
  2617. bf3;\
  2618. bf4;\
  2619. bf5;\
  2620. bf6;\
  2621. bf7;\
  2622. bf8;\
  2623. bf9;\
  2624. bf10;\
  2625. bf11;\
  2626. };\
  2627. R_PRAGMA(bitfields=default)\
  2628. }
  2629. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_12(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2630. bf11, bf12)\
  2631. struct {\
  2632. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2633. struct {\
  2634. bf1;\
  2635. bf2;\
  2636. bf3;\
  2637. bf4;\
  2638. bf5;\
  2639. bf6;\
  2640. bf7;\
  2641. bf8;\
  2642. bf9;\
  2643. bf10;\
  2644. bf11;\
  2645. bf12;\
  2646. };\
  2647. R_PRAGMA(bitfields=default)\
  2648. }
  2649. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_13(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2650. bf11, bf12, bf13)\
  2651. struct {\
  2652. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2653. struct {\
  2654. bf1;\
  2655. bf2;\
  2656. bf3;\
  2657. bf4;\
  2658. bf5;\
  2659. bf6;\
  2660. bf7;\
  2661. bf8;\
  2662. bf9;\
  2663. bf10;\
  2664. bf11;\
  2665. bf12;\
  2666. bf13;\
  2667. };\
  2668. R_PRAGMA(bitfields=default)\
  2669. }
  2670. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_14(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2671. bf11, bf12, bf13, bf14)\
  2672. struct {\
  2673. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2674. struct {\
  2675. bf1;\
  2676. bf2;\
  2677. bf3;\
  2678. bf4;\
  2679. bf5;\
  2680. bf6;\
  2681. bf7;\
  2682. bf8;\
  2683. bf9;\
  2684. bf10;\
  2685. bf11;\
  2686. bf12;\
  2687. bf13;\
  2688. bf14;\
  2689. };\
  2690. R_PRAGMA(bitfields=default)\
  2691. }
  2692. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_15(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2693. bf11, bf12, bf13, bf14, bf15)\
  2694. struct {\
  2695. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2696. struct {\
  2697. bf1;\
  2698. bf2;\
  2699. bf3;\
  2700. bf4;\
  2701. bf5;\
  2702. bf6;\
  2703. bf7;\
  2704. bf8;\
  2705. bf9;\
  2706. bf10;\
  2707. bf11;\
  2708. bf12;\
  2709. bf13;\
  2710. bf14;\
  2711. bf15;\
  2712. };\
  2713. R_PRAGMA(bitfields=default)\
  2714. }
  2715. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_16(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2716. bf11, bf12, bf13, bf14, bf15, bf16)\
  2717. struct {\
  2718. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2719. struct {\
  2720. bf1;\
  2721. bf2;\
  2722. bf3;\
  2723. bf4;\
  2724. bf5;\
  2725. bf6;\
  2726. bf7;\
  2727. bf8;\
  2728. bf9;\
  2729. bf10;\
  2730. bf11;\
  2731. bf12;\
  2732. bf13;\
  2733. bf14;\
  2734. bf15;\
  2735. bf16;\
  2736. };\
  2737. R_PRAGMA(bitfields=default)\
  2738. }
  2739. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_17(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2740. bf11, bf12, bf13, bf14, bf15, bf16, bf17)\
  2741. struct {\
  2742. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2743. struct {\
  2744. bf1;\
  2745. bf2;\
  2746. bf3;\
  2747. bf4;\
  2748. bf5;\
  2749. bf6;\
  2750. bf7;\
  2751. bf8;\
  2752. bf9;\
  2753. bf10;\
  2754. bf11;\
  2755. bf12;\
  2756. bf13;\
  2757. bf14;\
  2758. bf15;\
  2759. bf16;\
  2760. bf17;\
  2761. };\
  2762. R_PRAGMA(bitfields=default)\
  2763. }
  2764. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_18(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2765. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18)\
  2766. struct {\
  2767. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2768. struct {\
  2769. bf1;\
  2770. bf2;\
  2771. bf3;\
  2772. bf4;\
  2773. bf5;\
  2774. bf6;\
  2775. bf7;\
  2776. bf8;\
  2777. bf9;\
  2778. bf10;\
  2779. bf11;\
  2780. bf12;\
  2781. bf13;\
  2782. bf14;\
  2783. bf15;\
  2784. bf16;\
  2785. bf17;\
  2786. bf18;\
  2787. };\
  2788. R_PRAGMA(bitfields=default)\
  2789. }
  2790. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_19(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2791. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19)\
  2792. struct {\
  2793. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2794. struct {\
  2795. bf1;\
  2796. bf2;\
  2797. bf3;\
  2798. bf4;\
  2799. bf5;\
  2800. bf6;\
  2801. bf7;\
  2802. bf8;\
  2803. bf9;\
  2804. bf10;\
  2805. bf11;\
  2806. bf12;\
  2807. bf13;\
  2808. bf14;\
  2809. bf15;\
  2810. bf16;\
  2811. bf17;\
  2812. bf18;\
  2813. bf19;\
  2814. };\
  2815. R_PRAGMA(bitfields=default)\
  2816. }
  2817. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_20(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2818. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20)\
  2819. struct {\
  2820. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2821. struct {\
  2822. bf1;\
  2823. bf2;\
  2824. bf3;\
  2825. bf4;\
  2826. bf5;\
  2827. bf6;\
  2828. bf7;\
  2829. bf8;\
  2830. bf9;\
  2831. bf10;\
  2832. bf11;\
  2833. bf12;\
  2834. bf13;\
  2835. bf14;\
  2836. bf15;\
  2837. bf16;\
  2838. bf17;\
  2839. bf18;\
  2840. bf19;\
  2841. bf20;\
  2842. };\
  2843. R_PRAGMA(bitfields=default)\
  2844. }
  2845. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_21(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2846. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2847. bf21)\
  2848. struct {\
  2849. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2850. struct {\
  2851. bf1;\
  2852. bf2;\
  2853. bf3;\
  2854. bf4;\
  2855. bf5;\
  2856. bf6;\
  2857. bf7;\
  2858. bf8;\
  2859. bf9;\
  2860. bf10;\
  2861. bf11;\
  2862. bf12;\
  2863. bf13;\
  2864. bf14;\
  2865. bf15;\
  2866. bf16;\
  2867. bf17;\
  2868. bf18;\
  2869. bf19;\
  2870. bf20;\
  2871. bf21;\
  2872. };\
  2873. R_PRAGMA(bitfields=default)\
  2874. }
  2875. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_22(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2876. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2877. bf21, bf22)\
  2878. struct {\
  2879. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2880. struct {\
  2881. bf1;\
  2882. bf2;\
  2883. bf3;\
  2884. bf4;\
  2885. bf5;\
  2886. bf6;\
  2887. bf7;\
  2888. bf8;\
  2889. bf9;\
  2890. bf10;\
  2891. bf11;\
  2892. bf12;\
  2893. bf13;\
  2894. bf14;\
  2895. bf15;\
  2896. bf16;\
  2897. bf17;\
  2898. bf18;\
  2899. bf19;\
  2900. bf20;\
  2901. bf21;\
  2902. bf22;\
  2903. };\
  2904. R_PRAGMA(bitfields=default)\
  2905. }
  2906. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_23(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2907. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2908. bf21, bf22, bf23)\
  2909. struct {\
  2910. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2911. struct {\
  2912. bf1;\
  2913. bf2;\
  2914. bf3;\
  2915. bf4;\
  2916. bf5;\
  2917. bf6;\
  2918. bf7;\
  2919. bf8;\
  2920. bf9;\
  2921. bf10;\
  2922. bf11;\
  2923. bf12;\
  2924. bf13;\
  2925. bf14;\
  2926. bf15;\
  2927. bf16;\
  2928. bf17;\
  2929. bf18;\
  2930. bf19;\
  2931. bf20;\
  2932. bf21;\
  2933. bf22;\
  2934. bf23;\
  2935. };\
  2936. R_PRAGMA(bitfields=default)\
  2937. }
  2938. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_24(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2939. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2940. bf21, bf22, bf23, bf24)\
  2941. struct {\
  2942. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2943. struct {\
  2944. bf1;\
  2945. bf2;\
  2946. bf3;\
  2947. bf4;\
  2948. bf5;\
  2949. bf6;\
  2950. bf7;\
  2951. bf8;\
  2952. bf9;\
  2953. bf10;\
  2954. bf11;\
  2955. bf12;\
  2956. bf13;\
  2957. bf14;\
  2958. bf15;\
  2959. bf16;\
  2960. bf17;\
  2961. bf18;\
  2962. bf19;\
  2963. bf20;\
  2964. bf21;\
  2965. bf22;\
  2966. bf23;\
  2967. bf24;\
  2968. };\
  2969. R_PRAGMA(bitfields=default)\
  2970. }
  2971. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_25(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  2972. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  2973. bf21, bf22, bf23, bf24, bf25)\
  2974. struct {\
  2975. R_PRAGMA(bitfields=reversed_disjoint_types)\
  2976. struct {\
  2977. bf1;\
  2978. bf2;\
  2979. bf3;\
  2980. bf4;\
  2981. bf5;\
  2982. bf6;\
  2983. bf7;\
  2984. bf8;\
  2985. bf9;\
  2986. bf10;\
  2987. bf11;\
  2988. bf12;\
  2989. bf13;\
  2990. bf14;\
  2991. bf15;\
  2992. bf16;\
  2993. bf17;\
  2994. bf18;\
  2995. bf19;\
  2996. bf20;\
  2997. bf21;\
  2998. bf22;\
  2999. bf23;\
  3000. bf24;\
  3001. bf25;\
  3002. };\
  3003. R_PRAGMA(bitfields=default)\
  3004. }
  3005. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_26(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3006. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3007. bf21, bf22, bf23, bf24, bf25, bf26)\
  3008. struct {\
  3009. R_PRAGMA(bitfields=reversed_disjoint_types)\
  3010. struct {\
  3011. bf1;\
  3012. bf2;\
  3013. bf3;\
  3014. bf4;\
  3015. bf5;\
  3016. bf6;\
  3017. bf7;\
  3018. bf8;\
  3019. bf9;\
  3020. bf10;\
  3021. bf11;\
  3022. bf12;\
  3023. bf13;\
  3024. bf14;\
  3025. bf15;\
  3026. bf16;\
  3027. bf17;\
  3028. bf18;\
  3029. bf19;\
  3030. bf20;\
  3031. bf21;\
  3032. bf22;\
  3033. bf23;\
  3034. bf24;\
  3035. bf25;\
  3036. bf26;\
  3037. };\
  3038. R_PRAGMA(bitfields=default)\
  3039. }
  3040. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_27(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3041. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3042. bf21, bf22, bf23, bf24, bf25, bf26, bf27)\
  3043. struct {\
  3044. R_PRAGMA(bitfields=reversed_disjoint_types)\
  3045. struct {\
  3046. bf1;\
  3047. bf2;\
  3048. bf3;\
  3049. bf4;\
  3050. bf5;\
  3051. bf6;\
  3052. bf7;\
  3053. bf8;\
  3054. bf9;\
  3055. bf10;\
  3056. bf11;\
  3057. bf12;\
  3058. bf13;\
  3059. bf14;\
  3060. bf15;\
  3061. bf16;\
  3062. bf17;\
  3063. bf18;\
  3064. bf19;\
  3065. bf20;\
  3066. bf21;\
  3067. bf22;\
  3068. bf23;\
  3069. bf24;\
  3070. bf25;\
  3071. bf26;\
  3072. bf27;\
  3073. };\
  3074. R_PRAGMA(bitfields=default)\
  3075. }
  3076. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_28(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3077. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3078. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28)\
  3079. struct {\
  3080. R_PRAGMA(bitfields=reversed_disjoint_types)\
  3081. struct {\
  3082. bf1;\
  3083. bf2;\
  3084. bf3;\
  3085. bf4;\
  3086. bf5;\
  3087. bf6;\
  3088. bf7;\
  3089. bf8;\
  3090. bf9;\
  3091. bf10;\
  3092. bf11;\
  3093. bf12;\
  3094. bf13;\
  3095. bf14;\
  3096. bf15;\
  3097. bf16;\
  3098. bf17;\
  3099. bf18;\
  3100. bf19;\
  3101. bf20;\
  3102. bf21;\
  3103. bf22;\
  3104. bf23;\
  3105. bf24;\
  3106. bf25;\
  3107. bf26;\
  3108. bf27;\
  3109. bf28;\
  3110. };\
  3111. R_PRAGMA(bitfields=default)\
  3112. }
  3113. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_29(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3114. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3115. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29)\
  3116. struct {\
  3117. R_PRAGMA(bitfields=reversed_disjoint_types)\
  3118. struct {\
  3119. bf1;\
  3120. bf2;\
  3121. bf3;\
  3122. bf4;\
  3123. bf5;\
  3124. bf6;\
  3125. bf7;\
  3126. bf8;\
  3127. bf9;\
  3128. bf10;\
  3129. bf11;\
  3130. bf12;\
  3131. bf13;\
  3132. bf14;\
  3133. bf15;\
  3134. bf16;\
  3135. bf17;\
  3136. bf18;\
  3137. bf19;\
  3138. bf20;\
  3139. bf21;\
  3140. bf22;\
  3141. bf23;\
  3142. bf24;\
  3143. bf25;\
  3144. bf26;\
  3145. bf27;\
  3146. bf28;\
  3147. bf29;\
  3148. };\
  3149. R_PRAGMA(bitfields=default)\
  3150. }
  3151. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_30(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3152. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3153. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30)\
  3154. struct {\
  3155. R_PRAGMA(bitfields=reversed_disjoint_types)\
  3156. struct {\
  3157. bf1;\
  3158. bf2;\
  3159. bf3;\
  3160. bf4;\
  3161. bf5;\
  3162. bf6;\
  3163. bf7;\
  3164. bf8;\
  3165. bf9;\
  3166. bf10;\
  3167. bf11;\
  3168. bf12;\
  3169. bf13;\
  3170. bf14;\
  3171. bf15;\
  3172. bf16;\
  3173. bf17;\
  3174. bf18;\
  3175. bf19;\
  3176. bf20;\
  3177. bf21;\
  3178. bf22;\
  3179. bf23;\
  3180. bf24;\
  3181. bf25;\
  3182. bf26;\
  3183. bf27;\
  3184. bf28;\
  3185. bf29;\
  3186. bf30;\
  3187. };\
  3188. R_PRAGMA(bitfields=default)\
  3189. }
  3190. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_31(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3191. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3192. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  3193. bf31)\
  3194. struct {\
  3195. R_PRAGMA(bitfields=reversed_disjoint_types)\
  3196. struct {\
  3197. bf1;\
  3198. bf2;\
  3199. bf3;\
  3200. bf4;\
  3201. bf5;\
  3202. bf6;\
  3203. bf7;\
  3204. bf8;\
  3205. bf9;\
  3206. bf10;\
  3207. bf11;\
  3208. bf12;\
  3209. bf13;\
  3210. bf14;\
  3211. bf15;\
  3212. bf16;\
  3213. bf17;\
  3214. bf18;\
  3215. bf19;\
  3216. bf20;\
  3217. bf21;\
  3218. bf22;\
  3219. bf23;\
  3220. bf24;\
  3221. bf25;\
  3222. bf26;\
  3223. bf27;\
  3224. bf28;\
  3225. bf29;\
  3226. bf30;\
  3227. bf31;\
  3228. };\
  3229. R_PRAGMA(bitfields=default)\
  3230. }
  3231. #define R_ATTRIB_BITFIELD_BIT_ORDER_LEFT_32(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3232. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3233. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  3234. bf31, bf32)\
  3235. struct {\
  3236. R_PRAGMA(bitfields=reversed_disjoint_types)\
  3237. struct {\
  3238. bf1;\
  3239. bf2;\
  3240. bf3;\
  3241. bf4;\
  3242. bf5;\
  3243. bf6;\
  3244. bf7;\
  3245. bf8;\
  3246. bf9;\
  3247. bf10;\
  3248. bf11;\
  3249. bf12;\
  3250. bf13;\
  3251. bf14;\
  3252. bf15;\
  3253. bf16;\
  3254. bf17;\
  3255. bf18;\
  3256. bf19;\
  3257. bf20;\
  3258. bf21;\
  3259. bf22;\
  3260. bf23;\
  3261. bf24;\
  3262. bf25;\
  3263. bf26;\
  3264. bf27;\
  3265. bf28;\
  3266. bf29;\
  3267. bf30;\
  3268. bf31;\
  3269. bf32;\
  3270. };\
  3271. R_PRAGMA(bitfields=default)\
  3272. }
  3273. #endif
  3274. #if defined(__CCRX__)
  3275. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_2(bf1, bf2)\
  3276. struct {\
  3277. R_PRAGMA(bit_order right)\
  3278. struct {\
  3279. bf1;\
  3280. bf2;\
  3281. };\
  3282. R_PRAGMA(bit_order)\
  3283. }
  3284. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_3(bf1, bf2, bf3)\
  3285. struct {\
  3286. R_PRAGMA(bit_order right)\
  3287. struct {\
  3288. bf1;\
  3289. bf2;\
  3290. bf3;\
  3291. };\
  3292. R_PRAGMA(bit_order)\
  3293. }
  3294. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_4(bf1, bf2, bf3, bf4)\
  3295. struct {\
  3296. R_PRAGMA(bit_order right)\
  3297. struct {\
  3298. bf1;\
  3299. bf2;\
  3300. bf3;\
  3301. bf4;\
  3302. };\
  3303. R_PRAGMA(bit_order)\
  3304. }
  3305. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_5(bf1, bf2, bf3, bf4, bf5)\
  3306. struct {\
  3307. R_PRAGMA(bit_order right)\
  3308. struct {\
  3309. bf1;\
  3310. bf2;\
  3311. bf3;\
  3312. bf4;\
  3313. bf5;\
  3314. };\
  3315. R_PRAGMA(bit_order)\
  3316. }
  3317. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_6(bf1, bf2, bf3, bf4, bf5, bf6)\
  3318. struct {\
  3319. R_PRAGMA(bit_order right)\
  3320. struct {\
  3321. bf1;\
  3322. bf2;\
  3323. bf3;\
  3324. bf4;\
  3325. bf5;\
  3326. bf6;\
  3327. };\
  3328. R_PRAGMA(bit_order)\
  3329. }
  3330. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_7(bf1, bf2, bf3, bf4, bf5, bf6, bf7)\
  3331. struct {\
  3332. R_PRAGMA(bit_order right)\
  3333. struct {\
  3334. bf1;\
  3335. bf2;\
  3336. bf3;\
  3337. bf4;\
  3338. bf5;\
  3339. bf6;\
  3340. bf7;\
  3341. };\
  3342. R_PRAGMA(bit_order)\
  3343. }
  3344. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_8(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8)\
  3345. struct {\
  3346. R_PRAGMA(bit_order right)\
  3347. struct {\
  3348. bf1;\
  3349. bf2;\
  3350. bf3;\
  3351. bf4;\
  3352. bf5;\
  3353. bf6;\
  3354. bf7;\
  3355. bf8;\
  3356. };\
  3357. R_PRAGMA(bit_order)\
  3358. }
  3359. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_9(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9)\
  3360. struct {\
  3361. R_PRAGMA(bit_order right)\
  3362. struct {\
  3363. bf1;\
  3364. bf2;\
  3365. bf3;\
  3366. bf4;\
  3367. bf5;\
  3368. bf6;\
  3369. bf7;\
  3370. bf8;\
  3371. bf9;\
  3372. };\
  3373. R_PRAGMA(bit_order)\
  3374. }
  3375. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_10(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10)\
  3376. struct {\
  3377. R_PRAGMA(bit_order right)\
  3378. struct {\
  3379. bf1;\
  3380. bf2;\
  3381. bf3;\
  3382. bf4;\
  3383. bf5;\
  3384. bf6;\
  3385. bf7;\
  3386. bf8;\
  3387. bf9;\
  3388. bf10;\
  3389. };\
  3390. R_PRAGMA(bit_order)\
  3391. }
  3392. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_11(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3393. bf11)\
  3394. struct {\
  3395. R_PRAGMA(bit_order right)\
  3396. struct {\
  3397. bf1;\
  3398. bf2;\
  3399. bf3;\
  3400. bf4;\
  3401. bf5;\
  3402. bf6;\
  3403. bf7;\
  3404. bf8;\
  3405. bf9;\
  3406. bf10;\
  3407. bf11;\
  3408. };\
  3409. R_PRAGMA(bit_order)\
  3410. }
  3411. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_12(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3412. bf11, bf12)\
  3413. struct {\
  3414. R_PRAGMA(bit_order right)\
  3415. struct {\
  3416. bf1;\
  3417. bf2;\
  3418. bf3;\
  3419. bf4;\
  3420. bf5;\
  3421. bf6;\
  3422. bf7;\
  3423. bf8;\
  3424. bf9;\
  3425. bf10;\
  3426. bf11;\
  3427. bf12;\
  3428. };\
  3429. R_PRAGMA(bit_order)\
  3430. }
  3431. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_13(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3432. bf11, bf12, bf13)\
  3433. struct {\
  3434. R_PRAGMA(bit_order right)\
  3435. struct {\
  3436. bf1;\
  3437. bf2;\
  3438. bf3;\
  3439. bf4;\
  3440. bf5;\
  3441. bf6;\
  3442. bf7;\
  3443. bf8;\
  3444. bf9;\
  3445. bf10;\
  3446. bf11;\
  3447. bf12;\
  3448. bf13;\
  3449. };\
  3450. R_PRAGMA(bit_order)\
  3451. }
  3452. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_14(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3453. bf11, bf12, bf13, bf14)\
  3454. struct {\
  3455. R_PRAGMA(bit_order right)\
  3456. struct {\
  3457. bf1;\
  3458. bf2;\
  3459. bf3;\
  3460. bf4;\
  3461. bf5;\
  3462. bf6;\
  3463. bf7;\
  3464. bf8;\
  3465. bf9;\
  3466. bf10;\
  3467. bf11;\
  3468. bf12;\
  3469. bf13;\
  3470. bf14;\
  3471. };\
  3472. R_PRAGMA(bit_order)\
  3473. }
  3474. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_15(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3475. bf11, bf12, bf13, bf14, bf15)\
  3476. struct {\
  3477. R_PRAGMA(bit_order right)\
  3478. struct {\
  3479. bf1;\
  3480. bf2;\
  3481. bf3;\
  3482. bf4;\
  3483. bf5;\
  3484. bf6;\
  3485. bf7;\
  3486. bf8;\
  3487. bf9;\
  3488. bf10;\
  3489. bf11;\
  3490. bf12;\
  3491. bf13;\
  3492. bf14;\
  3493. bf15;\
  3494. };\
  3495. R_PRAGMA(bit_order)\
  3496. }
  3497. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_16(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3498. bf11, bf12, bf13, bf14, bf15, bf16)\
  3499. struct {\
  3500. R_PRAGMA(bit_order right)\
  3501. struct {\
  3502. bf1;\
  3503. bf2;\
  3504. bf3;\
  3505. bf4;\
  3506. bf5;\
  3507. bf6;\
  3508. bf7;\
  3509. bf8;\
  3510. bf9;\
  3511. bf10;\
  3512. bf11;\
  3513. bf12;\
  3514. bf13;\
  3515. bf14;\
  3516. bf15;\
  3517. bf16;\
  3518. };\
  3519. R_PRAGMA(bit_order)\
  3520. }
  3521. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_17(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3522. bf11, bf12, bf13, bf14, bf15, bf16, bf17)\
  3523. struct {\
  3524. R_PRAGMA(bit_order right)\
  3525. struct {\
  3526. bf1;\
  3527. bf2;\
  3528. bf3;\
  3529. bf4;\
  3530. bf5;\
  3531. bf6;\
  3532. bf7;\
  3533. bf8;\
  3534. bf9;\
  3535. bf10;\
  3536. bf11;\
  3537. bf12;\
  3538. bf13;\
  3539. bf14;\
  3540. bf15;\
  3541. bf16;\
  3542. bf17;\
  3543. };\
  3544. R_PRAGMA(bit_order)\
  3545. }
  3546. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_18(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3547. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18)\
  3548. struct {\
  3549. R_PRAGMA(bit_order right)\
  3550. struct {\
  3551. bf1;\
  3552. bf2;\
  3553. bf3;\
  3554. bf4;\
  3555. bf5;\
  3556. bf6;\
  3557. bf7;\
  3558. bf8;\
  3559. bf9;\
  3560. bf10;\
  3561. bf11;\
  3562. bf12;\
  3563. bf13;\
  3564. bf14;\
  3565. bf15;\
  3566. bf16;\
  3567. bf17;\
  3568. bf18;\
  3569. };\
  3570. R_PRAGMA(bit_order)\
  3571. }
  3572. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_19(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3573. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19)\
  3574. struct {\
  3575. R_PRAGMA(bit_order right)\
  3576. struct {\
  3577. bf1;\
  3578. bf2;\
  3579. bf3;\
  3580. bf4;\
  3581. bf5;\
  3582. bf6;\
  3583. bf7;\
  3584. bf8;\
  3585. bf9;\
  3586. bf10;\
  3587. bf11;\
  3588. bf12;\
  3589. bf13;\
  3590. bf14;\
  3591. bf15;\
  3592. bf16;\
  3593. bf17;\
  3594. bf18;\
  3595. bf19;\
  3596. };\
  3597. R_PRAGMA(bit_order)\
  3598. }
  3599. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_20(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3600. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20)\
  3601. struct {\
  3602. R_PRAGMA(bit_order right)\
  3603. struct {\
  3604. bf1;\
  3605. bf2;\
  3606. bf3;\
  3607. bf4;\
  3608. bf5;\
  3609. bf6;\
  3610. bf7;\
  3611. bf8;\
  3612. bf9;\
  3613. bf10;\
  3614. bf11;\
  3615. bf12;\
  3616. bf13;\
  3617. bf14;\
  3618. bf15;\
  3619. bf16;\
  3620. bf17;\
  3621. bf18;\
  3622. bf19;\
  3623. bf20;\
  3624. };\
  3625. R_PRAGMA(bit_order)\
  3626. }
  3627. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_21(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3628. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3629. bf21)\
  3630. struct {\
  3631. R_PRAGMA(bit_order right)\
  3632. struct {\
  3633. bf1;\
  3634. bf2;\
  3635. bf3;\
  3636. bf4;\
  3637. bf5;\
  3638. bf6;\
  3639. bf7;\
  3640. bf8;\
  3641. bf9;\
  3642. bf10;\
  3643. bf11;\
  3644. bf12;\
  3645. bf13;\
  3646. bf14;\
  3647. bf15;\
  3648. bf16;\
  3649. bf17;\
  3650. bf18;\
  3651. bf19;\
  3652. bf20;\
  3653. bf21;\
  3654. };\
  3655. R_PRAGMA(bit_order)\
  3656. }
  3657. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_22(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3658. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3659. bf21, bf22)\
  3660. struct {\
  3661. R_PRAGMA(bit_order right)\
  3662. struct {\
  3663. bf1;\
  3664. bf2;\
  3665. bf3;\
  3666. bf4;\
  3667. bf5;\
  3668. bf6;\
  3669. bf7;\
  3670. bf8;\
  3671. bf9;\
  3672. bf10;\
  3673. bf11;\
  3674. bf12;\
  3675. bf13;\
  3676. bf14;\
  3677. bf15;\
  3678. bf16;\
  3679. bf17;\
  3680. bf18;\
  3681. bf19;\
  3682. bf20;\
  3683. bf21;\
  3684. bf22;\
  3685. };\
  3686. R_PRAGMA(bit_order)\
  3687. }
  3688. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_23(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3689. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3690. bf21, bf22, bf23)\
  3691. struct {\
  3692. R_PRAGMA(bit_order right)\
  3693. struct {\
  3694. bf1;\
  3695. bf2;\
  3696. bf3;\
  3697. bf4;\
  3698. bf5;\
  3699. bf6;\
  3700. bf7;\
  3701. bf8;\
  3702. bf9;\
  3703. bf10;\
  3704. bf11;\
  3705. bf12;\
  3706. bf13;\
  3707. bf14;\
  3708. bf15;\
  3709. bf16;\
  3710. bf17;\
  3711. bf18;\
  3712. bf19;\
  3713. bf20;\
  3714. bf21;\
  3715. bf22;\
  3716. bf23;\
  3717. };\
  3718. R_PRAGMA(bit_order)\
  3719. }
  3720. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_24(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3721. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3722. bf21, bf22, bf23, bf24)\
  3723. struct {\
  3724. R_PRAGMA(bit_order right)\
  3725. struct {\
  3726. bf1;\
  3727. bf2;\
  3728. bf3;\
  3729. bf4;\
  3730. bf5;\
  3731. bf6;\
  3732. bf7;\
  3733. bf8;\
  3734. bf9;\
  3735. bf10;\
  3736. bf11;\
  3737. bf12;\
  3738. bf13;\
  3739. bf14;\
  3740. bf15;\
  3741. bf16;\
  3742. bf17;\
  3743. bf18;\
  3744. bf19;\
  3745. bf20;\
  3746. bf21;\
  3747. bf22;\
  3748. bf23;\
  3749. bf24;\
  3750. };\
  3751. R_PRAGMA(bit_order)\
  3752. }
  3753. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_25(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3754. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3755. bf21, bf22, bf23, bf24, bf25)\
  3756. struct {\
  3757. R_PRAGMA(bit_order right)\
  3758. struct {\
  3759. bf1;\
  3760. bf2;\
  3761. bf3;\
  3762. bf4;\
  3763. bf5;\
  3764. bf6;\
  3765. bf7;\
  3766. bf8;\
  3767. bf9;\
  3768. bf10;\
  3769. bf11;\
  3770. bf12;\
  3771. bf13;\
  3772. bf14;\
  3773. bf15;\
  3774. bf16;\
  3775. bf17;\
  3776. bf18;\
  3777. bf19;\
  3778. bf20;\
  3779. bf21;\
  3780. bf22;\
  3781. bf23;\
  3782. bf24;\
  3783. bf25;\
  3784. };\
  3785. R_PRAGMA(bit_order)\
  3786. }
  3787. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_26(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3788. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3789. bf21, bf22, bf23, bf24, bf25, bf26)\
  3790. struct {\
  3791. R_PRAGMA(bit_order right)\
  3792. struct {\
  3793. bf1;\
  3794. bf2;\
  3795. bf3;\
  3796. bf4;\
  3797. bf5;\
  3798. bf6;\
  3799. bf7;\
  3800. bf8;\
  3801. bf9;\
  3802. bf10;\
  3803. bf11;\
  3804. bf12;\
  3805. bf13;\
  3806. bf14;\
  3807. bf15;\
  3808. bf16;\
  3809. bf17;\
  3810. bf18;\
  3811. bf19;\
  3812. bf20;\
  3813. bf21;\
  3814. bf22;\
  3815. bf23;\
  3816. bf24;\
  3817. bf25;\
  3818. bf26;\
  3819. };\
  3820. R_PRAGMA(bit_order)\
  3821. }
  3822. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_27(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3823. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3824. bf21, bf22, bf23, bf24, bf25, bf26, bf27)\
  3825. struct {\
  3826. R_PRAGMA(bit_order right)\
  3827. struct {\
  3828. bf1;\
  3829. bf2;\
  3830. bf3;\
  3831. bf4;\
  3832. bf5;\
  3833. bf6;\
  3834. bf7;\
  3835. bf8;\
  3836. bf9;\
  3837. bf10;\
  3838. bf11;\
  3839. bf12;\
  3840. bf13;\
  3841. bf14;\
  3842. bf15;\
  3843. bf16;\
  3844. bf17;\
  3845. bf18;\
  3846. bf19;\
  3847. bf20;\
  3848. bf21;\
  3849. bf22;\
  3850. bf23;\
  3851. bf24;\
  3852. bf25;\
  3853. bf26;\
  3854. bf27;\
  3855. };\
  3856. R_PRAGMA(bit_order)\
  3857. }
  3858. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_28(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3859. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3860. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28)\
  3861. struct {\
  3862. R_PRAGMA(bit_order right)\
  3863. struct {\
  3864. bf1;\
  3865. bf2;\
  3866. bf3;\
  3867. bf4;\
  3868. bf5;\
  3869. bf6;\
  3870. bf7;\
  3871. bf8;\
  3872. bf9;\
  3873. bf10;\
  3874. bf11;\
  3875. bf12;\
  3876. bf13;\
  3877. bf14;\
  3878. bf15;\
  3879. bf16;\
  3880. bf17;\
  3881. bf18;\
  3882. bf19;\
  3883. bf20;\
  3884. bf21;\
  3885. bf22;\
  3886. bf23;\
  3887. bf24;\
  3888. bf25;\
  3889. bf26;\
  3890. bf27;\
  3891. bf28;\
  3892. };\
  3893. R_PRAGMA(bit_order)\
  3894. }
  3895. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_29(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3896. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3897. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29)\
  3898. struct {\
  3899. R_PRAGMA(bit_order right)\
  3900. struct {\
  3901. bf1;\
  3902. bf2;\
  3903. bf3;\
  3904. bf4;\
  3905. bf5;\
  3906. bf6;\
  3907. bf7;\
  3908. bf8;\
  3909. bf9;\
  3910. bf10;\
  3911. bf11;\
  3912. bf12;\
  3913. bf13;\
  3914. bf14;\
  3915. bf15;\
  3916. bf16;\
  3917. bf17;\
  3918. bf18;\
  3919. bf19;\
  3920. bf20;\
  3921. bf21;\
  3922. bf22;\
  3923. bf23;\
  3924. bf24;\
  3925. bf25;\
  3926. bf26;\
  3927. bf27;\
  3928. bf28;\
  3929. bf29;\
  3930. };\
  3931. R_PRAGMA(bit_order)\
  3932. }
  3933. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_30(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3934. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3935. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30)\
  3936. struct {\
  3937. R_PRAGMA(bit_order right)\
  3938. struct {\
  3939. bf1;\
  3940. bf2;\
  3941. bf3;\
  3942. bf4;\
  3943. bf5;\
  3944. bf6;\
  3945. bf7;\
  3946. bf8;\
  3947. bf9;\
  3948. bf10;\
  3949. bf11;\
  3950. bf12;\
  3951. bf13;\
  3952. bf14;\
  3953. bf15;\
  3954. bf16;\
  3955. bf17;\
  3956. bf18;\
  3957. bf19;\
  3958. bf20;\
  3959. bf21;\
  3960. bf22;\
  3961. bf23;\
  3962. bf24;\
  3963. bf25;\
  3964. bf26;\
  3965. bf27;\
  3966. bf28;\
  3967. bf29;\
  3968. bf30;\
  3969. };\
  3970. R_PRAGMA(bit_order)\
  3971. }
  3972. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_31(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  3973. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  3974. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  3975. bf31)\
  3976. struct {\
  3977. R_PRAGMA(bit_order right)\
  3978. struct {\
  3979. bf1;\
  3980. bf2;\
  3981. bf3;\
  3982. bf4;\
  3983. bf5;\
  3984. bf6;\
  3985. bf7;\
  3986. bf8;\
  3987. bf9;\
  3988. bf10;\
  3989. bf11;\
  3990. bf12;\
  3991. bf13;\
  3992. bf14;\
  3993. bf15;\
  3994. bf16;\
  3995. bf17;\
  3996. bf18;\
  3997. bf19;\
  3998. bf20;\
  3999. bf21;\
  4000. bf22;\
  4001. bf23;\
  4002. bf24;\
  4003. bf25;\
  4004. bf26;\
  4005. bf27;\
  4006. bf28;\
  4007. bf29;\
  4008. bf30;\
  4009. bf31;\
  4010. };\
  4011. R_PRAGMA(bit_order)\
  4012. }
  4013. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_32(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4014. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4015. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  4016. bf31, bf32)\
  4017. struct {\
  4018. R_PRAGMA(bit_order right)\
  4019. struct {\
  4020. bf1;\
  4021. bf2;\
  4022. bf3;\
  4023. bf4;\
  4024. bf5;\
  4025. bf6;\
  4026. bf7;\
  4027. bf8;\
  4028. bf9;\
  4029. bf10;\
  4030. bf11;\
  4031. bf12;\
  4032. bf13;\
  4033. bf14;\
  4034. bf15;\
  4035. bf16;\
  4036. bf17;\
  4037. bf18;\
  4038. bf19;\
  4039. bf20;\
  4040. bf21;\
  4041. bf22;\
  4042. bf23;\
  4043. bf24;\
  4044. bf25;\
  4045. bf26;\
  4046. bf27;\
  4047. bf28;\
  4048. bf29;\
  4049. bf30;\
  4050. bf31;\
  4051. bf32;\
  4052. };\
  4053. R_PRAGMA(bit_order)\
  4054. }
  4055. #elif defined(__GNUC__)
  4056. #if defined(__RX_LITTLE_ENDIAN__)
  4057. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_2(bf1, bf2)\
  4058. struct {\
  4059. bf1;\
  4060. bf2;\
  4061. }
  4062. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_3(bf1, bf2, bf3)\
  4063. struct {\
  4064. bf1;\
  4065. bf2;\
  4066. bf3;\
  4067. }
  4068. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_4(bf1, bf2, bf3, bf4)\
  4069. struct {\
  4070. bf1;\
  4071. bf2;\
  4072. bf3;\
  4073. bf4;\
  4074. }
  4075. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_5(bf1, bf2, bf3, bf4, bf5)\
  4076. struct {\
  4077. bf1;\
  4078. bf2;\
  4079. bf3;\
  4080. bf4;\
  4081. bf5;\
  4082. }
  4083. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_6(bf1, bf2, bf3, bf4, bf5, bf6)\
  4084. struct {\
  4085. bf1;\
  4086. bf2;\
  4087. bf3;\
  4088. bf4;\
  4089. bf5;\
  4090. bf6;\
  4091. }
  4092. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_7(bf1, bf2, bf3, bf4, bf5, bf6, bf7)\
  4093. struct {\
  4094. bf1;\
  4095. bf2;\
  4096. bf3;\
  4097. bf4;\
  4098. bf5;\
  4099. bf6;\
  4100. bf7;\
  4101. }
  4102. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_8(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8)\
  4103. struct {\
  4104. bf1;\
  4105. bf2;\
  4106. bf3;\
  4107. bf4;\
  4108. bf5;\
  4109. bf6;\
  4110. bf7;\
  4111. bf8;\
  4112. }
  4113. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_9(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9)\
  4114. struct {\
  4115. bf1;\
  4116. bf2;\
  4117. bf3;\
  4118. bf4;\
  4119. bf5;\
  4120. bf6;\
  4121. bf7;\
  4122. bf8;\
  4123. bf9;\
  4124. }
  4125. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_10(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10)\
  4126. struct {\
  4127. bf1;\
  4128. bf2;\
  4129. bf3;\
  4130. bf4;\
  4131. bf5;\
  4132. bf6;\
  4133. bf7;\
  4134. bf8;\
  4135. bf9;\
  4136. bf10;\
  4137. }
  4138. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_11(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4139. bf11)\
  4140. struct {\
  4141. bf1;\
  4142. bf2;\
  4143. bf3;\
  4144. bf4;\
  4145. bf5;\
  4146. bf6;\
  4147. bf7;\
  4148. bf8;\
  4149. bf9;\
  4150. bf10;\
  4151. bf11;\
  4152. }
  4153. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_12(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4154. bf11, bf12)\
  4155. struct {\
  4156. bf1;\
  4157. bf2;\
  4158. bf3;\
  4159. bf4;\
  4160. bf5;\
  4161. bf6;\
  4162. bf7;\
  4163. bf8;\
  4164. bf9;\
  4165. bf10;\
  4166. bf11;\
  4167. bf12;\
  4168. }
  4169. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_13(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4170. bf11, bf12, bf13)\
  4171. struct {\
  4172. bf1;\
  4173. bf2;\
  4174. bf3;\
  4175. bf4;\
  4176. bf5;\
  4177. bf6;\
  4178. bf7;\
  4179. bf8;\
  4180. bf9;\
  4181. bf10;\
  4182. bf11;\
  4183. bf12;\
  4184. bf13;\
  4185. }
  4186. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_14(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4187. bf11, bf12, bf13, bf14)\
  4188. struct {\
  4189. bf1;\
  4190. bf2;\
  4191. bf3;\
  4192. bf4;\
  4193. bf5;\
  4194. bf6;\
  4195. bf7;\
  4196. bf8;\
  4197. bf9;\
  4198. bf10;\
  4199. bf11;\
  4200. bf12;\
  4201. bf13;\
  4202. bf14;\
  4203. }
  4204. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_15(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4205. bf11, bf12, bf13, bf14, bf15)\
  4206. struct {\
  4207. bf1;\
  4208. bf2;\
  4209. bf3;\
  4210. bf4;\
  4211. bf5;\
  4212. bf6;\
  4213. bf7;\
  4214. bf8;\
  4215. bf9;\
  4216. bf10;\
  4217. bf11;\
  4218. bf12;\
  4219. bf13;\
  4220. bf14;\
  4221. bf15;\
  4222. }
  4223. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_16(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4224. bf11, bf12, bf13, bf14, bf15, bf16)\
  4225. struct {\
  4226. bf1;\
  4227. bf2;\
  4228. bf3;\
  4229. bf4;\
  4230. bf5;\
  4231. bf6;\
  4232. bf7;\
  4233. bf8;\
  4234. bf9;\
  4235. bf10;\
  4236. bf11;\
  4237. bf12;\
  4238. bf13;\
  4239. bf14;\
  4240. bf15;\
  4241. bf16;\
  4242. }
  4243. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_17(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4244. bf11, bf12, bf13, bf14, bf15, bf16, bf17)\
  4245. struct {\
  4246. bf1;\
  4247. bf2;\
  4248. bf3;\
  4249. bf4;\
  4250. bf5;\
  4251. bf6;\
  4252. bf7;\
  4253. bf8;\
  4254. bf9;\
  4255. bf10;\
  4256. bf11;\
  4257. bf12;\
  4258. bf13;\
  4259. bf14;\
  4260. bf15;\
  4261. bf16;\
  4262. bf17;\
  4263. }
  4264. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_18(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4265. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18)\
  4266. struct {\
  4267. bf1;\
  4268. bf2;\
  4269. bf3;\
  4270. bf4;\
  4271. bf5;\
  4272. bf6;\
  4273. bf7;\
  4274. bf8;\
  4275. bf9;\
  4276. bf10;\
  4277. bf11;\
  4278. bf12;\
  4279. bf13;\
  4280. bf14;\
  4281. bf15;\
  4282. bf16;\
  4283. bf17;\
  4284. bf18;\
  4285. }
  4286. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_19(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4287. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19)\
  4288. struct {\
  4289. bf1;\
  4290. bf2;\
  4291. bf3;\
  4292. bf4;\
  4293. bf5;\
  4294. bf6;\
  4295. bf7;\
  4296. bf8;\
  4297. bf9;\
  4298. bf10;\
  4299. bf11;\
  4300. bf12;\
  4301. bf13;\
  4302. bf14;\
  4303. bf15;\
  4304. bf16;\
  4305. bf17;\
  4306. bf18;\
  4307. bf19;\
  4308. }
  4309. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_20(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4310. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20)\
  4311. struct {\
  4312. bf1;\
  4313. bf2;\
  4314. bf3;\
  4315. bf4;\
  4316. bf5;\
  4317. bf6;\
  4318. bf7;\
  4319. bf8;\
  4320. bf9;\
  4321. bf10;\
  4322. bf11;\
  4323. bf12;\
  4324. bf13;\
  4325. bf14;\
  4326. bf15;\
  4327. bf16;\
  4328. bf17;\
  4329. bf18;\
  4330. bf19;\
  4331. bf20;\
  4332. }
  4333. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_21(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4334. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4335. bf21)\
  4336. struct {\
  4337. bf1;\
  4338. bf2;\
  4339. bf3;\
  4340. bf4;\
  4341. bf5;\
  4342. bf6;\
  4343. bf7;\
  4344. bf8;\
  4345. bf9;\
  4346. bf10;\
  4347. bf11;\
  4348. bf12;\
  4349. bf13;\
  4350. bf14;\
  4351. bf15;\
  4352. bf16;\
  4353. bf17;\
  4354. bf18;\
  4355. bf19;\
  4356. bf20;\
  4357. bf21;\
  4358. }
  4359. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_22(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4360. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4361. bf21, bf22)\
  4362. struct {\
  4363. bf1;\
  4364. bf2;\
  4365. bf3;\
  4366. bf4;\
  4367. bf5;\
  4368. bf6;\
  4369. bf7;\
  4370. bf8;\
  4371. bf9;\
  4372. bf10;\
  4373. bf11;\
  4374. bf12;\
  4375. bf13;\
  4376. bf14;\
  4377. bf15;\
  4378. bf16;\
  4379. bf17;\
  4380. bf18;\
  4381. bf19;\
  4382. bf20;\
  4383. bf21;\
  4384. bf22;\
  4385. }
  4386. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_23(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4387. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4388. bf21, bf22, bf23)\
  4389. struct {\
  4390. bf1;\
  4391. bf2;\
  4392. bf3;\
  4393. bf4;\
  4394. bf5;\
  4395. bf6;\
  4396. bf7;\
  4397. bf8;\
  4398. bf9;\
  4399. bf10;\
  4400. bf11;\
  4401. bf12;\
  4402. bf13;\
  4403. bf14;\
  4404. bf15;\
  4405. bf16;\
  4406. bf17;\
  4407. bf18;\
  4408. bf19;\
  4409. bf20;\
  4410. bf21;\
  4411. bf22;\
  4412. bf23;\
  4413. }
  4414. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_24(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4415. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4416. bf21, bf22, bf23, bf24)\
  4417. struct {\
  4418. bf1;\
  4419. bf2;\
  4420. bf3;\
  4421. bf4;\
  4422. bf5;\
  4423. bf6;\
  4424. bf7;\
  4425. bf8;\
  4426. bf9;\
  4427. bf10;\
  4428. bf11;\
  4429. bf12;\
  4430. bf13;\
  4431. bf14;\
  4432. bf15;\
  4433. bf16;\
  4434. bf17;\
  4435. bf18;\
  4436. bf19;\
  4437. bf20;\
  4438. bf21;\
  4439. bf22;\
  4440. bf23;\
  4441. bf24;\
  4442. }
  4443. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_25(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4444. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4445. bf21, bf22, bf23, bf24, bf25)\
  4446. struct {\
  4447. bf1;\
  4448. bf2;\
  4449. bf3;\
  4450. bf4;\
  4451. bf5;\
  4452. bf6;\
  4453. bf7;\
  4454. bf8;\
  4455. bf9;\
  4456. bf10;\
  4457. bf11;\
  4458. bf12;\
  4459. bf13;\
  4460. bf14;\
  4461. bf15;\
  4462. bf16;\
  4463. bf17;\
  4464. bf18;\
  4465. bf19;\
  4466. bf20;\
  4467. bf21;\
  4468. bf22;\
  4469. bf23;\
  4470. bf24;\
  4471. bf25;\
  4472. }
  4473. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_26(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4474. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4475. bf21, bf22, bf23, bf24, bf25, bf26)\
  4476. struct {\
  4477. bf1;\
  4478. bf2;\
  4479. bf3;\
  4480. bf4;\
  4481. bf5;\
  4482. bf6;\
  4483. bf7;\
  4484. bf8;\
  4485. bf9;\
  4486. bf10;\
  4487. bf11;\
  4488. bf12;\
  4489. bf13;\
  4490. bf14;\
  4491. bf15;\
  4492. bf16;\
  4493. bf17;\
  4494. bf18;\
  4495. bf19;\
  4496. bf20;\
  4497. bf21;\
  4498. bf22;\
  4499. bf23;\
  4500. bf24;\
  4501. bf25;\
  4502. bf26;\
  4503. }
  4504. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_27(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4505. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4506. bf21, bf22, bf23, bf24, bf25, bf26, bf27)\
  4507. struct {\
  4508. bf1;\
  4509. bf2;\
  4510. bf3;\
  4511. bf4;\
  4512. bf5;\
  4513. bf6;\
  4514. bf7;\
  4515. bf8;\
  4516. bf9;\
  4517. bf10;\
  4518. bf11;\
  4519. bf12;\
  4520. bf13;\
  4521. bf14;\
  4522. bf15;\
  4523. bf16;\
  4524. bf17;\
  4525. bf18;\
  4526. bf19;\
  4527. bf20;\
  4528. bf21;\
  4529. bf22;\
  4530. bf23;\
  4531. bf24;\
  4532. bf25;\
  4533. bf26;\
  4534. bf27;\
  4535. }
  4536. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_28(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4537. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4538. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28)\
  4539. struct {\
  4540. bf1;\
  4541. bf2;\
  4542. bf3;\
  4543. bf4;\
  4544. bf5;\
  4545. bf6;\
  4546. bf7;\
  4547. bf8;\
  4548. bf9;\
  4549. bf10;\
  4550. bf11;\
  4551. bf12;\
  4552. bf13;\
  4553. bf14;\
  4554. bf15;\
  4555. bf16;\
  4556. bf17;\
  4557. bf18;\
  4558. bf19;\
  4559. bf20;\
  4560. bf21;\
  4561. bf22;\
  4562. bf23;\
  4563. bf24;\
  4564. bf25;\
  4565. bf26;\
  4566. bf27;\
  4567. bf28;\
  4568. }
  4569. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_29(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4570. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4571. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29)\
  4572. struct {\
  4573. bf1;\
  4574. bf2;\
  4575. bf3;\
  4576. bf4;\
  4577. bf5;\
  4578. bf6;\
  4579. bf7;\
  4580. bf8;\
  4581. bf9;\
  4582. bf10;\
  4583. bf11;\
  4584. bf12;\
  4585. bf13;\
  4586. bf14;\
  4587. bf15;\
  4588. bf16;\
  4589. bf17;\
  4590. bf18;\
  4591. bf19;\
  4592. bf20;\
  4593. bf21;\
  4594. bf22;\
  4595. bf23;\
  4596. bf24;\
  4597. bf25;\
  4598. bf26;\
  4599. bf27;\
  4600. bf28;\
  4601. bf29;\
  4602. }
  4603. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_30(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4604. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4605. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30)\
  4606. struct {\
  4607. bf1;\
  4608. bf2;\
  4609. bf3;\
  4610. bf4;\
  4611. bf5;\
  4612. bf6;\
  4613. bf7;\
  4614. bf8;\
  4615. bf9;\
  4616. bf10;\
  4617. bf11;\
  4618. bf12;\
  4619. bf13;\
  4620. bf14;\
  4621. bf15;\
  4622. bf16;\
  4623. bf17;\
  4624. bf18;\
  4625. bf19;\
  4626. bf20;\
  4627. bf21;\
  4628. bf22;\
  4629. bf23;\
  4630. bf24;\
  4631. bf25;\
  4632. bf26;\
  4633. bf27;\
  4634. bf28;\
  4635. bf29;\
  4636. bf30;\
  4637. }
  4638. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_31(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4639. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4640. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  4641. bf31)\
  4642. struct {\
  4643. bf1;\
  4644. bf2;\
  4645. bf3;\
  4646. bf4;\
  4647. bf5;\
  4648. bf6;\
  4649. bf7;\
  4650. bf8;\
  4651. bf9;\
  4652. bf10;\
  4653. bf11;\
  4654. bf12;\
  4655. bf13;\
  4656. bf14;\
  4657. bf15;\
  4658. bf16;\
  4659. bf17;\
  4660. bf18;\
  4661. bf19;\
  4662. bf20;\
  4663. bf21;\
  4664. bf22;\
  4665. bf23;\
  4666. bf24;\
  4667. bf25;\
  4668. bf26;\
  4669. bf27;\
  4670. bf28;\
  4671. bf29;\
  4672. bf30;\
  4673. bf31;\
  4674. }
  4675. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_32(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4676. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4677. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  4678. bf31, bf32)\
  4679. struct {\
  4680. bf1;\
  4681. bf2;\
  4682. bf3;\
  4683. bf4;\
  4684. bf5;\
  4685. bf6;\
  4686. bf7;\
  4687. bf8;\
  4688. bf9;\
  4689. bf10;\
  4690. bf11;\
  4691. bf12;\
  4692. bf13;\
  4693. bf14;\
  4694. bf15;\
  4695. bf16;\
  4696. bf17;\
  4697. bf18;\
  4698. bf19;\
  4699. bf20;\
  4700. bf21;\
  4701. bf22;\
  4702. bf23;\
  4703. bf24;\
  4704. bf25;\
  4705. bf26;\
  4706. bf27;\
  4707. bf28;\
  4708. bf29;\
  4709. bf30;\
  4710. bf31;\
  4711. bf32;\
  4712. }
  4713. #else
  4714. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_2(bf1, bf2)\
  4715. struct {\
  4716. bf2;\
  4717. bf1;\
  4718. }
  4719. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_3(bf1, bf2, bf3)\
  4720. struct {\
  4721. bf3;\
  4722. bf2;\
  4723. bf1;\
  4724. }
  4725. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_4(bf1, bf2, bf3, bf4)\
  4726. struct {\
  4727. bf4;\
  4728. bf3;\
  4729. bf2;\
  4730. bf1;\
  4731. }
  4732. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_5(bf1, bf2, bf3, bf4, bf5)\
  4733. struct {\
  4734. bf5;\
  4735. bf4;\
  4736. bf3;\
  4737. bf2;\
  4738. bf1;\
  4739. }
  4740. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_6(bf1, bf2, bf3, bf4, bf5, bf6)\
  4741. struct {\
  4742. bf6;\
  4743. bf5;\
  4744. bf4;\
  4745. bf3;\
  4746. bf2;\
  4747. bf1;\
  4748. }
  4749. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_7(bf1, bf2, bf3, bf4, bf5, bf6, bf7)\
  4750. struct {\
  4751. bf7;\
  4752. bf6;\
  4753. bf5;\
  4754. bf4;\
  4755. bf3;\
  4756. bf2;\
  4757. bf1;\
  4758. }
  4759. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_8(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8)\
  4760. struct {\
  4761. bf8;\
  4762. bf7;\
  4763. bf6;\
  4764. bf5;\
  4765. bf4;\
  4766. bf3;\
  4767. bf2;\
  4768. bf1;\
  4769. }
  4770. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_9(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9)\
  4771. struct {\
  4772. bf9;\
  4773. bf8;\
  4774. bf7;\
  4775. bf6;\
  4776. bf5;\
  4777. bf4;\
  4778. bf3;\
  4779. bf2;\
  4780. bf1;\
  4781. }
  4782. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_10(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10)\
  4783. struct {\
  4784. bf10;\
  4785. bf9;\
  4786. bf8;\
  4787. bf7;\
  4788. bf6;\
  4789. bf5;\
  4790. bf4;\
  4791. bf3;\
  4792. bf2;\
  4793. bf1;\
  4794. }
  4795. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_11(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4796. bf11)\
  4797. struct {\
  4798. bf11;\
  4799. bf10;\
  4800. bf9;\
  4801. bf8;\
  4802. bf7;\
  4803. bf6;\
  4804. bf5;\
  4805. bf4;\
  4806. bf3;\
  4807. bf2;\
  4808. bf1;\
  4809. }
  4810. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_12(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4811. bf11, bf12)\
  4812. struct {\
  4813. bf12;\
  4814. bf11;\
  4815. bf10;\
  4816. bf9;\
  4817. bf8;\
  4818. bf7;\
  4819. bf6;\
  4820. bf5;\
  4821. bf4;\
  4822. bf3;\
  4823. bf2;\
  4824. bf1;\
  4825. }
  4826. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_13(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4827. bf11, bf12, bf13)\
  4828. struct {\
  4829. bf13;\
  4830. bf12;\
  4831. bf11;\
  4832. bf10;\
  4833. bf9;\
  4834. bf8;\
  4835. bf7;\
  4836. bf6;\
  4837. bf5;\
  4838. bf4;\
  4839. bf3;\
  4840. bf2;\
  4841. bf1;\
  4842. }
  4843. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_14(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4844. bf11, bf12, bf13, bf14)\
  4845. struct {\
  4846. bf14;\
  4847. bf13;\
  4848. bf12;\
  4849. bf11;\
  4850. bf10;\
  4851. bf9;\
  4852. bf8;\
  4853. bf7;\
  4854. bf6;\
  4855. bf5;\
  4856. bf4;\
  4857. bf3;\
  4858. bf2;\
  4859. bf1;\
  4860. }
  4861. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_15(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4862. bf11, bf12, bf13, bf14, bf15)\
  4863. struct {\
  4864. bf15;\
  4865. bf14;\
  4866. bf13;\
  4867. bf12;\
  4868. bf11;\
  4869. bf10;\
  4870. bf9;\
  4871. bf8;\
  4872. bf7;\
  4873. bf6;\
  4874. bf5;\
  4875. bf4;\
  4876. bf3;\
  4877. bf2;\
  4878. bf1;\
  4879. }
  4880. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_16(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4881. bf11, bf12, bf13, bf14, bf15, bf16)\
  4882. struct {\
  4883. bf16;\
  4884. bf15;\
  4885. bf14;\
  4886. bf13;\
  4887. bf12;\
  4888. bf11;\
  4889. bf10;\
  4890. bf9;\
  4891. bf8;\
  4892. bf7;\
  4893. bf6;\
  4894. bf5;\
  4895. bf4;\
  4896. bf3;\
  4897. bf2;\
  4898. bf1;\
  4899. }
  4900. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_17(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4901. bf11, bf12, bf13, bf14, bf15, bf16, bf17)\
  4902. struct {\
  4903. bf17;\
  4904. bf16;\
  4905. bf15;\
  4906. bf14;\
  4907. bf13;\
  4908. bf12;\
  4909. bf11;\
  4910. bf10;\
  4911. bf9;\
  4912. bf8;\
  4913. bf7;\
  4914. bf6;\
  4915. bf5;\
  4916. bf4;\
  4917. bf3;\
  4918. bf2;\
  4919. bf1;\
  4920. }
  4921. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_18(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4922. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18)\
  4923. struct {\
  4924. bf18;\
  4925. bf17;\
  4926. bf16;\
  4927. bf15;\
  4928. bf14;\
  4929. bf13;\
  4930. bf12;\
  4931. bf11;\
  4932. bf10;\
  4933. bf9;\
  4934. bf8;\
  4935. bf7;\
  4936. bf6;\
  4937. bf5;\
  4938. bf4;\
  4939. bf3;\
  4940. bf2;\
  4941. bf1;\
  4942. }
  4943. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_19(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4944. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19)\
  4945. struct {\
  4946. bf19;\
  4947. bf18;\
  4948. bf17;\
  4949. bf16;\
  4950. bf15;\
  4951. bf14;\
  4952. bf13;\
  4953. bf12;\
  4954. bf11;\
  4955. bf10;\
  4956. bf9;\
  4957. bf8;\
  4958. bf7;\
  4959. bf6;\
  4960. bf5;\
  4961. bf4;\
  4962. bf3;\
  4963. bf2;\
  4964. bf1;\
  4965. }
  4966. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_20(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4967. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20)\
  4968. struct {\
  4969. bf20;\
  4970. bf19;\
  4971. bf18;\
  4972. bf17;\
  4973. bf16;\
  4974. bf15;\
  4975. bf14;\
  4976. bf13;\
  4977. bf12;\
  4978. bf11;\
  4979. bf10;\
  4980. bf9;\
  4981. bf8;\
  4982. bf7;\
  4983. bf6;\
  4984. bf5;\
  4985. bf4;\
  4986. bf3;\
  4987. bf2;\
  4988. bf1;\
  4989. }
  4990. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_21(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  4991. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  4992. bf21)\
  4993. struct {\
  4994. bf21;\
  4995. bf20;\
  4996. bf19;\
  4997. bf18;\
  4998. bf17;\
  4999. bf16;\
  5000. bf15;\
  5001. bf14;\
  5002. bf13;\
  5003. bf12;\
  5004. bf11;\
  5005. bf10;\
  5006. bf9;\
  5007. bf8;\
  5008. bf7;\
  5009. bf6;\
  5010. bf5;\
  5011. bf4;\
  5012. bf3;\
  5013. bf2;\
  5014. bf1;\
  5015. }
  5016. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_22(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5017. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5018. bf21, bf22)\
  5019. struct {\
  5020. bf22;\
  5021. bf21;\
  5022. bf20;\
  5023. bf19;\
  5024. bf18;\
  5025. bf17;\
  5026. bf16;\
  5027. bf15;\
  5028. bf14;\
  5029. bf13;\
  5030. bf12;\
  5031. bf11;\
  5032. bf10;\
  5033. bf9;\
  5034. bf8;\
  5035. bf7;\
  5036. bf6;\
  5037. bf5;\
  5038. bf4;\
  5039. bf3;\
  5040. bf2;\
  5041. bf1;\
  5042. }
  5043. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_23(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5044. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5045. bf21, bf22, bf23)\
  5046. struct {\
  5047. bf23;\
  5048. bf22;\
  5049. bf21;\
  5050. bf20;\
  5051. bf19;\
  5052. bf18;\
  5053. bf17;\
  5054. bf16;\
  5055. bf15;\
  5056. bf14;\
  5057. bf13;\
  5058. bf12;\
  5059. bf11;\
  5060. bf10;\
  5061. bf9;\
  5062. bf8;\
  5063. bf7;\
  5064. bf6;\
  5065. bf5;\
  5066. bf4;\
  5067. bf3;\
  5068. bf2;\
  5069. bf1;\
  5070. }
  5071. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_24(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5072. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5073. bf21, bf22, bf23, bf24)\
  5074. struct {\
  5075. bf24;\
  5076. bf23;\
  5077. bf22;\
  5078. bf21;\
  5079. bf20;\
  5080. bf19;\
  5081. bf18;\
  5082. bf17;\
  5083. bf16;\
  5084. bf15;\
  5085. bf14;\
  5086. bf13;\
  5087. bf12;\
  5088. bf11;\
  5089. bf10;\
  5090. bf9;\
  5091. bf8;\
  5092. bf7;\
  5093. bf6;\
  5094. bf5;\
  5095. bf4;\
  5096. bf3;\
  5097. bf2;\
  5098. bf1;\
  5099. }
  5100. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_25(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5101. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5102. bf21, bf22, bf23, bf24, bf25)\
  5103. struct {\
  5104. bf25;\
  5105. bf24;\
  5106. bf23;\
  5107. bf22;\
  5108. bf21;\
  5109. bf20;\
  5110. bf19;\
  5111. bf18;\
  5112. bf17;\
  5113. bf16;\
  5114. bf15;\
  5115. bf14;\
  5116. bf13;\
  5117. bf12;\
  5118. bf11;\
  5119. bf10;\
  5120. bf9;\
  5121. bf8;\
  5122. bf7;\
  5123. bf6;\
  5124. bf5;\
  5125. bf4;\
  5126. bf3;\
  5127. bf2;\
  5128. bf1;\
  5129. }
  5130. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_26(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5131. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5132. bf21, bf22, bf23, bf24, bf25, bf26)\
  5133. struct {\
  5134. bf26;\
  5135. bf25;\
  5136. bf24;\
  5137. bf23;\
  5138. bf22;\
  5139. bf21;\
  5140. bf20;\
  5141. bf19;\
  5142. bf18;\
  5143. bf17;\
  5144. bf16;\
  5145. bf15;\
  5146. bf14;\
  5147. bf13;\
  5148. bf12;\
  5149. bf11;\
  5150. bf10;\
  5151. bf9;\
  5152. bf8;\
  5153. bf7;\
  5154. bf6;\
  5155. bf5;\
  5156. bf4;\
  5157. bf3;\
  5158. bf2;\
  5159. bf1;\
  5160. }
  5161. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_27(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5162. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5163. bf21, bf22, bf23, bf24, bf25, bf26, bf27)\
  5164. struct {\
  5165. bf27;\
  5166. bf26;\
  5167. bf25;\
  5168. bf24;\
  5169. bf23;\
  5170. bf22;\
  5171. bf21;\
  5172. bf20;\
  5173. bf19;\
  5174. bf18;\
  5175. bf17;\
  5176. bf16;\
  5177. bf15;\
  5178. bf14;\
  5179. bf13;\
  5180. bf12;\
  5181. bf11;\
  5182. bf10;\
  5183. bf9;\
  5184. bf8;\
  5185. bf7;\
  5186. bf6;\
  5187. bf5;\
  5188. bf4;\
  5189. bf3;\
  5190. bf2;\
  5191. bf1;\
  5192. }
  5193. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_28(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5194. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5195. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28)\
  5196. struct {\
  5197. bf28;\
  5198. bf27;\
  5199. bf26;\
  5200. bf25;\
  5201. bf24;\
  5202. bf23;\
  5203. bf22;\
  5204. bf21;\
  5205. bf20;\
  5206. bf19;\
  5207. bf18;\
  5208. bf17;\
  5209. bf16;\
  5210. bf15;\
  5211. bf14;\
  5212. bf13;\
  5213. bf12;\
  5214. bf11;\
  5215. bf10;\
  5216. bf9;\
  5217. bf8;\
  5218. bf7;\
  5219. bf6;\
  5220. bf5;\
  5221. bf4;\
  5222. bf3;\
  5223. bf2;\
  5224. bf1;\
  5225. }
  5226. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_29(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5227. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5228. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29)\
  5229. struct {\
  5230. bf29;\
  5231. bf28;\
  5232. bf27;\
  5233. bf26;\
  5234. bf25;\
  5235. bf24;\
  5236. bf23;\
  5237. bf22;\
  5238. bf21;\
  5239. bf20;\
  5240. bf19;\
  5241. bf18;\
  5242. bf17;\
  5243. bf16;\
  5244. bf15;\
  5245. bf14;\
  5246. bf13;\
  5247. bf12;\
  5248. bf11;\
  5249. bf10;\
  5250. bf9;\
  5251. bf8;\
  5252. bf7;\
  5253. bf6;\
  5254. bf5;\
  5255. bf4;\
  5256. bf3;\
  5257. bf2;\
  5258. bf1;\
  5259. }
  5260. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_30(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5261. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5262. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30)\
  5263. struct {\
  5264. bf30;\
  5265. bf29;\
  5266. bf28;\
  5267. bf27;\
  5268. bf26;\
  5269. bf25;\
  5270. bf24;\
  5271. bf23;\
  5272. bf22;\
  5273. bf21;\
  5274. bf20;\
  5275. bf19;\
  5276. bf18;\
  5277. bf17;\
  5278. bf16;\
  5279. bf15;\
  5280. bf14;\
  5281. bf13;\
  5282. bf12;\
  5283. bf11;\
  5284. bf10;\
  5285. bf9;\
  5286. bf8;\
  5287. bf7;\
  5288. bf6;\
  5289. bf5;\
  5290. bf4;\
  5291. bf3;\
  5292. bf2;\
  5293. bf1;\
  5294. }
  5295. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_31(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5296. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5297. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  5298. bf31)\
  5299. struct {\
  5300. bf31;\
  5301. bf30;\
  5302. bf29;\
  5303. bf28;\
  5304. bf27;\
  5305. bf26;\
  5306. bf25;\
  5307. bf24;\
  5308. bf23;\
  5309. bf22;\
  5310. bf21;\
  5311. bf20;\
  5312. bf19;\
  5313. bf18;\
  5314. bf17;\
  5315. bf16;\
  5316. bf15;\
  5317. bf14;\
  5318. bf13;\
  5319. bf12;\
  5320. bf11;\
  5321. bf10;\
  5322. bf9;\
  5323. bf8;\
  5324. bf7;\
  5325. bf6;\
  5326. bf5;\
  5327. bf4;\
  5328. bf3;\
  5329. bf2;\
  5330. bf1;\
  5331. }
  5332. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_32(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5333. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5334. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  5335. bf31, bf32)\
  5336. struct {\
  5337. bf32;\
  5338. bf31;\
  5339. bf30;\
  5340. bf29;\
  5341. bf28;\
  5342. bf27;\
  5343. bf26;\
  5344. bf25;\
  5345. bf24;\
  5346. bf23;\
  5347. bf22;\
  5348. bf21;\
  5349. bf20;\
  5350. bf19;\
  5351. bf18;\
  5352. bf17;\
  5353. bf16;\
  5354. bf15;\
  5355. bf14;\
  5356. bf13;\
  5357. bf12;\
  5358. bf11;\
  5359. bf10;\
  5360. bf9;\
  5361. bf8;\
  5362. bf7;\
  5363. bf6;\
  5364. bf5;\
  5365. bf4;\
  5366. bf3;\
  5367. bf2;\
  5368. bf1;\
  5369. }
  5370. #endif
  5371. #elif defined(__ICCRX__)
  5372. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_2(bf1, bf2)\
  5373. struct {\
  5374. R_PRAGMA(bitfields=default)\
  5375. struct {\
  5376. bf1;\
  5377. bf2;\
  5378. };\
  5379. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5380. }
  5381. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_3(bf1, bf2, bf3)\
  5382. struct {\
  5383. R_PRAGMA(bitfields=default)\
  5384. struct {\
  5385. bf1;\
  5386. bf2;\
  5387. bf3;\
  5388. };\
  5389. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5390. }
  5391. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_4(bf1, bf2, bf3, bf4)\
  5392. struct {\
  5393. R_PRAGMA(bitfields=default)\
  5394. struct {\
  5395. bf1;\
  5396. bf2;\
  5397. bf3;\
  5398. bf4;\
  5399. };\
  5400. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5401. }
  5402. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_5(bf1, bf2, bf3, bf4, bf5)\
  5403. struct {\
  5404. R_PRAGMA(bitfields=default)\
  5405. struct {\
  5406. bf1;\
  5407. bf2;\
  5408. bf3;\
  5409. bf4;\
  5410. bf5;\
  5411. };\
  5412. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5413. }
  5414. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_6(bf1, bf2, bf3, bf4, bf5, bf6)\
  5415. struct {\
  5416. R_PRAGMA(bitfields=default)\
  5417. struct {\
  5418. bf1;\
  5419. bf2;\
  5420. bf3;\
  5421. bf4;\
  5422. bf5;\
  5423. bf6;\
  5424. };\
  5425. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5426. }
  5427. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_7(bf1, bf2, bf3, bf4, bf5, bf6, bf7)\
  5428. struct {\
  5429. R_PRAGMA(bitfields=default)\
  5430. struct {\
  5431. bf1;\
  5432. bf2;\
  5433. bf3;\
  5434. bf4;\
  5435. bf5;\
  5436. bf6;\
  5437. bf7;\
  5438. };\
  5439. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5440. }
  5441. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_8(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8)\
  5442. struct {\
  5443. R_PRAGMA(bitfields=default)\
  5444. struct {\
  5445. bf1;\
  5446. bf2;\
  5447. bf3;\
  5448. bf4;\
  5449. bf5;\
  5450. bf6;\
  5451. bf7;\
  5452. bf8;\
  5453. };\
  5454. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5455. }
  5456. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_9(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9)\
  5457. struct {\
  5458. R_PRAGMA(bitfields=default)\
  5459. struct {\
  5460. bf1;\
  5461. bf2;\
  5462. bf3;\
  5463. bf4;\
  5464. bf5;\
  5465. bf6;\
  5466. bf7;\
  5467. bf8;\
  5468. bf9;\
  5469. };\
  5470. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5471. }
  5472. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_10(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10)\
  5473. struct {\
  5474. R_PRAGMA(bitfields=default)\
  5475. struct {\
  5476. bf1;\
  5477. bf2;\
  5478. bf3;\
  5479. bf4;\
  5480. bf5;\
  5481. bf6;\
  5482. bf7;\
  5483. bf8;\
  5484. bf9;\
  5485. bf10;\
  5486. };\
  5487. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5488. }
  5489. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_11(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5490. bf11)\
  5491. struct {\
  5492. R_PRAGMA(bitfields=default)\
  5493. struct {\
  5494. bf1;\
  5495. bf2;\
  5496. bf3;\
  5497. bf4;\
  5498. bf5;\
  5499. bf6;\
  5500. bf7;\
  5501. bf8;\
  5502. bf9;\
  5503. bf10;\
  5504. bf11;\
  5505. };\
  5506. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5507. }
  5508. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_12(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5509. bf11, bf12)\
  5510. struct {\
  5511. R_PRAGMA(bitfields=default)\
  5512. struct {\
  5513. bf1;\
  5514. bf2;\
  5515. bf3;\
  5516. bf4;\
  5517. bf5;\
  5518. bf6;\
  5519. bf7;\
  5520. bf8;\
  5521. bf9;\
  5522. bf10;\
  5523. bf11;\
  5524. bf12;\
  5525. };\
  5526. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5527. }
  5528. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_13(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5529. bf11, bf12, bf13)\
  5530. struct {\
  5531. R_PRAGMA(bitfields=default)\
  5532. struct {\
  5533. bf1;\
  5534. bf2;\
  5535. bf3;\
  5536. bf4;\
  5537. bf5;\
  5538. bf6;\
  5539. bf7;\
  5540. bf8;\
  5541. bf9;\
  5542. bf10;\
  5543. bf11;\
  5544. bf12;\
  5545. bf13;\
  5546. };\
  5547. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5548. }
  5549. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_14(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5550. bf11, bf12, bf13, bf14)\
  5551. struct {\
  5552. R_PRAGMA(bitfields=default)\
  5553. struct {\
  5554. bf1;\
  5555. bf2;\
  5556. bf3;\
  5557. bf4;\
  5558. bf5;\
  5559. bf6;\
  5560. bf7;\
  5561. bf8;\
  5562. bf9;\
  5563. bf10;\
  5564. bf11;\
  5565. bf12;\
  5566. bf13;\
  5567. bf14;\
  5568. };\
  5569. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5570. }
  5571. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_15(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5572. bf11, bf12, bf13, bf14, bf15)\
  5573. struct {\
  5574. R_PRAGMA(bitfields=default)\
  5575. struct {\
  5576. bf1;\
  5577. bf2;\
  5578. bf3;\
  5579. bf4;\
  5580. bf5;\
  5581. bf6;\
  5582. bf7;\
  5583. bf8;\
  5584. bf9;\
  5585. bf10;\
  5586. bf11;\
  5587. bf12;\
  5588. bf13;\
  5589. bf14;\
  5590. bf15;\
  5591. };\
  5592. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5593. }
  5594. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_16(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5595. bf11, bf12, bf13, bf14, bf15, bf16)\
  5596. struct {\
  5597. R_PRAGMA(bitfields=default)\
  5598. struct {\
  5599. bf1;\
  5600. bf2;\
  5601. bf3;\
  5602. bf4;\
  5603. bf5;\
  5604. bf6;\
  5605. bf7;\
  5606. bf8;\
  5607. bf9;\
  5608. bf10;\
  5609. bf11;\
  5610. bf12;\
  5611. bf13;\
  5612. bf14;\
  5613. bf15;\
  5614. bf16;\
  5615. };\
  5616. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5617. }
  5618. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_17(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5619. bf11, bf12, bf13, bf14, bf15, bf16, bf17)\
  5620. struct {\
  5621. R_PRAGMA(bitfields=default)\
  5622. struct {\
  5623. bf1;\
  5624. bf2;\
  5625. bf3;\
  5626. bf4;\
  5627. bf5;\
  5628. bf6;\
  5629. bf7;\
  5630. bf8;\
  5631. bf9;\
  5632. bf10;\
  5633. bf11;\
  5634. bf12;\
  5635. bf13;\
  5636. bf14;\
  5637. bf15;\
  5638. bf16;\
  5639. bf17;\
  5640. };\
  5641. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5642. }
  5643. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_18(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5644. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18)\
  5645. struct {\
  5646. R_PRAGMA(bitfields=default)\
  5647. struct {\
  5648. bf1;\
  5649. bf2;\
  5650. bf3;\
  5651. bf4;\
  5652. bf5;\
  5653. bf6;\
  5654. bf7;\
  5655. bf8;\
  5656. bf9;\
  5657. bf10;\
  5658. bf11;\
  5659. bf12;\
  5660. bf13;\
  5661. bf14;\
  5662. bf15;\
  5663. bf16;\
  5664. bf17;\
  5665. bf18;\
  5666. };\
  5667. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5668. }
  5669. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_19(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5670. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19)\
  5671. struct {\
  5672. R_PRAGMA(bitfields=default)\
  5673. struct {\
  5674. bf1;\
  5675. bf2;\
  5676. bf3;\
  5677. bf4;\
  5678. bf5;\
  5679. bf6;\
  5680. bf7;\
  5681. bf8;\
  5682. bf9;\
  5683. bf10;\
  5684. bf11;\
  5685. bf12;\
  5686. bf13;\
  5687. bf14;\
  5688. bf15;\
  5689. bf16;\
  5690. bf17;\
  5691. bf18;\
  5692. bf19;\
  5693. };\
  5694. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5695. }
  5696. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_20(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5697. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20)\
  5698. struct {\
  5699. R_PRAGMA(bitfields=default)\
  5700. struct {\
  5701. bf1;\
  5702. bf2;\
  5703. bf3;\
  5704. bf4;\
  5705. bf5;\
  5706. bf6;\
  5707. bf7;\
  5708. bf8;\
  5709. bf9;\
  5710. bf10;\
  5711. bf11;\
  5712. bf12;\
  5713. bf13;\
  5714. bf14;\
  5715. bf15;\
  5716. bf16;\
  5717. bf17;\
  5718. bf18;\
  5719. bf19;\
  5720. bf20;\
  5721. };\
  5722. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5723. }
  5724. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_21(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5725. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5726. bf21)\
  5727. struct {\
  5728. R_PRAGMA(bitfields=default)\
  5729. struct {\
  5730. bf1;\
  5731. bf2;\
  5732. bf3;\
  5733. bf4;\
  5734. bf5;\
  5735. bf6;\
  5736. bf7;\
  5737. bf8;\
  5738. bf9;\
  5739. bf10;\
  5740. bf11;\
  5741. bf12;\
  5742. bf13;\
  5743. bf14;\
  5744. bf15;\
  5745. bf16;\
  5746. bf17;\
  5747. bf18;\
  5748. bf19;\
  5749. bf20;\
  5750. bf21;\
  5751. };\
  5752. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5753. }
  5754. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_22(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5755. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5756. bf21, bf22)\
  5757. struct {\
  5758. R_PRAGMA(bitfields=default)\
  5759. struct {\
  5760. bf1;\
  5761. bf2;\
  5762. bf3;\
  5763. bf4;\
  5764. bf5;\
  5765. bf6;\
  5766. bf7;\
  5767. bf8;\
  5768. bf9;\
  5769. bf10;\
  5770. bf11;\
  5771. bf12;\
  5772. bf13;\
  5773. bf14;\
  5774. bf15;\
  5775. bf16;\
  5776. bf17;\
  5777. bf18;\
  5778. bf19;\
  5779. bf20;\
  5780. bf21;\
  5781. bf22;\
  5782. };\
  5783. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5784. }
  5785. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_23(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5786. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5787. bf21, bf22, bf23)\
  5788. struct {\
  5789. R_PRAGMA(bitfields=default)\
  5790. struct {\
  5791. bf1;\
  5792. bf2;\
  5793. bf3;\
  5794. bf4;\
  5795. bf5;\
  5796. bf6;\
  5797. bf7;\
  5798. bf8;\
  5799. bf9;\
  5800. bf10;\
  5801. bf11;\
  5802. bf12;\
  5803. bf13;\
  5804. bf14;\
  5805. bf15;\
  5806. bf16;\
  5807. bf17;\
  5808. bf18;\
  5809. bf19;\
  5810. bf20;\
  5811. bf21;\
  5812. bf22;\
  5813. bf23;\
  5814. };\
  5815. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5816. }
  5817. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_24(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5818. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5819. bf21, bf22, bf23, bf24)\
  5820. struct {\
  5821. R_PRAGMA(bitfields=default)\
  5822. struct {\
  5823. bf1;\
  5824. bf2;\
  5825. bf3;\
  5826. bf4;\
  5827. bf5;\
  5828. bf6;\
  5829. bf7;\
  5830. bf8;\
  5831. bf9;\
  5832. bf10;\
  5833. bf11;\
  5834. bf12;\
  5835. bf13;\
  5836. bf14;\
  5837. bf15;\
  5838. bf16;\
  5839. bf17;\
  5840. bf18;\
  5841. bf19;\
  5842. bf20;\
  5843. bf21;\
  5844. bf22;\
  5845. bf23;\
  5846. bf24;\
  5847. };\
  5848. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5849. }
  5850. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_25(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5851. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5852. bf21, bf22, bf23, bf24, bf25)\
  5853. struct {\
  5854. R_PRAGMA(bitfields=default)\
  5855. struct {\
  5856. bf1;\
  5857. bf2;\
  5858. bf3;\
  5859. bf4;\
  5860. bf5;\
  5861. bf6;\
  5862. bf7;\
  5863. bf8;\
  5864. bf9;\
  5865. bf10;\
  5866. bf11;\
  5867. bf12;\
  5868. bf13;\
  5869. bf14;\
  5870. bf15;\
  5871. bf16;\
  5872. bf17;\
  5873. bf18;\
  5874. bf19;\
  5875. bf20;\
  5876. bf21;\
  5877. bf22;\
  5878. bf23;\
  5879. bf24;\
  5880. bf25;\
  5881. };\
  5882. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5883. }
  5884. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_26(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5885. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5886. bf21, bf22, bf23, bf24, bf25, bf26)\
  5887. struct {\
  5888. R_PRAGMA(bitfields=default)\
  5889. struct {\
  5890. bf1;\
  5891. bf2;\
  5892. bf3;\
  5893. bf4;\
  5894. bf5;\
  5895. bf6;\
  5896. bf7;\
  5897. bf8;\
  5898. bf9;\
  5899. bf10;\
  5900. bf11;\
  5901. bf12;\
  5902. bf13;\
  5903. bf14;\
  5904. bf15;\
  5905. bf16;\
  5906. bf17;\
  5907. bf18;\
  5908. bf19;\
  5909. bf20;\
  5910. bf21;\
  5911. bf22;\
  5912. bf23;\
  5913. bf24;\
  5914. bf25;\
  5915. bf26;\
  5916. };\
  5917. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5918. }
  5919. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_27(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5920. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5921. bf21, bf22, bf23, bf24, bf25, bf26, bf27)\
  5922. struct {\
  5923. R_PRAGMA(bitfields=default)\
  5924. struct {\
  5925. bf1;\
  5926. bf2;\
  5927. bf3;\
  5928. bf4;\
  5929. bf5;\
  5930. bf6;\
  5931. bf7;\
  5932. bf8;\
  5933. bf9;\
  5934. bf10;\
  5935. bf11;\
  5936. bf12;\
  5937. bf13;\
  5938. bf14;\
  5939. bf15;\
  5940. bf16;\
  5941. bf17;\
  5942. bf18;\
  5943. bf19;\
  5944. bf20;\
  5945. bf21;\
  5946. bf22;\
  5947. bf23;\
  5948. bf24;\
  5949. bf25;\
  5950. bf26;\
  5951. bf27;\
  5952. };\
  5953. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5954. }
  5955. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_28(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5956. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5957. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28)\
  5958. struct {\
  5959. R_PRAGMA(bitfields=default)\
  5960. struct {\
  5961. bf1;\
  5962. bf2;\
  5963. bf3;\
  5964. bf4;\
  5965. bf5;\
  5966. bf6;\
  5967. bf7;\
  5968. bf8;\
  5969. bf9;\
  5970. bf10;\
  5971. bf11;\
  5972. bf12;\
  5973. bf13;\
  5974. bf14;\
  5975. bf15;\
  5976. bf16;\
  5977. bf17;\
  5978. bf18;\
  5979. bf19;\
  5980. bf20;\
  5981. bf21;\
  5982. bf22;\
  5983. bf23;\
  5984. bf24;\
  5985. bf25;\
  5986. bf26;\
  5987. bf27;\
  5988. bf28;\
  5989. };\
  5990. R_PRAGMA(bitfields=reversed_disjoint_types)\
  5991. }
  5992. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_29(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  5993. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  5994. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29)\
  5995. struct {\
  5996. R_PRAGMA(bitfields=default)\
  5997. struct {\
  5998. bf1;\
  5999. bf2;\
  6000. bf3;\
  6001. bf4;\
  6002. bf5;\
  6003. bf6;\
  6004. bf7;\
  6005. bf8;\
  6006. bf9;\
  6007. bf10;\
  6008. bf11;\
  6009. bf12;\
  6010. bf13;\
  6011. bf14;\
  6012. bf15;\
  6013. bf16;\
  6014. bf17;\
  6015. bf18;\
  6016. bf19;\
  6017. bf20;\
  6018. bf21;\
  6019. bf22;\
  6020. bf23;\
  6021. bf24;\
  6022. bf25;\
  6023. bf26;\
  6024. bf27;\
  6025. bf28;\
  6026. bf29;\
  6027. };\
  6028. R_PRAGMA(bitfields=reversed_disjoint_types)\
  6029. }
  6030. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_30(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  6031. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  6032. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30)\
  6033. struct {\
  6034. R_PRAGMA(bitfields=default)\
  6035. struct {\
  6036. bf1;\
  6037. bf2;\
  6038. bf3;\
  6039. bf4;\
  6040. bf5;\
  6041. bf6;\
  6042. bf7;\
  6043. bf8;\
  6044. bf9;\
  6045. bf10;\
  6046. bf11;\
  6047. bf12;\
  6048. bf13;\
  6049. bf14;\
  6050. bf15;\
  6051. bf16;\
  6052. bf17;\
  6053. bf18;\
  6054. bf19;\
  6055. bf20;\
  6056. bf21;\
  6057. bf22;\
  6058. bf23;\
  6059. bf24;\
  6060. bf25;\
  6061. bf26;\
  6062. bf27;\
  6063. bf28;\
  6064. bf29;\
  6065. bf30;\
  6066. };\
  6067. R_PRAGMA(bitfields=reversed_disjoint_types)\
  6068. }
  6069. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_31(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  6070. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  6071. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  6072. bf31)\
  6073. struct {\
  6074. R_PRAGMA(bitfields=default)\
  6075. struct {\
  6076. bf1;\
  6077. bf2;\
  6078. bf3;\
  6079. bf4;\
  6080. bf5;\
  6081. bf6;\
  6082. bf7;\
  6083. bf8;\
  6084. bf9;\
  6085. bf10;\
  6086. bf11;\
  6087. bf12;\
  6088. bf13;\
  6089. bf14;\
  6090. bf15;\
  6091. bf16;\
  6092. bf17;\
  6093. bf18;\
  6094. bf19;\
  6095. bf20;\
  6096. bf21;\
  6097. bf22;\
  6098. bf23;\
  6099. bf24;\
  6100. bf25;\
  6101. bf26;\
  6102. bf27;\
  6103. bf28;\
  6104. bf29;\
  6105. bf30;\
  6106. bf31;\
  6107. };\
  6108. R_PRAGMA(bitfields=reversed_disjoint_types)\
  6109. }
  6110. #define R_ATTRIB_BITFIELD_BIT_ORDER_RIGHT_32(bf1, bf2, bf3, bf4, bf5, bf6, bf7, bf8, bf9, bf10, \
  6111. bf11, bf12, bf13, bf14, bf15, bf16, bf17, bf18, bf19, bf20, \
  6112. bf21, bf22, bf23, bf24, bf25, bf26, bf27, bf28, bf29, bf30, \
  6113. bf31, bf32)\
  6114. struct {\
  6115. R_PRAGMA(bitfields=default)\
  6116. struct {\
  6117. bf1;\
  6118. bf2;\
  6119. bf3;\
  6120. bf4;\
  6121. bf5;\
  6122. bf6;\
  6123. bf7;\
  6124. bf8;\
  6125. bf9;\
  6126. bf10;\
  6127. bf11;\
  6128. bf12;\
  6129. bf13;\
  6130. bf14;\
  6131. bf15;\
  6132. bf16;\
  6133. bf17;\
  6134. bf18;\
  6135. bf19;\
  6136. bf20;\
  6137. bf21;\
  6138. bf22;\
  6139. bf23;\
  6140. bf24;\
  6141. bf25;\
  6142. bf26;\
  6143. bf27;\
  6144. bf28;\
  6145. bf29;\
  6146. bf30;\
  6147. bf31;\
  6148. bf32;\
  6149. };\
  6150. R_PRAGMA(bitfields=reversed_disjoint_types)\
  6151. }
  6152. #endif
  6153. /* ---------- Alignment Value Specification for Structure Members and Class Members ---------- */
  6154. #if defined(__CCRX__)
  6155. #define R_PRAGMA_PACK R_PRAGMA(pack)
  6156. #define R_PRAGMA_UNPACK R_PRAGMA(unpack)
  6157. #define R_PRAGMA_PACKOPTION R_PRAGMA(packoption)
  6158. #elif defined(__GNUC__)
  6159. #define R_PRAGMA_PACK R_PRAGMA(pack(1))
  6160. #define R_PRAGMA_UNPACK R_PRAGMA(pack(4))
  6161. #define R_PRAGMA_PACKOPTION R_PRAGMA(pack())
  6162. #elif defined(__ICCRX__)
  6163. #define R_PRAGMA_PACK R_PRAGMA(pack(1))
  6164. #define R_PRAGMA_UNPACK R_PRAGMA(pack(4))
  6165. #define R_PRAGMA_PACKOPTION R_PRAGMA(pack())
  6166. #endif
  6167. /* ========== Warning supression macro ========== */
  6168. /* This macro is used to suppress compiler messages about not only a parameter but also a auto variable not being used
  6169. * in a function. The nice thing about using this implementation is that it does not take any extra RAM or ROM.
  6170. * This macro is available for the followings:
  6171. * CC-RX's 'M0520826:Parameter "XXXX" was never referenced'
  6172. * CC-RX's 'W0520550:Variable "XXXX" was set but never used'
  6173. * GNURX's 'unused parameter 'XXXX' [-Wunused-parameter]'
  6174. * GNURX's 'variable 'XXXX' set but not used [-Wunused-but-set-variable]'
  6175. * When the variable is declared as volatile, the '&' can be applied like 'R_INTERNAL_NOT_USED(&volatile_variable);'.
  6176. */
  6177. #define R_INTERNAL_NOT_USED(p) ((void)(p))
  6178. /* ========== Intrinsic Functions ========== */
  6179. #if defined(__CCRX__)
  6180. /* ---------- Data Exchange ---------- */
  6181. #define R_EXCHANGE(x, y) xchg((signed long *)(x), (signed long *)(y)) /* void xchg(signed long *data1, signed long *data2) */
  6182. /* ---------- Special Instructions ---------- */
  6183. #define R_BRK() brk() /* void brk(void) */
  6184. #define R_WAIT() wait() /* void wait(void) */
  6185. #define R_NOP() nop() /* void nop(void) */
  6186. /* ---------- Processor interrupt priority level (IPL) ---------- */
  6187. //#define R_SET_IPL(x) set_ipl((signed long)(x)) /* void set_ipl(signed long level) */
  6188. //#define R_GET_IPL() get_ipl() /* unsigned char get_ipl(void) */
  6189. /* ---------- Processor status word (PSW) ---------- */
  6190. #define R_SET_PSW(x) set_psw((unsigned long)(x)) /* void set_psw(unsigned long data) */
  6191. #define R_GET_PSW() get_psw() /* unsigned long get_psw(void) */
  6192. /* ---------- Floating-point status word (FPSW) ---------- */
  6193. #define R_SET_FPSW(x) set_fpsw((unsigned long)(x)) /* void set_fpsw(unsigned long data) */
  6194. #define R_GET_FPSW() get_fpsw() /* unsigned long get_fpsw(void) */
  6195. /* ---------- User Stack Pointer (USP) ---------- */
  6196. #define R_SET_USP(x) set_usp((void *)(x)) /* void set_usp(void *data) */
  6197. #define R_GET_USP() get_usp() /* void *get_usp(void) */
  6198. /* ---------- Interrupt Stack Pointer (ISP) ---------- */
  6199. #define R_SET_ISP(x) set_isp((void *)(x)) /* void set_fpsw(void *data) */
  6200. #define R_GET_ISP() get_isp() /* void *get_fpsw(void) */
  6201. /* ---------- Fast Interrupt Vector Register (FINTV) ---------- */
  6202. #define R_SET_FINTV(x) set_fintv((void *)(x)) /* void set_fintv(void *data) */
  6203. #define R_GET_FINTV() get_fintv() /* void *get_fintv(void) */
  6204. /* ---------- Interrupt Table Register (INTB) ---------- */
  6205. #define R_SET_INTB(x) set_intb((void *)(x)) /* void set_intb(void *data) */
  6206. #define R_GET_INTB() get_intb() /* void *get_intb(void) */
  6207. /* ---------- Exception Table Register (EXTB) ---------- */
  6208. #define R_SET_EXTB(x) set_extb((void *)(x)) /* void set_extb(void *data) */
  6209. #define R_GET_EXTB() get_extb() /* void *get_extb(void) */
  6210. /* ---------- Control of the interrupt enable bits ---------- */
  6211. #define R_SETPSW_I() setpsw_i() /* void setpsw_i(void) */
  6212. #define R_CLRPSW_I() clrpsw_i() /* void clrpsw_i(void) */
  6213. #elif defined(__GNUC__)
  6214. /* ---------- Data Exchange ---------- */
  6215. #define R_EXCHANGE(x, y) __builtin_rx_xchg((int *)(x), (int *)(y)) /* void __builtin_rx_xchg (int *, int *) */
  6216. /* ---------- Special Instructions ---------- */
  6217. #define R_BRK() __asm("brk")
  6218. #define R_WAIT() __asm("wait")
  6219. #define R_NOP() __asm("nop")
  6220. /* It is useful to define the following commonly used functions.
  6221. * These are the same as CG source code for GNURX.
  6222. */
  6223. #if !defined(brk)
  6224. #define brk() asm("brk;")
  6225. #endif
  6226. #if !defined(wait)
  6227. #define wait() asm("wait;")
  6228. #endif
  6229. #if !defined(nop)
  6230. #define nop() asm("nop;")
  6231. #endif
  6232. /* ---------- Processor interrupt priority level (IPL) ---------- */
  6233. //#define R_SET_IPL(x) /* none */
  6234. //#define R_GET_IPL() /* none */
  6235. /* ---------- Processor status word (PSW) ---------- */
  6236. #define R_SET_PSW(x) __builtin_rx_mvtc(0x0, (int)(x)) /* void __builtin_rx_mvtc (int reg, int val) */
  6237. #define R_GET_PSW() __builtin_rx_mvfc(0x0) /* int __builtin_rx_mvfc (int) */
  6238. /* ---------- Floating-point status word (FPSW) ---------- */
  6239. #define R_SET_FPSW(x) __builtin_rx_mvtc(0x3, (int)(x)) /* void __builtin_rx_mvtc (int reg, int val) */
  6240. #define R_GET_FPSW() __builtin_rx_mvfc(0x3) /* int __builtin_rx_mvfc (int) */
  6241. /* ---------- User Stack Pointer (USP) ---------- */
  6242. #define R_SET_USP(x) __builtin_rx_mvtc(0x2, (int)(x)) /* void __builtin_rx_mvtc (int reg, int val) */
  6243. #define R_GET_USP() __builtin_rx_mvfc(0x2) /* int __builtin_rx_mvfc (int) */
  6244. /* ---------- Interrupt Stack Pointer (ISP) ---------- */
  6245. #define R_SET_ISP(x) __builtin_rx_mvtc(0xA, (int)(x)) /* void __builtin_rx_mvtc (int reg, int val) */
  6246. #define R_GET_ISP() __builtin_rx_mvfc(0xA) /* int __builtin_rx_mvfc (int) */
  6247. /* ---------- Fast Interrupt Vector Register (FINTV) ---------- */
  6248. #define R_SET_FINTV(x) __builtin_rx_mvtc(0xB, (int)(x)) /* void __builtin_rx_mvtc (int reg, int val) */
  6249. #define R_GET_FINTV() __builtin_rx_mvfc(0xB) /* int __builtin_rx_mvfc (int) */
  6250. /* ---------- Interrupt Table Register (INTB) ---------- */
  6251. #define R_SET_INTB(x) __builtin_rx_mvtc(0xC, (int)(x)) /* void __builtin_rx_mvtc (int reg, int val) */
  6252. #define R_GET_INTB() __builtin_rx_mvfc(0xC) /* int __builtin_rx_mvfc (int) */
  6253. /* ---------- Exception Table Register (EXTB) ---------- */
  6254. #define R_SET_EXTB(x) __builtin_rx_mvtc(0xD, (int)(x)) /* void __builtin_rx_mvtc (int reg, int val) */
  6255. #define R_GET_EXTB() __builtin_rx_mvfc(0xD) /* int __builtin_rx_mvfc (int) */
  6256. /* ---------- Control of the interrupt enable bits ---------- */
  6257. #define R_SETPSW_I() __builtin_rx_setpsw('I') /* void __builtin_rx_setpsw (int) */
  6258. #define R_CLRPSW_I() __builtin_rx_clrpsw('I') /* void __builtin_rx_setpsw (int) */
  6259. #elif defined(__ICCRX__)
  6260. /* ---------- Data Exchange ---------- */
  6261. #define R_EXCHANGE(x, y) xchg((signed long *)(x), (signed long *)(y)) /* void xchg(signed long *data1, signed long *data2) */
  6262. /* ---------- Special Instructions ---------- */
  6263. #define R_BRK() __break() /* void __break(void) */
  6264. #define R_WAIT() __wait_for_interrupt() /* void __wait_for_interrupt(void) */
  6265. #define R_NOP() __no_operation() /* void __no_operation(void) */
  6266. /* It is useful to define the following commonly used functions.
  6267. * TODO: Are these the same as CG source code for ICCRX?
  6268. */
  6269. #if !defined(brk)
  6270. #define brk() __break()
  6271. #endif
  6272. #if !defined(wait)
  6273. #define wait() __wait_for_interrupt()
  6274. #endif
  6275. #if !defined(nop)
  6276. #define nop() __no_operation()
  6277. #endif
  6278. /* ---------- Processor interrupt priority level (IPL) ---------- */
  6279. //#define R_SET_IPL(x) __set_interrupt_level((__ilevel_t)(x)) /* void __set_interrupt_level(__ilevel_t) */
  6280. //#define R_GET_IPL() __get_interrupt_level() /* __ilevel_t __get_interrupt_level(void) */
  6281. /* ---------- Processor status word (PSW) ---------- */
  6282. #define R_SET_PSW(x) set_psw((unsigned long)(x)) /* void set_psw(unsigned long data) */
  6283. #define R_GET_PSW() get_psw() /* unsigned long get_psw(void) */
  6284. /* ---------- Floating-point status word (FPSW) ---------- */
  6285. #define R_SET_FPSW(x) set_fpsw((unsigned long)(x)) /* void set_fpsw(unsigned long data) */
  6286. #define R_GET_FPSW() get_fpsw() /* unsigned long get_fpsw(void) */
  6287. /* ---------- User Stack Pointer (USP) ---------- */
  6288. #define R_SET_USP(x) __set_USP_register((unsigned long)(x)) /* void __set_USP_register(unsigned long) */
  6289. #define R_GET_USP() __get_USP_register() /* unsigned long __get_USP_register(void) */
  6290. /* ---------- Interrupt Stack Pointer (ISP) ---------- */
  6291. #define R_SET_ISP(x) __set_ISP_register((unsigned long)(x)) /* void __set_ISP_register(unsigned long) */
  6292. #define R_GET_ISP() __get_ISP_register() /* unsigned long __get_ISP_register(void) */
  6293. /* ---------- Fast Interrupt Vector Register (FINTV) ---------- */
  6294. #define R_SET_FINTV(x) __get_FINTV_register((__fast_int_f)(x)) /* void __set_FINTV_register(__fast_int_f) */
  6295. #define R_GET_FINTV() __get_FINTV_register() /* __fast_int_f __get_FINTV_register(void) */
  6296. /* ---------- Interrupt Table Register (INTB) ---------- */
  6297. #define R_SET_INTB(x) __set_interrupt_table((unsigned long)(x)) /* void __set_interrupt_table(unsigned long) */
  6298. #define R_GET_INTB() __get_interrupt_table() /* unsigned long __get_interrupt_table(void) */
  6299. /* ---------- Exception Table Register (EXTB) ---------- */
  6300. #define R_SET_EXTB(x) set_EXTB_register((unsigned long)(x))
  6301. void set_EXTB_register(unsigned long value);
  6302. R_PRAGMA_STATIC_INLINE(set_EXTB_register)
  6303. void set_EXTB_register(unsigned long value){asm("mvtc %0,EXTB" : : "r"(value));}
  6304. #define R_GET_EXTB() get_EXTB_register()
  6305. unsigned long get_EXTB_register(void);
  6306. R_PRAGMA_STATIC_INLINE(get_EXTB_register)
  6307. unsigned long get_EXTB_register(void){unsigned long value; asm("mvfc EXTB,%0" : "=r"(value)); return value;}
  6308. /* ---------- Control of the interrupt enable bits ---------- */
  6309. #define R_SETPSW_I() __enable_interrupt() /* void __enable_interrupt(void) */
  6310. #define R_CLRPSW_I() __disable_interrupt() /* void __disable_interrupt(void) */
  6311. #endif
  6312. #endif /* R_GCOMPILER_H */