aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/library.js b/src/library.js
index 8bce7a14..185b1187 100644
--- a/src/library.js
+++ b/src/library.js
@@ -4329,14 +4329,18 @@ LibraryManager.library = {
}
},
+ strcpy__asm: 'true',
+ strcpy__sig: 'iii',
strcpy: function(pdest, psrc) {
+ pdest = pdest|0; psrc = psrc|0;
var i = 0;
do {
- {{{ makeCopyValues('pdest+i', 'psrc+i', 1, 'i8', null, 1) }}};
- i ++;
- } while ({{{ makeGetValue('psrc', 'i-1', 'i8') }}} != 0);
- return pdest;
+ {{{ makeCopyValues('(pdest+i)|0', '(psrc+i)|0', 1, 'i8', null, 1) }}};
+ i = (i+1)|0;
+ } while (({{{ makeGetValue('psrc', 'i-1', 'i8') }}})|0 != 0);
+ return pdest|0;
},
+
stpcpy: function(pdest, psrc) {
var i = 0;
do {