Skip to content

Commit

Permalink
Merge pull request #3619 from sunfishcode/incoming
Browse files Browse the repository at this point in the history
SIMD.js API updates
  • Loading branch information
kripken committed Jul 14, 2015
2 parents 8288b82 + db2ca52 commit 880a3cc
Show file tree
Hide file tree
Showing 9 changed files with 4,432 additions and 3,348 deletions.
8 changes: 4 additions & 4 deletions emscripten.py
Expand Up @@ -450,16 +450,16 @@ def make_emulated_param(i):
asm_setup += '\nvar debug_table_' + sig + ' = ' + json.dumps(debug_tables[sig]) + ';'

maths = ['Math.' + func for func in ['floor', 'abs', 'sqrt', 'pow', 'cos', 'sin', 'tan', 'acos', 'asin', 'atan', 'atan2', 'exp', 'log', 'ceil', 'imul', 'min', 'clz32']]
simdfloattypes = ['float32x4']
simdinttypes = ['int32x4']
simdfloattypes = ['Float32x4']
simdinttypes = ['Int32x4']
simdtypes = simdfloattypes + simdinttypes
simdfuncs = ['check', 'add', 'sub', 'neg', 'mul',
'equal', 'lessThan', 'greaterThan',
'notEqual', 'lessThanOrEqual', 'greaterThanOrEqual',
'select', 'and', 'or', 'xor', 'not',
'splat', 'swizzle', 'shuffle',
'withX', 'withY', 'withZ', 'withW',
'load', 'store', 'loadX', 'storeX', 'loadXY', 'storeXY', 'loadXYZ', 'storeXYZ']
'load', 'store', 'load1', 'store1', 'load2', 'store2', 'load3', 'store3',
'extractLane', 'replaceLane']
simdfloatfuncs = simdfuncs + ['div', 'min', 'max', 'minNum', 'maxNum', 'sqrt',
'abs', 'fromInt32x4', 'fromInt32x4Bits',
'reciprocalApproximation', 'reciprocalSqrtApproximation'];
Expand Down

0 comments on commit 880a3cc

Please sign in to comment.