Home
last modified time | relevance | path

Searched refs:float (Results 1 – 25 of 391) sorted by relevance

12345678910>>...16

/frameworks/rs/driver/runtime/arch/
Dx86_sse2.ll4 declare <4 x float> @llvm.x86.sse.min.ps(<4 x float>, <4 x float>)
5 declare <4 x float> @llvm.x86.sse.max.ps(<4 x float>, <4 x float>)
6 declare <4 x float> @llvm.x86.sse.min.ss(<4 x float>, <4 x float>)
7 declare <4 x float> @llvm.x86.sse.max.ss(<4 x float>, <4 x float>)
9 declare float @llvm.sqrt.f32(float) nounwind readnone
10 declare <2 x float> @llvm.sqrt.v2f32(<2 x float>) nounwind readnone
11 declare <3 x float> @llvm.sqrt.v3f32(<3 x float>) nounwind readnone
12 declare <4 x float> @llvm.sqrt.v4f32(<4 x float>) nounwind readnone
14 declare float @llvm.exp.f32(float) nounwind readonly
15 declare float @llvm.pow.f32(float, float) nounwind readonly
[all …]
Dx86_sse3.ll5 declare <4 x float> @llvm.x86.sse3.hadd.ps(<4 x float>, <4 x float>) nounwind readnone
6 declare float @llvm.sqrt.f32(float) nounwind readnone
8 define float @_Z3dotDv4_fS_(<4 x float> %lhs, <4 x float> %rhs) nounwind readnone {
9 %1 = fmul <4 x float> %lhs, %rhs
10 …%2 = tail call <4 x float> @llvm.x86.sse3.hadd.ps(<4 x float> %1, <4 x float> %1) nounwind readnone
11 …%3 = tail call <4 x float> @llvm.x86.sse3.hadd.ps(<4 x float> %2, <4 x float> %2) nounwind readnone
12 %4 = extractelement <4 x float> %3, i32 0
13 ret float %4
16 define float @_Z3dotDv3_fS_(<3 x float> %lhs, <3 x float> %rhs) nounwind readnone {
17 %1 = fmul <3 x float> %lhs, %rhs
[all …]
Dasimd.ll8 declare <2 x float> @llvm.aarch64.neon.fmax.v2f32(<2 x float>, <2 x float>) nounwind readnone
9 declare <4 x float> @llvm.aarch64.neon.fmax.v4f32(<4 x float>, <4 x float>) nounwind readnone
17 declare <2 x float> @llvm.aarch64.neon.fmin.v2f32(<2 x float>, <2 x float>) nounwind readnone
18 declare <4 x float> @llvm.aarch64.neon.fmin.v4f32(<4 x float>, <4 x float>) nounwind readnone
34 declare <2 x float> @llvm.aarch64.neon.frecpe.v2f32(<2 x float>) nounwind readnone
35 declare <4 x float> @llvm.aarch64.neon.frecpe.v4f32(<4 x float>) nounwind readnone
37 declare <2 x float> @llvm.aarch64.neon.frsqrte.v2f32(<2 x float>) nounwind readnone
38 declare <4 x float> @llvm.aarch64.neon.frsqrte.v4f32(<4 x float>) nounwind readnone
40 declare <2 x float> @llvm.aarch64.neon.frecps.v2f32(<2 x float>, <2 x float>) nounwind readnone
41 declare <4 x float> @llvm.aarch64.neon.frecps.v4f32(<4 x float>, <4 x float>) nounwind readnone
[all …]
Dneon.ll8 declare <2 x float> @llvm.arm.neon.vmaxs.v2f32(<2 x float>, <2 x float>) nounwind readnone
9 declare <4 x float> @llvm.arm.neon.vmaxs.v4f32(<4 x float>, <4 x float>) nounwind readnone
17 declare <2 x float> @llvm.arm.neon.vmins.v2f32(<2 x float>, <2 x float>) nounwind readnone
18 declare <4 x float> @llvm.arm.neon.vmins.v4f32(<4 x float>, <4 x float>) nounwind readnone
38 declare <2 x float> @llvm.arm.neon.vrecpe.v2f32(<2 x float>) nounwind readnone
39 declare <4 x float> @llvm.arm.neon.vrecpe.v4f32(<4 x float>) nounwind readnone
41 declare <2 x float> @llvm.arm.neon.vrsqrte.v2f32(<2 x float>) nounwind readnone
42 declare <4 x float> @llvm.arm.neon.vrsqrte.v4f32(<4 x float>) nounwind readnone
44 declare <2 x float> @llvm.arm.neon.vrecps.v2f32(<2 x float>, <2 x float>) nounwind readnone
45 declare <4 x float> @llvm.arm.neon.vrecps.v4f32(<4 x float>, <4 x float>) nounwind readnone
[all …]
/frameworks/rs/driver/runtime/ll64/
Dmath.ll4 declare float @llvm.sqrt.f32(float)
5 declare float @llvm.pow.f32(float, float)
6 declare float @llvm.fabs.f32(float)
7 declare <2 x float> @llvm.fabs.v2f32(<2 x float>)
8 declare <3 x float> @llvm.fabs.v3f32(<3 x float>)
9 declare <4 x float> @llvm.fabs.v4f32(<4 x float>)
11 define float @_Z4sqrtf(float %v) nounwind readnone alwaysinline {
12 %1 = tail call float @llvm.sqrt.f32(float %v)
13 ret float %1
16 define float @_Z3powff(float %v1, float %v2) nounwind readnone alwaysinline {
[all …]
/frameworks/rs/driver/runtime/ll32/
Dmath.ll4 declare float @llvm.sqrt.f32(float)
5 declare float @llvm.pow.f32(float, float)
6 declare float @llvm.fabs.f32(float)
7 declare <2 x float> @llvm.fabs.v2f32(<2 x float>)
8 declare <3 x float> @llvm.fabs.v3f32(<3 x float>)
9 declare <4 x float> @llvm.fabs.v4f32(<4 x float>)
11 define float @_Z4sqrtf(float %v) nounwind readnone alwaysinline {
12 %1 = tail call float @llvm.sqrt.f32(float %v)
13 ret float %1
16 define float @_Z3powff(float %v1, float %v2) nounwind readnone alwaysinline {
[all …]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dcamera_response.rsh24 // Quantize a float in [0,1] using an integer in [0,kLUTLength-1].
27 static const float kDefaultA = 2.0f;
28 static const float kDefaultB = 4.0f;
29 static const float kDefaultC = 3.0f;
35 float a;
36 float b;
37 float c;
38 float lut_apply_crf_float[kLUTLength + 1];
39 float lut_remove_crf_float[kLUTLength + 1];
44 static inline float ApplyCRF(float v, const CameraResponse_t* camera_response) {
[all …]
Dcamera_response_fast.rsh24 // Quantize a float in [0,1] using an integer in [0,kLUTLength-1].
27 static const float kDefaultA = 2.0f;
28 static const float kDefaultB = 4.0f;
29 static const float kDefaultC = 3.0f;
36 static inline float ApplyCRFdefault(float v) {
37 const float pow_va = pow(v, kDefaultA);
38 const float exp_b = exp(kDefaultB);
39 const float x1 = (exp_b + 1.0f) * pow_va;
40 const float x2 = exp_b * pow_va + 1.0f;
44 static inline float RemoveCRFdefault(float v) {
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dvr.rscript23 float jitter[JITTER_LENGTH];
29 float zoomFactor;
34 static float rscale;
65 static float triLinear(float v_0_0_0, float v_0_0_1, float v_0_1_0, float v_0_1_1,
66 float v_1_0_0, float v_1_0_1, float v_1_1_0, float v_1_1_1,
68 float v_0_0 = mix(v_0_0_0, v_0_0_1, delta.x);
69 float v_0_1 = mix(v_0_1_0, v_0_1_1, delta.x);
70 float v_1_0 = mix(v_1_0_0, v_1_0_1, delta.x);
71 float v_1_1 = mix(v_1_1_0, v_1_1_1, delta.x);
72 float v_0 = mix(v_0_0, v_0_1, delta.y);
[all …]
/frameworks/libs/systemui/weathereffects/graphics/assets/shaders/
Dutils.agsl18 highp float idGenerator(vec2 point) {
24 highp float idGenerator(float value) {
29 float triangleNoise(vec2 n) {
32 float xy = n.x * n.y;
38 float valueNoise(vec2 fragCoord) {
39 float scale = 0.021;
43 float a = idGenerator(i);
44 float b = idGenerator(i + vec2(1.0, 0.0));
45 float c = idGenerator(i + vec2(0.0, 1.0));
46 float d = idGenerator(i + vec2(1.0, 1.0));
[all …]
/frameworks/rs/tests/java_api/ScriptGroupTest/src/com/android/rs/sgtest/
Dvibrance_f.rscript20 float vibrance = 50.0f;
22 static const float Rf = 0.2999f;
23 static const float Gf = 0.587f;
24 static const float Bf = 0.114f;
26 static const float Vib = 0.5f;
32 float red = (r-max(g, b)) * (1.f / 256.f);
33 float S = (float)(Vib/(1+native_exp(-red*3)))+1;
34 float MS = 1.0f - S;
35 float Rt = Rf * MS;
36 float Gt = Gf * MS;
[all …]
Dfisheye_approx_f.rsh21 static float alpha, radius2, factor;
23 void init_filter(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y, float k,
29 inv_dimensions.x = 1.f / (float)dim_x;
30 inv_dimensions.y = 1.f / (float)dim_y;
35 axis_scale.y = (float)dim_y / (float)dim_x;
37 axis_scale.x = (float)dim_x / (float)dim_y;
39 const float bound2 = 0.25f * (axis_scale.x*axis_scale.x + axis_scale.y*axis_scale.y);
40 const float bound = sqrt(bound2);
41 const float radius = 1.15f * bound;
43 const float max_radian = M_PI_2 - atan(alpha / bound * sqrt(radius2 - bound2));
[all …]
Dvignette_approx_f.rsh18 static float sloped_neg_range, sloped_inv_max_dist, shade, opp_shade;
20 void init_vignette(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y,
21 float desired_scale, float desired_shade, float desired_slope) {
25 inv_dimensions.x = 1.f / (float)dim_x;
26 inv_dimensions.y = 1.f / (float)dim_y;
30 axis_scale.y = (float)dim_y / (float)dim_x;
32 axis_scale.x = (float)dim_x / (float)dim_y;
34 const float max_dist = 0.5f * length(axis_scale);
40 const float neg_range = 0.7f*sqrt(desired_scale) - 1.3f;
49 const float2 inCoord = {(float)x, (float)y};
[all …]
Dvignette_f.rsh18 static float sloped_neg_range, sloped_inv_max_dist, shade, opp_shade;
20 void init_vignette(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y,
21 float desired_scale, float desired_shade, float desired_slope) {
25 inv_dimensions.x = 1.f / (float)dim_x;
26 inv_dimensions.y = 1.f / (float)dim_y;
30 axis_scale.y = (float)dim_y / (float)dim_x;
32 axis_scale.x = (float)dim_x / (float)dim_y;
34 const float max_dist = 0.5f * length(axis_scale);
40 const float neg_range = 0.7f*sqrt(desired_scale) - 1.3f;
49 const float2 inCoord = {(float)x, (float)y};
[all …]
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
Dvibrance.rscript20 float vibrance = 0.f;
22 static const float Rf = 0.2999f;
23 static const float Gf = 0.587f;
24 static const float Bf = 0.114f;
26 static float Vib = 0.f;
32 float red = (r-max(g, b)) * (1.f / 256.f);
33 float S = (float)(Vib/(1+native_exp(-red*3)))+1;
34 float MS = 1.0f - S;
35 float Rt = Rf * MS;
36 float Gt = Gf * MS;
[all …]
Dfisheye.rsh21 static float alpha, radius2, factor;
23 void init_filter(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y, float k) {
27 inv_dimensions.x = 1.f / (float)dim_x;
28 inv_dimensions.y = 1.f / (float)dim_y;
33 axis_scale.y = (float)dim_y / (float)dim_x;
35 axis_scale.x = (float)dim_x / (float)dim_y;
37 const float bound2 = 0.25f * (axis_scale.x*axis_scale.x + axis_scale.y*axis_scale.y);
38 const float bound = sqrt(bound2);
39 const float radius = 1.15f * bound;
41 const float max_radian = M_PI_2 - atan(alpha / bound * sqrt(radius2 - bound2));
[all …]
Dfisheye_approx.rsh21 static float alpha, radius2, factor;
23 void init_filter(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y, float k) {
27 inv_dimensions.x = 1.f / (float)dim_x;
28 inv_dimensions.y = 1.f / (float)dim_y;
33 axis_scale.y = (float)dim_y / (float)dim_x;
35 axis_scale.x = (float)dim_x / (float)dim_y;
37 const float bound2 = 0.25f * (axis_scale.x*axis_scale.x + axis_scale.y*axis_scale.y);
38 const float bound = sqrt(bound2);
39 const float radius = 1.15f * bound;
41 const float max_radian = M_PI_2 - atan(alpha / bound * sqrt(radius2 - bound2));
[all …]
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
Dvibrance.rscript20 float vibrance = 0.f;
22 static const float Rf = 0.2999f;
23 static const float Gf = 0.587f;
24 static const float Bf = 0.114f;
26 static float Vib = 0.f;
32 float red = (r-max(g, b)) * (1.f / 256.f);
33 float S = (float)(Vib/(1+native_exp(-red*3)))+1;
34 float MS = 1.0f - S;
35 float Rt = Rf * MS;
36 float Gt = Gf * MS;
[all …]
Dfisheye_approx.rsh21 static float alpha, radius2, factor;
23 void init_filter(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y, float k) {
27 inv_dimensions.x = 1.f / (float)dim_x;
28 inv_dimensions.y = 1.f / (float)dim_y;
33 axis_scale.y = (float)dim_y / (float)dim_x;
35 axis_scale.x = (float)dim_x / (float)dim_y;
37 const float bound2 = 0.25f * (axis_scale.x*axis_scale.x + axis_scale.y*axis_scale.y);
38 const float bound = sqrt(bound2);
39 const float radius = 1.15f * bound;
41 const float max_radian = M_PI_2 - atan(alpha / bound * sqrt(radius2 - bound2));
[all …]
Dfisheye.rsh21 static float alpha, radius2, factor;
23 void init_filter(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y, float k) {
27 inv_dimensions.x = 1.f / (float)dim_x;
28 inv_dimensions.y = 1.f / (float)dim_y;
33 axis_scale.y = (float)dim_y / (float)dim_x;
35 axis_scale.x = (float)dim_x / (float)dim_y;
37 const float bound2 = 0.25f * (axis_scale.x*axis_scale.x + axis_scale.y*axis_scale.y);
38 const float bound = sqrt(bound2);
39 const float radius = 1.15f * bound;
41 const float max_radian = M_PI_2 - atan(alpha / bound * sqrt(radius2 - bound2));
[all …]
Dvignette_approx.rsh18 static float sloped_neg_range, sloped_inv_max_dist, shade, opp_shade;
20 void init_vignette(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y,
21 float desired_scale, float desired_shade, float desired_slope) {
25 inv_dimensions.x = 1.f / (float)dim_x;
26 inv_dimensions.y = 1.f / (float)dim_y;
30 axis_scale.y = (float)dim_y / (float)dim_x;
32 axis_scale.x = (float)dim_x / (float)dim_y;
34 const float max_dist = 0.5f * length(axis_scale);
40 const float neg_range = 0.7f*sqrt(desired_scale) - 1.3f;
50 const float2 inCoord = {(float)x, (float)y};
[all …]
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
Dvibrance.rscript20 float vibrance = 0.f;
22 static const float Rf = 0.2999f;
23 static const float Gf = 0.587f;
24 static const float Bf = 0.114f;
26 static float Vib = 0.f;
32 float red = (r-max(g, b)) * (1.f / 256.f);
33 float S = (float)(Vib/(1+native_exp(-red*3)))+1;
34 float MS = 1.0f - S;
35 float Rt = Rf * MS;
36 float Gt = Gf * MS;
[all …]
Dfisheye.rsh21 static float alpha, radius2, factor;
23 void init_filter(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y, float k) {
27 inv_dimensions.x = 1.f / (float)dim_x;
28 inv_dimensions.y = 1.f / (float)dim_y;
33 axis_scale.y = (float)dim_y / (float)dim_x;
35 axis_scale.x = (float)dim_x / (float)dim_y;
37 const float bound2 = 0.25f * (axis_scale.x*axis_scale.x + axis_scale.y*axis_scale.y);
38 const float bound = sqrt(bound2);
39 const float radius = 1.15f * bound;
41 const float max_radian = M_PI_2 - atan(alpha / bound * sqrt(radius2 - bound2));
[all …]
Dfisheye_approx.rsh21 static float alpha, radius2, factor;
23 void init_filter(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y, float k) {
27 inv_dimensions.x = 1.f / (float)dim_x;
28 inv_dimensions.y = 1.f / (float)dim_y;
33 axis_scale.y = (float)dim_y / (float)dim_x;
35 axis_scale.x = (float)dim_x / (float)dim_y;
37 const float bound2 = 0.25f * (axis_scale.x*axis_scale.x + axis_scale.y*axis_scale.y);
38 const float bound = sqrt(bound2);
39 const float radius = 1.15f * bound;
41 const float max_radian = M_PI_2 - atan(alpha / bound * sqrt(radius2 - bound2));
[all …]
Dvignette_approx.rsh18 static float sloped_neg_range, sloped_inv_max_dist, shade, opp_shade;
20 void init_vignette(uint32_t dim_x, uint32_t dim_y, float center_x, float center_y,
21 float desired_scale, float desired_shade, float desired_slope) {
25 inv_dimensions.x = 1.f / (float)dim_x;
26 inv_dimensions.y = 1.f / (float)dim_y;
30 axis_scale.y = (float)dim_y / (float)dim_x;
32 axis_scale.x = (float)dim_x / (float)dim_y;
34 const float max_dist = 0.5f * length(axis_scale);
40 const float neg_range = 0.7f*sqrt(desired_scale) - 1.3f;
50 const float2 inCoord = {(float)x, (float)y};
[all …]

12345678910>>...16