summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeborshi Saha <deb.saha@samsung.com>2015-05-18 11:14:19 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-18 11:15:33 +0200
commit1762a8c4643fb5e9a3ec6ac4514a207c0c112c5d (patch)
tree7316db2d86d599ab679b9d349b44731b99e087b5
parent4db130a680b01960d0f1a5f4fcbdb355b13185f5 (diff)
embryo: fix inverse trigonometry functions typos.
Summary: Issue: when asin,acos,atan functions were called from edc, wrong values were returned Solution: fixed asin,acos,atan functions in embryo script. Test Plan: embryo script functions asin,acos,atan to be called from edc and return value to be verified. Reviewers: Hermet, prince.dubey, shilpasingh, raster, cedric Reviewed By: shilpasingh, cedric Subscribers: rajeshps, govi, cedric Differential Revision: https://phab.enlightenment.org/D2512 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--AUTHORS1
-rw-r--r--src/lib/embryo/embryo_float.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/AUTHORS b/AUTHORS
index 956468ed52..ac070ec782 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -227,6 +227,7 @@ Embryo
227The Rasterman (Carsten Haitzler) <raster@rasterman.com> 227The Rasterman (Carsten Haitzler) <raster@rasterman.com>
228Jérôme Pinot <ngc891@gmail.com> 228Jérôme Pinot <ngc891@gmail.com>
229kumar Navneet <k.navneet@samsung.com> 229kumar Navneet <k.navneet@samsung.com>
230Deborshi Saha <deb.saha@samsung.com>
230 231
231Eio 232Eio
232--- 233---
diff --git a/src/lib/embryo/embryo_float.c b/src/lib/embryo/embryo_float.c
index d84d73d3eb..84914774cf 100644
--- a/src/lib/embryo/embryo_float.c
+++ b/src/lib/embryo/embryo_float.c
@@ -338,7 +338,7 @@ _embryo_fp_asin(Embryo_Program *ep EINA_UNUSED, Embryo_Cell *params)
338 338
339 if (params[0] != (2 * sizeof(Embryo_Cell))) return 0; 339 if (params[0] != (2 * sizeof(Embryo_Cell))) return 0;
340 f = EMBRYO_CELL_TO_FLOAT(params[1]); 340 f = EMBRYO_CELL_TO_FLOAT(params[1]);
341 f = sinf(f); 341 f = asinf(f);
342 f = _embryo_fp_degrees_to_radians(f, params[2]); 342 f = _embryo_fp_degrees_to_radians(f, params[2]);
343 return EMBRYO_FLOAT_TO_CELL(f); 343 return EMBRYO_FLOAT_TO_CELL(f);
344} 344}
@@ -352,7 +352,7 @@ _embryo_fp_acos(Embryo_Program *ep EINA_UNUSED, Embryo_Cell *params)
352 352
353 if (params[0] != (2 * sizeof(Embryo_Cell))) return 0; 353 if (params[0] != (2 * sizeof(Embryo_Cell))) return 0;
354 f = EMBRYO_CELL_TO_FLOAT(params[1]); 354 f = EMBRYO_CELL_TO_FLOAT(params[1]);
355 f = cosf(f); 355 f = acosf(f);
356 f = _embryo_fp_degrees_to_radians(f, params[2]); 356 f = _embryo_fp_degrees_to_radians(f, params[2]);
357 return EMBRYO_FLOAT_TO_CELL(f); 357 return EMBRYO_FLOAT_TO_CELL(f);
358} 358}
@@ -366,7 +366,7 @@ _embryo_fp_atan(Embryo_Program *ep EINA_UNUSED, Embryo_Cell *params)
366 366
367 if (params[0] != (2 * sizeof(Embryo_Cell))) return 0; 367 if (params[0] != (2 * sizeof(Embryo_Cell))) return 0;
368 f = EMBRYO_CELL_TO_FLOAT(params[1]); 368 f = EMBRYO_CELL_TO_FLOAT(params[1]);
369 f = tanf(f); 369 f = atanf(f);
370 f = _embryo_fp_degrees_to_radians(f, params[2]); 370 f = _embryo_fp_degrees_to_radians(f, params[2]);
371 return EMBRYO_FLOAT_TO_CELL(f); 371 return EMBRYO_FLOAT_TO_CELL(f);
372} 372}