Karim Belabas on Wed, 05 Jul 2023 21:20:36 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: How to do t_INT bit operations?
|
- To: hermann@stamm-wilbrandt.de
- Subject: Re: How to do t_INT bit operations?
- From: Karim Belabas <Karim.Belabas@u-bordeaux.fr>
- Date: Wed, 5 Jul 2023 21:15:54 +0200
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1688584544; c=relaxed/relaxed; bh=vMfghydRkmN/OSD5hDke/AS6MMhK/m8O7T5fk2SrlcQ=; h=Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:References: MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=U3+yoNBZZBDqqT+Vj0J+nnogBn8KWWClY98sKkvPMqpxo/OxKVQHRBfbKBqScimfAXFP17rtAby/vjOIRTear62/A/J1bqs2JkIk3Qxn4eQ/XY+76aqdTi8SnXXCL4IAkRf4FwjQdrfpBnC0zlrtqGcZ6wTJuhQSKvKogB0lZCn50ZchNp1sJTiQR2rRhT4B/TJWjYBxAqAqbp7SF1ImGo7qJ2tno5tNt2cu4GfDgVGm6HGumSoffzriYXK+e2tu0WSVH1tdVL3TDNzVJRRh1BljpJqxdhzHGMJUDDplHgpNZRMCxk4KyhlhC/50LrcRD2rCW5jUdrIkU740HA2W8SspMFU1GJkMVzh5Ya69pcEAiEMm3pWssR25LzuaDo+b1uwAiexSBOBznyLlPAG31NgcKInAdPxodlaoFq1mx1OfMR+zWOTKEUeR8WmuC9hqGroZjgapMQQ06CnD4r8VbRgV4c7RAiBiI1B786ZedxFR21fNDWQcuF1TUvvOx1mcXBL6UDSDYyhuIh4B1A9U0g+7/gGi6nAilvaeV59wu6B6PFIixpXqvuaw8jU1fZn6d9ZADhF3GJGigtFPw6dV+lKvyGy1JKh6MkfuKOEX3eHdkaODrTnrL1v0iNWZ//XEsyvGSfKwIdkgkToA2DVGePHyZy72fUZN1FAch1LqNrA=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1688584544; cv=none; b=e3T/yxOAYjgIbLelhf7ta3Mn6lgKSX6MUhXJqvtrJ/QegWph3xwONgpKyiOTcTO8xSBuvSFoFpexYNAT/wW/7EoUlXPKTnXFBXmYnUbmCTWorpLU3CNomv37w6lNReqnHe8gL3fcPSDMSRKO3Vd0DvDVQ+qMA2o3B2uK0Q9qLY7RMgD/j47iIzOMooeSLTK3o2xTBt3zYSO5ThOlpqmNRaeXDJTJT1v4AmbybIVJVVOSqGdKXFKkL2mhm2eJofwufoTdh8+F1jP3U5CczDqWqvpzuu95X8Z4MW8Bhm1+c/8NFkt6i661XEgD+bGZVQnpu23KpzZzKFHnV46j72M/2xz/qKu6kizbFLTUChVPjo99d+xPhUheH1U2KxLaHxqSCpRxqA8Fxmjywhn+PXMmAsOUIikofaN4n8OtfUpJzIocVvp2RZv07laB2doVpAqmWWNHjEbRqgvIfbQwxEppSSXsazpcu8nMNU6EcP9Ryl5ae+fk1h06qbpaGZLQTYNF1C/W8fMj4+r1QQcmVMGpA+QJ/1dy6SkkBM/B3jjiZCST86wXgoLYF7dpaRmf1CEvr7R9YiTEwtiErYjFyjjL3t8bvlaMtfj/JfDOgiwr+CAhjcZQEbUa2Xt1bOimieB4tsNOkyiJHiYXIsuW+2l0liMHkKwE30IJM08buWQOOFc=
- Authentication-results: smail; dmarc=none header.from=u-bordeaux.fr
- Authentication-results: smail; arc=none
- Cc: pari-users@pari.math.u-bordeaux.fr
- Delivery-date: Wed, 05 Jul 2023 21:20:36 +0200
- In-reply-to: <60edf47dd3c5627f813207e44b17c85c@stamm-wilbrandt.de>
- Mail-followup-to: hermann@stamm-wilbrandt.de, pari-users@pari.math.u-bordeaux.fr
- References: <60edf47dd3c5627f813207e44b17c85c@stamm-wilbrandt.de>
* hermann@stamm-wilbrandt.de [2023-07-05 20:52]:
> I found bit shift operators in users.pdf:
[...]
> Is that the way to do t_INT bit operations in GP?
> Are there alternatives more like the C bit operators?
? bit<TAB>
bitand bitnegimply bitprecision bitxor
bitneg bitor bittest
You may want to check those functions (except bitprecision)
The reference cards are also a good place to look for functions (here in
refcard.pdf, first page, section on "Operators")
Cheers,
K.B.
--
Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/