@JTranscInline @JTranscMethodBody(target = "js", cond = "hasSIMD", value = "return SIMD.Float32x4.extractLane(this.simd, 2);") @JTranscCallSiteBodyList({ @JTranscCallSiteBody(target = "dart", value = "#@.z"), @JTranscCallSiteBody(target = "cpp", value = "#@.z"), }) @JTranscSync final public float getZ() { return this.z; }
@JTranscInline @JTranscMethodBody(target = "cpp", value = "__JTRANSC_byte_memTMP = (int8_t *)GET_OBJECT(JA_B, p0)->getOffsetPtr(0); {% SFIELD com.jtransc.mem.FastMemByte:memTMP %} = p0;") @JTranscSync static public void selectTMP(byte[] mem) { memTMP = mem; }
@JTranscMethodBody(target = "js", cond = "hasSIMD", value = "this.simd = p0.simd;") @JTranscCallSiteBodyList({ @JTranscCallSiteBody(target = "dart", value = "#@ = #0;"), @JTranscCallSiteBody(target = "cpp", value = "#@ = #0;"), }) @JTranscSync final public void setTo(MutableFloat32x4 l) { this.x = l.x; this.y = l.y; this.z = l.z; this.w = l.w; }
@JTranscMethodBody(target = "js", value = "return (p0 < p1) ? -1 : ((p0 > p1) ? 1 : 0);") @JTranscMethodBody(target = "cpp", value = "return (p0 < p1) ? -1 : ((p0 > p1) ? 1 : 0);") @JTranscMethodBody(target = "as3", value = "return (p0 < p1) ? -1 : ((p0 > p1) ? 1 : 0);") @JTranscSync public static int compare(int l, int r) { return (l < r) ? -1 : ((l > r) ? 1 : 0); }
@JTranscInline @JTranscSync public static byte int3(int x) { return (byte) (x >> 24); }
@JTranscInline @JTranscMethodBody(target = "cpp", value = "return __JTRANSC_byte_memSRC[p0];") @JTranscSync static public byte getSRC(int index) { return memSRC[index]; }
@JTranscMethodBody(target = "js", cond = "hasSIMD", value = "return SIMD.Float32x4.extractLane(p0, 2);") @JTranscCallSiteBodyList({ @JTranscCallSiteBody(target = "dart", value = "((#0).z)"), @JTranscCallSiteBody(target = "cpp", value = "((#0).z)"), }) @JTranscSync static public float getZ(Float32x4 l) { return l.z; }
@JTranscInline @JTranscMethodBody(target = "js", cond = "hasSIMD", value = "return SIMD.Float32x4.extractLane(this.simd, 3);") @JTranscCallSiteBodyList({ @JTranscCallSiteBody(target = "dart", value = "#@.w"), @JTranscCallSiteBody(target = "cpp", value = "#@.w"), }) @JTranscSync final public float getW() { return this.w; }
@JTranscMethodBody(target = "d", value = "return true;") @JTranscSync public static boolean isD() { return FALSE; }
@JTranscInline @JTranscSync public static byte int0(int x) { return (byte) (x >> 0); }
@JTranscInline @JTranscMethodBody(target = "cpp", value = "return __JTRANSC_byte_memDST[p0];") @JTranscSync static public byte getDST(int index) { return memDST[index]; }
@JTranscMethodBody(target = "js", cond = "hasSIMD", value = "return SIMD.Float32x4.extractLane(p0, 3);") @JTranscCallSiteBodyList({ @JTranscCallSiteBody(target = "dart", value = "((#0).w)"), @JTranscCallSiteBody(target = "cpp", value = "((#0).w)"), }) @JTranscSync static public float getW(Float32x4 l) { return l.w; }
@JTranscMethodBody(target = "js", value = "return N.isLittleEndian;") @JTranscSync public static boolean isLittleEndian() { // @TODO: Check! return true; }
@JTranscInline @JTranscMethodBody(target = "cpp", value = "__JTRANSC_int_memSRC = (int32_t *)GET_OBJECT(JA_I, p0)->getOffsetPtr(0); {% SFIELD com.jtransc.mem.FastMemInt:memSRC %} = p0;") @JTranscSync static public void selectSRC(int[] mem) { FastMemInt.memSRC = mem; }
@JTranscMethodBody(target = "js", cond = "hasSIMD", value = "this.simd = SIMD.Float32x4(+p0, +p1, +p2, +p3);") @JTranscCallSiteBodyList({ @JTranscCallSiteBody(target = "dart", value = "#@ = new Float32x4(#0, #1, #2, #3);"), @JTranscCallSiteBody(target = "cpp", value = "Float32x4_i(#0, #0, #0, #0)"), }) @JTranscSync final public void setTo(float x, float y, float z, float w) { this.x = x; this.y = y; this.z = z; this.w = w; }
@JTranscInline @JTranscMethodBody(target = "cpp", value = "__JTRANSC_byte_memDST = (int8_t *)GET_OBJECT(JA_B, p0)->getOffsetPtr(0); {% SFIELD com.jtransc.mem.FastMemByte:memDST %} = p0;") @JTranscSync static public void selectDST(byte[] mem) { memDST = mem; }
@JTranscMethodBody(target = "js", cond = "hasSIMD", value = "return SIMD.Float32x4.extractLane(p0, 1);") @JTranscCallSiteBodyList({ @JTranscCallSiteBody(target = "dart", value = "((#0).y)"), @JTranscCallSiteBody(target = "cpp", value = "((#0).y)"), }) @JTranscSync static public float getY(Float32x4 l) { return l.y; }
@JTranscInline @JTranscMethodBody(target = "cpp", value = "__JTRANSC_byte_memDST[p0] = p1;") @JTranscSync static public void setDST(int index, byte value) { memDST[index] = (byte) value; }
@JTranscInline @JTranscMethodBody(target = "cpp", value = "__JTRANSC_int_memDST = (int32_t *)GET_OBJECT(JA_I, p0)->getOffsetPtr(0); {% SFIELD com.jtransc.mem.FastMemInt:memDST %} = p0;") @JTranscSync static public void selectDST(int[] mem) { FastMemInt.memDST = mem; }
@JTranscInline @JTranscMethodBody(target = "cpp", value = "__JTRANSC_int_memTMP[p0] = p1;") @JTranscSync static public void setTMP(int index, int value) { FastMemInt.memTMP[index] = value; }