首页 \ 问答 \ 我可以在x86 C程序中模拟ARM NEON吗?(Can I emulate ARM NEON in an x86 C program?)

我可以在x86 C程序中模拟ARM NEON吗?(Can I emulate ARM NEON in an x86 C program?)

我正在开发一些数值软件,其性能在很大程度上取决于数值精度(即浮点数,双精度等)。 我注意到ARM NEON并不完全符合IEEE754浮点标准。 有没有办法在x86 CPU上模拟NEON的浮点精度? 例如,模拟NEON SIMD浮点运算的库。


I am developing some numerical software, whose performance, depends a lot on the numerical accuracy (i.e., floats, double etc.). I have noticed that the ARM NEON does not fully comply with the IEEE754 floating point standard. Is there a way to emulate NEON's floating point precision, on an x86 CPU ? For example a library that emulates the NEON SIMD floating point operations.


原文:https://stackoverflow.com/questions/29247581
更新时间:2024-01-02 12:01

最满意答案

尝试声明一个这样的变量:

$scope.switch = {showHome : true}

然后在html中使用它,如下所示:

<div ng-show = "switch.showHome" >

Try declaring a variable like this:

$scope.switch = {showHome : true}

and then use it in the html like this:

<div ng-show = "switch.showHome" >

相关问答

更多
  • 这是你的异步调用。 更换 if (status == google.maps.places.PlacesServiceStatus.OK) { $scope.location = place; return console.log($scope.location); } 同 $scope.$apply(function(){ if (status == google.maps.places.PlacesServiceStatus.OK) { $sc ...
  • 您可以使用setTimeOut函数延迟函数的执行,直到DOM完成渲染。 module1.directive('reposition', [function() { return { restrict: 'E', replace: true, link: function(scope, element, attrs) { var holder = angular.element( document. ...
  • 尝试声明一个这样的变量: $scope.switch = {showHome : true} 然后在html中使用它,如下所示:
    Try declaring a variable like this: $scope.switch = {showHome : true} and then use it in the html like this:
  • NG-秀 ngShow指令根据提供给ngShow属性的表达式显示或隐藏给定的HTML元素。 通过删除或添加.ng-hide CSS类来显示或隐藏元素。 ( 参考 ) NG-如果 ngIf指令基于{expression}删除或重新创建DOM树的一部分。 如果分配给ngIf的表达式求值为false值,则从DOM中删除该元素,否则将元素的克隆重新插入DOM。 ( 参考 ) 注意:当ng-if删除元素时,它还会删除该元素的关联范围,并在条件变为true时重新创建它。 优点 我更喜欢使用ng-if特别是当元素内部的观 ...
  • Cosmin是对的。 ng-if创建一个新的子范围。 你必须使用$parent来使用在ng-if使用的父变量 改变你ng-click到: ng-click="$parent.rows = !rows" 工作Plunker 要显示未找到数据 ,请在您的表中使用其他机构
    你去( http://jsfiddle.net/66d0t7k0/1/ ) 将您的单击处理程序放在链接函数中,并将showMe公开给scope app.directive('example', function () { return { restrict: 'E', template: '

    Text to show

    ', ...
  • 以root作为目标,在home控制器中将其设为false ,在other控制器中为true。 app.controller("homecontroller", ["$scope", "$location", "$route","$rootScope", function($scope, $location, $route,$rootScope) { $rootScope.home = false; }]); app.controller("othercontroller", ["$sco ...
  • ng-if创建一个新的子范围 如果拇指规则是:在ng中监视模型: 不要将范围用作模型,例如 ng-if='showStuff' //here my scope is model **INCORRECT** ng-if='someObject.showStuff' // ** CORRECT ** 在ng-model中使用对象属性,然后即使ng-if创建新的子范围,父范围也将具有更改。 另一方面,ng-show不会创建它在父范围内工作的新子范围。 在你的情况下请改变 $scope.item_gallery ...
  • 在这种情况下你可能需要设置自己的旗帜。 例如: app.controller('programController', function($scope, progService) { $scope.programDisplay = false; progService.getProgram().then(function(res){ $scope.program = res.data; angular.element(document).ready(fun ...
  • ng-if创建一个新的子范围。 ng-show没有。 我猜测$ scope.comment是在ng-if中定义的。 如果您不想使用ng-show,有时使用对象而不是简单变量将起作用。 例如: $scope.comment= { c: "" }; alert($scope.comment.c);