diff options
author | Yu Kobayashi <yukoba@accelart.jp> | 2013-07-30 08:09:07 +0900 |
---|---|---|
committer | Yu Kobayashi <yukoba@accelart.jp> | 2013-07-30 08:09:07 +0900 |
commit | 571bd8b5d39dd24ef5ff3db295b48f67c3a99d8e (patch) | |
tree | cdbccb4bcee116872c69914387957da18ced13e5 /src | |
parent | dcc31f8f2c5ed9e8656a146922552b30a4f1ed64 (diff) |
Add bcopy implementation
Diffstat (limited to 'src')
-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); }, |