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

15
LINES

< > BotCompany Repo | #1001540 - stdcompare function (standard compare) - theoretical synonym of cmp

JavaX fragment (include)

static int stdcompare(Number a, Number b) {
  ret cmp(a, b);
}

static int stdcompare(S a, S b) {
  ret cmp(a, b);
}

static int stdcompare(long a, long b) {
  ret a < b ? -1 : a > b ? 1 : 0;
}

static int stdcompare(O a, O b) {
  ret cmp(a, b);
}

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

Comments [hide]

ID Author/Program Comment Date
1206 stefan TODO: merge with "cmp" 2016-01-23 20:21:16

add comment

Snippet ID: #1001540
Snippet name: stdcompare function (standard compare) - theoretical synonym of cmp
Eternal ID of this version: #1001540/1
Text MD5: e1b7ec4690db33cf9e6c75670693ede8
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-13 04:02:36
Source code size: 263 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 764 / 1372
Referenced in: [show references]

Formerly at http://tinybrain.de/1001540 & http://1001540.tinybrain.de