mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 10:03:59 +02:00
* pack.c: fix q and Q for big endian environments which have no
8 bytes integer type. (pack_pack): use rb_big_pack. (pack_unpack): use rb_big_unpack. * include/ruby/intern.h (rb_big_pack): declared. (rb_big_unpack): ditto. * bignum.c (rb_big_pack): new function. (rb_big_unpack): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
069d271eb5
commit
8c9024763f
4 changed files with 140 additions and 23 deletions
|
@ -103,6 +103,8 @@ unsigned LONG_LONG rb_big2ull(VALUE);
|
|||
#endif /* HAVE_LONG_LONG */
|
||||
void rb_quad_pack(char*,VALUE);
|
||||
VALUE rb_quad_unpack(const char*,int);
|
||||
void rb_big_pack(VALUE val, unsigned long *buf, long num_longs);
|
||||
VALUE rb_big_unpack(unsigned long *buf, long num_longs);
|
||||
int rb_uv_to_utf8(char[6],unsigned long);
|
||||
VALUE rb_dbl2big(double);
|
||||
double rb_big2dbl(VALUE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue