diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-29 16:38:40 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-29 16:38:40 -0700 |
commit | 303c4f49e48524bf9e5e76a10d7415cfdb8f45ba (patch) | |
tree | cdbccb4bcee116872c69914387957da18ced13e5 | |
parent | dcc31f8f2c5ed9e8656a146922552b30a4f1ed64 (diff) | |
parent | 571bd8b5d39dd24ef5ff3db295b48f67c3a99d8e (diff) |
Merge pull request #1441 from yukoba/bcopy
Add bcopy implementation
-rw-r--r-- | src/library.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js index 53ac7e86..59f2f6c6 100644 --- a/src/library.js +++ b/src/library.js @@ -4459,6 +4459,13 @@ LibraryManager.library = { llvm_memmove_p0i8_p0i8_i32: 'memmove', llvm_memmove_p0i8_p0i8_i64: 'memmove', + bcopy__deps: ['memmove'], + bcopy: function(src, dest, num) { + // void bcopy(const void *s1, void *s2, size_t n); + // http://pubs.opengroup.org/onlinepubs/009695399/functions/bcopy.html + _memmove(dest, src, num); + }, + memset__inline: function(ptr, value, num, align) { return makeSetValues(ptr, 0, value, 'null', num, align); }, |