Ruby
3.4.0dev (2024-11-05 revision 348a53415339076afc4a02fcd09f3ae36e9c4c61)
include
ruby
internal
arithmetic
fixnum.h
Go to the documentation of this file.
1
#ifndef RBIMPL_ARITHMETIC_FIXNUM_H
/*-*-C++-*-vi:se ft=cpp:*/
2
#define RBIMPL_ARITHMETIC_FIXNUM_H
23
#include "ruby/backward/2/limits.h"
24
25
#define FIXABLE RB_FIXABLE
26
#define FIXNUM_MAX RUBY_FIXNUM_MAX
27
#define FIXNUM_MIN RUBY_FIXNUM_MIN
28
#define NEGFIXABLE RB_NEGFIXABLE
29
#define POSFIXABLE RB_POSFIXABLE
43
#define RB_POSFIXABLE(_) ((_) < RUBY_FIXNUM_MAX + 1)
44
49
#define RB_NEGFIXABLE(_) ((_) >= RUBY_FIXNUM_MIN)
50
52
#define RB_FIXABLE(_) (RB_POSFIXABLE(_) && RB_NEGFIXABLE(_))
53
55
#define RUBY_FIXNUM_MAX (LONG_MAX / 2)
56
58
#define RUBY_FIXNUM_MIN (LONG_MIN / 2)
59
60
#endif
/* RBIMPL_ARITHMETIC_FIXNUM_H */
Generated by
1.9.1