Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1029132 // twoIntsToLong - big-endian

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (33L/1K).

static long twoIntsToLong(int a, int b) {
  ret (((long) a) << 32) | (((long) b) & 0xFFFFFFFFL);
}

Author comment

Began life as a copy of #1028504

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, elmgxqgtpvxh, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029132
Snippet name: twoIntsToLong - big-endian
Eternal ID of this version: #1029132/3
Text MD5: 4b20827d57ddcc960ea084caa459ee31
Transpilation MD5: 8355b0f7e239c7953e11cd2342dcba5a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-07-29 21:57:20
Source code size: 100 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 281 / 388
Version history: 2 change(s)
Referenced in: [show references]