zoukankan      html  css  js  c++  java
  • SIMD.fromInt32x4Bits (SIMD) – JavaScript 中文开发手册

    [
  •   JavaScript 中文开发手册

    SIMD.fromInt32x4Bits (SIMD) - JavaScript 中文开发手册

    SIMD.js已经从TC39中取消了积极的开发,并从第三阶段中删除了。它不再被网页浏览器所追求。暴露在 web 上的SIMD 操作在 WebAssembly 中正处于积极的发展之中, 其操作基于 SIMD. js 操作。

    静态SIMD.%type%.fromInt32x4Bits()方法使用Int32x4的按位副本创建新的SIMD数据类型。

    语法

    SIMD.Float64x2.fromInt32x4Bits(t)
    SIMD.Float32x4.fromInt32x4Bits(t)
    
    SIMD.Int16x8.fromInt32x4Bits(t)
    SIMD.Int8x16.fromInt32x4Bits(t)
    
    SIMD.Uint32x4.fromInt32x4Bits(t)
    SIMD.Uint16x8.fromInt32x4Bits(t)
    SIMD.Uint8x16.fromInt32x4Bits(t)

    参数

    t从(按位)转换的Int32x4 SIMD类型。

    返回值

    一个新的SIMD数据类型,从Int32x4按位拷贝。

    例子

    SIMD.Float64x2.fromInt32x4Bits

    var t = SIMD.Int32x4(0, 1072693248, 0, 1073741824);
    SIMD.Float64x2.fromInt32x4Bits(t);
    // Float64x2[1, 2]

    SIMD.Float32x4.fromInt32x4Bits

    var t = SIMD.Int32x4(1065353216, 1073741824, 1077936128, 1082130432);
    SIMD.Float32x4.fromInt32x4Bits(t);
    // Float32x4[1,2,3,4]

    SIMD.Int16x8.fromInt32x4Bits

    var t = SIMD.Int32x4(1, 2, 3, 4);
    SIMD.Int16x8.fromInt32x4Bits(t);
    // Int16x8[1, 0, 2, 0, 3, 0, 4, 0]

    SIMD.Int8x16.fromInt32x4Bits

    var t = SIMD.Int32x4(1, 2, 3, 4);
    SIMD.Int8x16.fromInt32x4Bits(t);
    // Int8x16[1, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0]

    规范

    Specification

    Status

    Comment

    SIMDThe definition of 'SIMDConstructor.fromTIMDBits' in that specification.

    Draft

    Initial definition.

    浏览器兼容性

    Feature

    Chrome

    Firefox (Gecko)

    Internet Explorer

    Opera

    Safari

    Basic support

    No support

    Nightly build

    No support

    No support

    No support

    Feature

    Android

    Chrome for Android

    Firefox Mobile (Gecko)

    IE Mobile

    Opera Mobile

    Safari Mobile

    Basic support

    No support

    No support

    Nightly build

    No support

    No support

    No support

  •   JavaScript 中文开发手册
    ]
    转载请保留页面地址:https://www.breakyizhan.com/javascript/33577.html
  • 相关阅读:
    蓝绿发布、灰度发布和滚动发布
    centos网卡配置修改
    服务器安装centos8提示显示器不支持输出的分辨率
    Linux软件包管理
    Redis (error) NOAUTH Authentication required.解决方法
    mysql5.7.35数据库迁移
    MySQL5.7的参数优化
    mysql 安装完以后没有mysql服务
    Promise结合setTimeout--promise练习题(2)
    基础题--promise练习题(1)
  • 原文地址:https://www.cnblogs.com/breakyizhan/p/13252760.html
Copyright © 2011-2022 走看看