1. 21 Aug, 2021 3 commits
    • Yukihiro "Matz" Matsumoto's avatar
      boxing_word.h: embed `mrb_float` in `mrb_value` if possible. · 36632f55
      Yukihiro "Matz" Matsumoto authored
      Embedding reduce memory consumption, sacrificing precision. It clips least
      significant 2 bits from `mrb_float`, so if you need to keep float precision,
      define `MRB_USE_FLOAT_FULL_PRECISION`.
      
      `MRB_WORD_BOXING` and `MRB_INT64`:
      
      `mrb_float` (`double`) is embedded in `mrb_value` clipped last 2 bits.
      
      `MRB_WORD_BOXING` and `MRB_INT64` and `MRB_USE_FLOAT_FULL_PRECISION`:
      
      `mrb_float` is allocated in the heaps wrapped by `struct RFloat`.
      
      `MRB_WORD_BOXING` and `MRB_INT32` and `MRB_USE_FLOAT32`:
      
      `mrb_float` (`float`) is embedded in `mrb_value` clipped last 2 bits.
      In addition, to reserve bit space in the `mrb_value`, maximum inline
      symbol length become 4 (instead of 5) in the configuration.
      
      `MRB_WORD_BOXING` and `MRB_INT32`:
      
      Assume `MRB_USE_FLOAT_FULL_PRECISION` and allocate Float values in heap.
      36632f55
    • Yukihiro "Matz" Matsumoto's avatar
      4ea80913
    • Dante Catalfamo's avatar
      7f290beb
  2. 20 Aug, 2021 2 commits
  3. 19 Aug, 2021 4 commits
  4. 18 Aug, 2021 2 commits
  5. 17 Aug, 2021 4 commits
  6. 16 Aug, 2021 1 commit
  7. 14 Aug, 2021 4 commits
  8. 13 Aug, 2021 8 commits
  9. 12 Aug, 2021 2 commits
  10. 11 Aug, 2021 5 commits
  11. 10 Aug, 2021 2 commits
  12. 09 Aug, 2021 3 commits
    • Yukihiro "Matz" Matsumoto's avatar
      Merge pull request #5524 from dearblue/gem-headers · 39092811
      Yukihiro "Matz" Matsumoto authored
      Expose all header files of the gems for small compilation
      39092811
    • dearblue's avatar
      Expose all header files of the gems for small compilation · 4c25ace8
      dearblue authored
      After building mruby, if the user compiles and links to `libmruby.a`, expose the included directory of the captured gems.
      This is a change to the `<build-dir> /lib/libmruby.flags.mak` file and will result in being added to `bin/mruby-config --cflags`.
      This eliminates the need for the user to look up the path and add the compiler flag if the user wants to take advantage of her gems publishing features.
      
      In the main build with `rake CONFIG=...`, there is no problem because it can only be seen from the gems that depends directly and indirectly as before.
      However, when compiling independently by the user using `bin/mruby-config`, a header file name collision may occur if a unique header directory is added.
      4c25ace8
    • Yukihiro "Matz" Matsumoto's avatar
      Merge pull request #5525 from jbampton/pre-commit-autoupdate · e8dbf1db
      Yukihiro "Matz" Matsumoto authored
      pre-commit autoupdate
      e8dbf1db