import{__exports as r}from"../../../_virtual/es.data-view.set-float16.mjs";import{__require as t}from"../internals/export.mjs";import{__require as e}from"../internals/function-uncurry-this.mjs";import{__require as i}from"../internals/a-data-view.mjs";import{__require as a}from"../internals/to-index.mjs";import{__require as n}from"../internals/math-log2.mjs";import{__require as o}from"../internals/math-round-ties-to-even.mjs";var s;function m(){if(s)return r;s=1;var m=t(),u=e(),f=i(),_=a(),p=n(),l=o(),v=Math.pow,j=1024,q=u(DataView.prototype.setUint16);return m({target:"DataView",proto:!0},{setFloat16:function(r,t){q(f(this),_(r),function(r){if(r!=r)return 32256;if(0===r)return(1/r==-1/0)<<15;var t=r<0;if(t&&(r=-r),r>=65520)return t<<15|31744;if(r<61005353927612305e-21)return t<<15|l(16777216*r);var e=0|p(r);if(-15===e)return t<<15|j;var i=l((r*v(2,-e)-1)*j);return i===j?t<<15|e+16<<10:t<<15|e+15<<10|i}(+t),arguments.length>2&&arguments[2])}}),r}export{m as __require};