projects
/
platform
/
upstream
/
nghttp2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Apply PIE to nghttpx
[platform/upstream/nghttp2.git]
/
third-party
/
mruby
/
mrbgems
/
mruby-numeric-ext
/
mrblib
/
numeric_ext.rb
1
module Integral
2
def div(other)
3
self.divmod(other)[0]
4
end
5
6
def zero?
7
self == 0
8
end
9
10
def nonzero?
11
if self == 0
12
nil
13
else
14
self
15
end
16
end
17
18
def positive?
19
self > 0
20
end
21
22
def negative?
23
self < 0
24
end
25
end